7.3. 使用其它方法准备安装介质
7.3.1. 使用 dd 准备 USB 安装介质
# dd if=[image] of=[device]
/usr/share/rhev-hypervisor/rhev-hypervisor.iso。因为 dd 命令会对磁盘进行一个底层的复制,所以它对设备的格式没有要求。
7.3.2. 在 Linux 系统上使用 dd 准备 USB 安装介质
过程 7.4. 在 Linux 系统上使用 dd 准备 USB 安装介质
- 运行以下命令来确保您安装了最新的 Red Hat Enterprise Virtualization Hypervisor 磁盘镜像:
- 对于 Red Hat Enterprise Linux 6:
# yum update rhev-hypervisor6
- 对于 Red Hat Enterprise Linux 7:
# yum update rhev-hypervisor7
- 使用 dd 命令把磁盘镜像写入到一个 USB 存储设备中。
例 7.10. 使用 dd
以下例子使用一个名为/dev/sdc的 USB 存储设备。# dd if=/usr/share/rhev-hypervisor/rhev-hypervisor.iso of=/dev/sdc 243712+0 records in 243712+0 records out 124780544 bytes (125 MB) copied, 56.3009 s, 2.2 MB/s
警告
dd 会覆盖of参数所指定的设备上的所有数据。在运行 dd 前,请确定您在命令中指定了正确的设备,并确认所指定的设备上没有需要保存的数据。
7.3.3. 在 Windows 系统上使用 dd 准备 USB 安装介质
过程 7.5. 在 Windows 系统上使用 dd 准备 USB 安装介质
- 在网络浏览器中打开 http://www.redhat.com/services/custom/cygwin/,点
32-bit Cygwin下载 32 位版的 Red Hat Cygwin;或点64-bit Cygwin下载 64 位版的 Red Hat Cygwin。 - 使用具有管理员权限的用户运行下载的 Red Hat Cygwin 安装程序。
- 根据提示安装 Red Hat Cygwin。Base 软件包组中的 Coreutils 软件包提供了 dd 程序。这个软件包会被自动选择并安装。
- 把从 Content Delivery Network 中下载的
rhev-hypervisor.iso文件复制到C:\rhev-hypervisor.iso。 - 使用具有管理员权限的用户运行 Red Hat Cygwin
重要
在 Windows 7 和 Windows Server 2008 系统中,您需要在 Red Hat Cygwin 应用图标上点鼠标右键,选 Run as Administrator 来确保这个应用程序运行时具有所需的权限。 - 在一个命令行终端中,运行以下命令来查看系统可用的磁盘和分区:
$ cat /proc/partitions
例 7.11. 查看系统可用的磁盘分区
Administrator@test / $ cat /proc/partitions major minor #blocks name 8 0 15728640 sda 8 1 102400 sda1 8 2 15624192 sda2 - 把要保存 Red Hat Enterprise Virtualization Hypervisor 磁盘镜像的 USB 存储设备添加到系统上。再次运行
cat /proc/partitions命令。一个代表所添加的 USB 存储设备的项应该出现在本次输出中。例 7.12. 查看系统可用的磁盘分区
Administrator@test / $ cat /proc/partitions major minor #blocks name 8 0 15728640 sda 8 1 102400 sda1 8 2 15624192 sda2 8 16 524288 sdb - 使用 dd 把
rhev-hypervisor.iso文件写入到 USB 存储设备中。以下例子中使用的 USB 存储设备的名称是/dev/sdb,请使用正确的 USB 存储设备的设备名来替换 sdb。例 7.13. 使用 Red Hat Cygwin 的 dd 程序
Administrator@test / $ dd if=/cygdrive/c/rhev-hypervisor.iso of=/dev/sdb& pid=$!
警告
dd 会覆盖of参数所指定的设备上的所有数据。在运行 dd 前,请确定您在命令中指定了正确的设备,并确认所指定的设备上没有需要保存的数据。注意
使用 Red Hat Cygwin 所提供的 dd 把磁盘镜像写入到 USB 存储设备会需要较长时间完成,运行以下命令可以查看当前的执行进度:$ kill -USR1 $pid
7.3.4. 准备 Hypervisor 的光盘安装介质
过程 7.6. 准备 Hypervisor 的光盘安装介质
- 安装 wodim 软件包以及相关的依赖软件包:
# yum install wodim
- 在 CD 或 DVD 驱动器中插入一个空白的 CD-ROM 或 DVD。
- 把磁盘镜像写到光盘中:
wodim dev=[device] [image]
注意
运行以下命令可以找到写设备的名称:# less /proc/sys/dev/cdrom/info
例 7.14. 使用 wodim
以下例子把一个 ISO 镜像写入到第一个 CD-RW(/dev/sr0)设备中。# wodim dev=/dev/sr0 /usr/share/rhev-hypervisor/rhev-hypervisor.iso
重要

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.