Questo contenuto non è disponibile nella lingua selezionata.
7.3. Additional Ways to Prepare the Installation Media
7.3.1. Preparing USB Installation Media Using dd Copia collegamentoCollegamento copiato negli appunti!
dd if=[image] of=[device]
# dd if=[image] of=[device]
/usr/share/rhev-hypervisor/rhev-hypervisor.iso
on the machine on which the rhev-hypervisor7 package is installed. The dd command does not make assumptions as to the format of the device because it performs a low-level copy of the raw data in the selected image.
7.3.2. Preparing USB Installation Media Using dd on Linux Systems Copia collegamentoCollegamento copiato negli appunti!
Procedure 7.4. Preparing USB Installation Media using dd on Linux Systems
- Run the following command to ensure you have the latest version of the Red Hat Enterprise Virtualization Hypervisor disk image:
- For Red Hat Enterprise Linux 6:
yum update rhev-hypervisor6
# yum update rhev-hypervisor6
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - For Red Hat Enterprise Linux 7:
yum update rhev-hypervisor7
# yum update rhev-hypervisor7
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Use the dd utility to write the disk image to a USB storage device.
Example 7.10. Use of dd
This example uses a USB storage device named/dev/sdc
.dd if=/usr/share/rhev-hypervisor/rhev-hypervisor.iso of=/dev/sdc
# 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
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Warning
The dd utility will overwrite all data on the device specified by theof
parameter. Ensure you have specified the correct device and that the device contains no valuable data before using the dd utility.
7.3.3. Preparing USB Installation Media Using dd on Windows Systems Copia collegamentoCollegamento copiato negli appunti!
Procedure 7.5. Preparing USB Installation Media using dd on Windows Systems
- Open http://www.redhat.com/services/custom/cygwin/ in a web browser and click
32-bit Cygwin
to download the 32-bit version of Red Hat Cygwin, or64-bit Cygwin
to download the 64-bit version of Red Hat Cygwin. - Run the downloaded executable as a user with administrator privileges to open the Red Hat Cygwin installation program.
- Follow the prompts to install Red Hat Cygwin. The Coreutils package in the Base package group provides the dd utility. This package is automatically selected for installation.
- Copy the
rhev-hypervisor.iso
file downloaded from the Content Delivery Network toC:\rhev-hypervisor.iso
. - Run the Red Hat Cygwin application from the desktop as a user with administrative privileges.
Important
On the Windows 7 and Windows Server 2008, you must right-click the Red Hat Cygwin icon and select the Run as Administrator option to ensure the application runs with the correct permissions. - In the terminal, run the following command to view the drives and partitions currently visible to the system:
cat /proc/partitions
$ cat /proc/partitions
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 7.11. View of Disk Partitions Attached to System
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Attach the USB storage device to which the Red Hat Enterprise Virtualization Hypervisor disk image will be written to the system. Run the
cat /proc/partitions
command again and compare the output to that of the previous output. A new entry will appear that designates the USB storage device.Example 7.12. View of Disk Partitions Attached to System
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use the dd utility to write the
rhev-hypervisor.iso
file to the USB storage device. The following example uses a USB storage device named/dev/sdb
. Replace sdb with the correct device name for the USB storage device to be used.Example 7.13. Use of dd Utility Under Red Hat Cygwin
Administrator@test / $ dd if=/cygdrive/c/rhev-hypervisor.iso of=/dev/sdb& pid=$!
Administrator@test / $ dd if=/cygdrive/c/rhev-hypervisor.iso of=/dev/sdb& pid=$!
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Warning
The dd utility will overwrite all data on the device specified by theof
parameter. Ensure you have specified the correct device and that the device contains no valuable data before using the dd utility.Note
Writing disk images to USB storage devices with the version of the dd utility included with Red Hat Cygwin can take significantly longer than the equivalent on other platforms. You can run the following command to view the progress of the operation:kill -USR1 $pid
$ kill -USR1 $pid
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
7.3.4. Preparing Optical Hypervisor Installation Media Copia collegamentoCollegamento copiato negli appunti!
Procedure 7.6. Preparing Optical Hypervisor Installation Media
- Install the wodim package and dependencies:
yum install wodim
# yum install wodim
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Insert a blank CD-ROM or DVD into your CD or DVD writer.
- Write the disk image to the disc:
wodim dev=[device] [image]
wodim dev=[device] [image]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
To find out the name of your writer device, run the following command:less /proc/sys/dev/cdrom/info
# less /proc/sys/dev/cdrom/info
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 7.14. Use of the wodim Utility
This example uses the first CD-RW (/dev/sr0
) device available and an example unified installer disk image location.wodim dev=/dev/sr0 /usr/share/rhev-hypervisor/rhev-hypervisor.iso
# wodim dev=/dev/sr0 /usr/share/rhev-hypervisor/rhev-hypervisor.iso
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Important