Total Pageviews

Wednesday, November 24, 2010

RHEV-Hypervisor Installtion using RHN

Deploying RHEV-H with Cobbler

To automate rhev-h installation with PXE, Cobbler and registration in Satellite, here are the steps I followed:

# Download from RHN:
rhev-hypervisor-5.5-2.2.7.3.el5_5rhev2_2.noarch.rpm
rhev-hypervisor-pxe-5.5-2.2.7.3.el5_5rhev2_2.noarch.rpm

# yum install ./rhev*rpm

# cobbler distro add --arch=x86_64 --initrd=/usr/share/rhev-hypervisor/tftpboot/initrd0.img --kernel=/usr/share/rhev-hypervisor/tftpboot/vmlinuz0 --name=rhev-hypervisor-5.5-2.2.7.3 --breed=other --kopts="rootflags=loop root=/rhev-hypervisor.iso rootfstype=auto ro liveimg nocheck crashkernel=128M@16M elevator=deadline processor.max_cstate=1"

# cobbler profile add --name=rhev-h-22-pxe --distro=rhev-hypervisor-5.5-2.2.7.3 --kopts="storage_init=/dev/sda storage_vol=::::: BOOTIF=eth0 ip=dhcp rhn_username=admin rhn_password=redhat123. rhn_url=https://satellite.example.com/
management_server=rhevm.example.com netconsole=rhevm.example.com upgrade"

# (optional) cobbler system add --name=foo --mac=XXXX ...
so no pxe menu is presented to this host

# restorecon -R -v /tftpboot/images/rhev-hypervisor-5.5-2.2.7.3
if SELinux is in enforcing mode

Maybe the manual could be more explicit about this?

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Virtualization_for_Desktops/2.2/html/5.5-2.2_Hypervisor_Deployment_Guide/sect-Deployment_Guide-Preparing_Red_Hat_Enterprise_Virtualization_Hypervisor_installation_media-Deploying_RHEV_Hypervisors_with_PXE_and_tftp.html

No comments: