Red Hat Enterprise Virtualization Hypervisor (v.6 x86_64)
channel, also referred to by the identifier rhel-x86_64-server-6-rhevh
in Red Hat Network.
rhev-hypervisor.iso
is now a symbolic link to a uniquely-named version of the hypervisor ISO image, such as /usr/share/rhev-hypervisor/rhevh-6.2-20111006.0.el6.iso
. Different versions of the hypervisor ISO can be installed alongside each other, allowing administrators to run and maintain a cluster on a previous version of the hypervisor while upgrading another cluster for testing.
root
user.
rhn-channel
command.
# rhn-channel --add --channel=rhel-x86_64-server-6-rhevh
yum
to install the rhev-hypervisor and rhev-hypervisor-tools packages.
# yum install "rhev-hypervisor*"
/usr/share/rhev-hypervisor/
directory. The symbolic link /usr/share/rhev-hypervisor/rhev-hypervisor.iso
is updated to point to the ISO image.
rhevh-iso-to-disk
and rhevh-iso-to-pxeboot
scripts are installed to the /usr/bin
directory.
Automatic boot in 30 seconds...
is displayed, and begins counting down from thirty, press any key to skip the automatic boot process.
rescue
parameter to the list of boot parameters shown on the screen, then press Enter. This action will boot the hypervisor in rescue mode.
# grep -E 'svm|vmx' /proc/cpuinfo
# lsmod | grep kvm
kvm_intel
or kvm_amd
then the kvm hardware virtualization modules are loaded and the system meets the requirements. If the output does not include the required modules then you must check that your hardware supports the virtualization extensions and that they are enabled in the system's BIOS.
rhevh-iso-to-disk
to Create USB Install Mediarhevh-iso-to-disk
command will install a hypervisor onto a USB storage device. The rhevh-iso-to-disk
command is part of the rhev-hypervisor package. Devices created with this command are able to boot the hypervisors on systems which support booting via USB.
rhevh-iso-to-disk
command usage follows this structure:
# rhevh-iso-to-diskimage
device
device
parameter is the partition name of the USB storage device to install to. The image
parameter is a ISO image of the hypervisor. The default hypervisor image location is /usr/share/rhev-hypervisor/rhev-hypervisor.iso
. The rhevh-iso-to-disk
command requires devices to be formatted with the FAT
or EXT3
file system.
rhevh-iso-to-disk
rhevh-iso-to-disk
uses a FAT
or EXT3
formatted partition or block device.
/dev/sdb
or similar device name.
/dev/sdb1
or similar device name.
rhevh-iso-to-disk
command to copy the .iso file to the disk. The --format
parameter formats the disk. The --reset-mbr
initializes the Master Boot Record (MBR). The example uses a USB storage device named /dev/sdc
.
rhevh-iso-to-disk
# rhevh-iso-to-disk --format --reset-mbr /usr/share/rhev-hypervisor/rhev-hypervisor.iso /dev/sdc Verifying image... /usr/share/rhev-hypervisor/rhev-hypervisor.iso: eccc12a0530b9f22e5ba62b848922309 Fragment sums: 8688f5473e9c176a73f7a37499358557e6c397c9ce2dafb5eca5498fb586 Fragment count: 20 Checking: 100.0% The media check is complete, the result is: PASS. It is OK to use this media. Copying live image to USB stick Updating boot config file Installing boot loader syslinux: only 512-byte sectors are supported USB stick set up as live image!
/dev/sdc
) is ready to be used to boot a system and install the hypervisor on it.
dd
to Create USB Install Mediadd
command can also be used to install a hypervisor onto a USB storage device. Media created with the command can boot the hypervisor on systems which support booting via USB. Red Hat Enterprise Linux provides dd
as part of the coreutils package. Versions of dd
are also available on a wide variety of Linux and Unix operating systems.
dd
command through installation of Red Hat Cygwin, a free Linux-like environment for Windows. Refer to Procedure 7.2, “Using dd
to Create USB Install Media on Systems Running Windows” for instruction on the installation and use of Red Hat Cygwin to install the hypervisor to a USB storage device.
dd
command usage follows this structure:
# dd if=image
of=device
device
parameter is the device name of the USB storage device to install to. The image
parameter is a ISO image of the hypervisor. The default hypervisor image location is /usr/share/rhev-hypervisor/rhev-hypervisor.iso
. The dd
command does not make assumptions as to the format of the device as it performs a low-level copy of the raw data in the selected image.
dd
to Create USB Install Mediadd
command to copy the .iso file to the disk. The example uses a USB storage device named /dev/sdc
.
dd
# 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
command will overwrite all data on the device specified for the of
parameter. Any existing data on the device will be destroyed. Ensure that the correct device is specified and that it contains no valuable data before invocation of the dd
command.
/dev/sdc
) is ready to boot a hypervisor.
dd
to Create USB Install Media on Systems Running Windowsrhsetup.exe
executable will download.
Administrator
user run the downloaded rhsetup.exe
executable. The Red Hat Cygwin installer will display.
dd
utility. This is automatically selected for installation.
rhev-hypervisor.iso
file downloaded from Red Hat Network to C:\rhev-hypervisor.iso
.
Administrator
user run Red Hat Cygwin from the desktop. A terminal window will appear.
cat /proc/partitions
to see the drives and partitions currently visible to the system.
Administrator@test / $ cat /proc/partitions major minor #blocks name 8 0 15728640 sda 8 1 102400 sda1 8 2 15624192 sda2
cat /proc/partitions
command and compare the output to that of the previous run. A new entry will appear which designates the USB storage device.
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
command to copy the rhev-hypervisor.iso
file to the disk. The example uses a USB storage device named /dev/sdb
. Replace sdb
with the correct device name for the USB storage device to be used.
dd
Command Under Red Hat CygwinAdministrator@test / $ dd if=/cygdrive/c/rhev-hypervisor.iso of=/dev/sdb& pid=$!
dd
command will overwrite all data on the device specified for the of
parameter. Any existing data on the device will be destroyed. Ensure that the correct device is specified and that it contains no valuable data before invocation of the dd
command.
dd
included with Red Hat Cygwin can take significantly longer than the equivalent on other platforms.
USR1
signal. This can be achieved by issuing the kill
in the terminal window as follows:
kill -USR1 $pid
dd
Initiated Copy210944+0 records in 210944+0 records out 108003328 bytes (108 MB) copied, 2035.82 s, 53.1 kB/s [1]+ Done dd if=/cygdrive/c/rhev-hypervisor.iso of=/dev/sdb
/dev/sdb
) is ready to boot a hypervisor.
cdrecord
command. The cdrecord
command is part of the cdrecord package which is installed on Red Hat Enterprise Linux by default.
# rpm -q cdrecord cdrecord-2.01-10.7.el5
# yum install cdrecord
cdrecord dev=device /iso/file/path/
/dev/cdrw
) device available and the default hypervisor image location, /usr/share/rhev-hypervisor/rhev-hypervisor.iso
.
cdrecord
Command# cdrecord dev=/dev/cdrw /usr/share/rhev-hypervisor/rhev-hypervisor.iso
isomd5sum
) to verify the integrity of the installation media every time the hypervisor is booted. If media errors are reported in the boot sequence you have a bad CD-ROM. Follow the procedure above to create a new CD-ROM or DVD.