Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Configure the VCL Database for the VM Guest and Host 

  • Create computer groups:
    • all vm host computers
    • all vm guest computers 
  • Map vm computer groups to management node group
  • Add VM host computer:
    • Hosthame: localvmhost
    • IP Address:

...

    • 127.0.0.2

...

    • State:

...

    • maintenance

...

    • Owner:

...

    • admin

...

    • Platform:

...

    • i386

...

    • Schedule:

...

    • VCL 24x7 
    • RAM:

...

    • 1024

...

    • No

...

    • Processors:

...

    • 1

...

    • Processor

...

    • Speed:

...

    • 2000

...

    • Network

...

    • Speed:

...

    • 100 
    • Type:

...

    • blade

...

    • Provisioning

...

    • engine:

...

    • xCAT

...

    • 1.x

...

    • Computer

...

    • Groups:

...

    • all

...

    • vm

...

    • host

...

    • computers

...

  • Add

...

  • VM

...

  • guest

...

  • computer:

...

    • Hosthame:

...

    • vmguest01

...

    • IP

...

    • Address:

...

    • current

...

    • public

...

    • ip

...

    • address

...

    • used

...

    • by

...

    • Windows

...

    • XP

...

    • VM

...

    • State:

...

    • available

...

    • Owner:

...

    • admin

...

    • Platform:

...

    • i386

...

    • Schedule:

...

    • VCL 24x7 
    • RAM:

...

    • 1024

...

    • No

...

    • Processors:

...

    • 1

...

    • Processor

...

    • Speed:

...

    • 2000

...

    • Network

...

    • Speed:

...

    • 100 
    • Type:

...

    • virtualmachine

...

    • Provisioning

...

    • engine:

...

    • VMWare

...

    • Server

...

    • Provisioning

...

    • Computer

...

    • Groups: all vm guest computer 
  • Change state of localvmhost to vmhostinuse
  • Assign vmguest1 to localvmhost
  • Create node in priviledge tree
    • Name: VM image access
    • Add resource groups:
      • all vm guest computers
      • all vm guest images

Create a Network Interface for the Private VM Network

  • vi /etc/sysconfig/network-scripts/ifcfg-eth0:5

...

  • No Format

...

  • 
    DEVICE=eth0:5
    BOOTPROTO=none
    STARTMODE=onboot
    USERCTL=no
    IPADDR=172.53.0.1
    BROADCAST=172.53.0.255
    NETMASK=255.255.255.0
    ONBOOT=yes
    

...

  • /sbin/ifup eth0:5
  • vi /etc/hosts

...

  • No Format

...

  • 
    127.0.0.1 localhost
    127.0.0.2 localvmhost
    172.53.0.11 vmguest1
    

...

Configure the Host Blade as a DHCP Server 

  • vi /etc/dhcpd.conf

...

  • No Format

...

  • 
    ddns-update-style interim;
    ignore client-updates;
    
    shared-network eth0 {
       subnet 10.0.0.0 netmask 255.0.0.0 {
          # no dhcp support available
          # we are not authoritative for this network
          not authoritative;
       }
       subnet 172.53.0.0 netmask 255.255.255.0 {
          range 172.53.0.10 172.53.0.244;
          authoritative;
          max-lease-time 43200;
          min-lease-time 43200;
          default-lease-time 43200;
          option routers 172.53.0.1;
          option subnet-mask 255.255.255.0;
          option nis-domain "NA";
          option domain-name "vcl.org";
          option domain-name-servers 172.52.0.1;
          option nis-servers noip;
          option time-offset -5;
          ignore unknown-clients;
         
          host vmguest1 {
             option host-name "vmguest1";
             hardware ethernet 00:50:56:06:FF:00;
             fixed-address 172.53.0.11;
             option dhcp-server-identifier 172.53.0.1;
          }
       }
    }
    

...

  • /sbin/service dhcpd start
  • /sbin/chkconfig --level 345 dhcpd on

Configure Host Blade To Be Able To SSH To Itself

  • cat /etc/vcl/vcl.key.pub

...

  • >>

...

  • /root/.ssh/authorized_keys

...

  • cp

...

  • /etc/vcl/vcl.key

...

  • /etc/vcl/bladelinuxkey_id_rsa

...

  • edit the managementnode table in the database: set the keys column to vcl.key
  • vi /etc/vcl/vcld.conf
    No Format
    
    IDENTITY_blade_linux=/etc/vcl/vcl.key
    IDENTITY_solaris_lab=/etc/vcl/vcl.key
    IDENTITY_linux_lab=/etc/vcl/vcl.key
    IDENTITY_blade_win=/etc/vcl/vcl.key
    

Configure .vmdk Files in Image Library

  • mkdir -p /install/vmware_images/vmwarewinxp-base7-v0

...

  • chmod -R

...

  • 644

...

  • /install/vmware_images/

...

  • cp

...

  • /var/lib/vmware/Virtual\

...

  • Machines/Windows\

...

  • XP\

...

  • Base/Win*vmdk

...

  • /install/vmware_images/vmwarewinxp-base7-v0/

...

  • Rename the .vmdk files:
    Code Block
    
    mv Windows\ XP\ Base.vmdk vmwarewinxp-base7-v0.vmdk
    for i in {1..7}; do mv Windows\ XP\ Base-s00$i.vmdk vmwarewinxp-base7-v0-s00$i.vmdk; done;
    

...

  • sed

...

  • -i

...

  • -r

...

  • -e

...

  • "s/Windows

...

  • XP

...

  • Base/vmwarewinxp-base7-v0/"

...

  • vmwarewinxp-base7-v0.vmdk