RedHat‎ > ‎

RHEV 3.0 on VMware Workstation 9

Summary

This post provides the notes for my installation of RHEV-M and RHEV Hypervisor on a single VM running within VMware WS9 for training and lab purposes.

Create a new VM:
  1. Go to File > New Virtual Machine or type CTRL+N
  2. Select the option to install the operating system later (DO NOT SELECT THE EASY INSTALL OPTION).
  3. Options:
    • 2 CPUs
    • 8 GB RAM Minimum
    • Select  "LSI Logic SAS" for the SCSI Controller (Important, default will not work!)
    • Point the CD/ROM to the RHEL 6.3 ISO to perform initial install.
  4. Customize the Hardware:
    • 2 Host Only Network Adapters
    • Remove Floppy
    • Remove Printer
  5. Save the VM to it's own Folder on a local SSD drive so you can easily locate the associated .vmx file and have satisfactory performance.
  6. Edit the vmx file and add the following line:
required - apic.xapic.enable = "FALSE"
Then change the line:
vcpu.hotadd = "TRUE" to vcpu.hotadd = "FALSE"

Power on the system and perform first boot configuration:
  1. Configure 1 adapter for mgmt/internet. 
    • (I point this one to a pfSense FW with NAT)
  2. Configure the 2nd adapter for Storage Network. 
    • (No gateway - i.e. on same subnet as OpenFiler Storage)

Update the System:

rhn_register
yum upgrade -y

Add required Channels:
  1. Go to rhn.redhat.com Subscriptions > Registered Systems and select:
    • RHEL Server Supplementary (v.6 64-bit x86_64)
    • Red Hat Enterprise Virt Agent (v.6 Server for x86_64)
    • Red Hat Enterprise Virt Management Agent
    • Red Hat Enterprise Virtualization Hypervisor
    • Red Hat Enterprise Virtualization Manager (v.3 x86_64)
    • JBoss Application Platform (v 5) for 6Server x86_64
NOTE: I avoided trying to register from command line due to inconsistent results whereas the RHN site worked every time.

Disable the firewall and SELinux:

chkconfig iptables off
service iptables stop

Disable selinux with echo 0 >/selinux/enforce
and in /etc/sysconfig/selinux to persist the change across reboots.

Install RHEV Manager:

yum install -y rhevm
rhevm-setup

http: 8080
https: 8443
host-fqdn: rhevm-1.sysxpertslab.com
pass: <password>
db pass: same
org name: sysxpertslab.com
Should installer configure NFS: NO
default-dc-type: NFS
override iptables: NO
ports used 22, 8006, 8007, 8008, 8080, 8443

Configure Storage Domains:

Add master storage domain of type Data / NFS
  1. Create a share on openfiler such as /mnt/nfs/rhev1/vm.
  2. Verify that share has RW permissions for the RHEV hosts.
  3. In the Storage tab of the RHEV-M console click New Domain.
  4. Name the domain (Master) and select type Data / NFS and select a host to use from the drop-down.
  5. Enter the export path: i.e. 10.10.30.100:/mnt/nfs/rhev1/vm.
Add an ISO storage domain
  1. Again, create a share on openfiler such as /mnt/nfs/rhev1/iso.
  2. Verify the permissions for the new share.
  3. In the Storage tab of the RHEV-M console click New Domain.
  4. Name the domain (ISO) and select type ISO / NFS.
  5. Enter the export path: i.e. /mnt/nfs/rhev1/iso.
Upload Images and tools to the ISO Domain
  1. rhevm-iso-uploader --iso-domain=ISO upload /usr/share/virtio-win/virtio-win.iso /usr/share/virtio-win/virtio-win.vfd /usr/share/rhev-guest-tools-iso/rhev-tools-setup.iso
  2. rhevm-iso-uploader --iso-domain=ISO upload /path/to/rhel or windows iso file
Prepare a client machine (win7 or 2008r2):

  1. install .NET Framework 4 from http://www.microsoft.com/download/en/details.aspx?id-17718
  2. Turn off IE ESC from Server Manager home page
  3. Add https://rhevm-1.sysxpertslab.com:8443 to trusted sites and set Security Level to Low or enable XAML browser applications under Custom Level
  4. Logon with admin@internal at http://rhevm-1.sysxpertslab.com:8080 
  5. https://rhevm-1.sysxpertslab.com:8443/RHEVManager
  6. If there is a 404 error you should add the local ip to /etc/hosts on the rhevm server, 
    1. i.e. 10.10.10.21   rhevm-1.sysxpertslab.com
  7. Then restart jboss:
    • service jbossas restart
  8. Now login and install certificates
Install the RHEV Hypervisor:

On Same Host as RHEV-M:
yum -y install rhev-hypervisor*

From rhevm web console select the host and click Activate to install the host software.

On Another Host:
  1. Boot from a copy of /usr/share/rhev-hypervisor/rhevh-6.3-20121025.0.el6_3.iso and hit Tab to edit boot options.
  2. Remove the quiet option from the command and hit enter.
  3. After installation reboot and login as admin to configure.
  4. Configure Network and RHEV-M settings etc.
  5. Go to the rhevm web console and click Activate on the host from the Hosts tab and assign it to the appropriate cluster.


To be continued...........................


Comments