...
This document provides instuctions for configuring a standalone VCL environment running on a single computer which is able to provision VCL reservations using VMware. It is only provided to help you understand how the various components of VCL operate. This document DOES NOT describe how to configure a production VCL environment. The environment described in this document can however be used to learn, test, and help develop VCL.
Install VCL Components
Begin by completing the installation instructions for the VCL components:
...
Gather Required Files & Information
You will need the following:
- VMware Server 12.x RPM installation file
- VMWare VMware Server 12.x serial number
...
These instructions assume the |
...
VMware Server RPM has been downloaded to the following location on the management node:
|
...
...
...
...
...
...
Info |
---|
These instructions assume you |
...
are logged in to the management node as root and are using a bash shell |
...
Configure the VCL Database for the VM Guest and Host
- Create the following computer groups:
Go to Manage Groups -> Resource Groups -> Add - all vm host computers
- all vm guest computers
- Map all computer groups to management node group
- Management Nodes -> Edit Management Node Mapping
- Configure the management node to check in with the database
- Management Nodes -> Edit Management Node Information -> Add
- Hostname: localhost
- IP Address: 127.0.0.1
- Owner: admin
- State: available
- Predictive Loading Module: Predictive Loading Level 0 Module
- Check-in Interval: 5
- Install Path: /install
- End Node SSH Identitiy Key Files: /etc/vcl/vcl.key
- SSH Port for this node: 22
- Enable Image Library: no
- Add VM host computer:
- Manage Computers -> Edit Computer Information -> Submit -> Add
- Hosthame: localvmhost
- IP Address: 192.168.0.1 (NOTE: there is currently a bug restricting the size of the field, so hopefully one octet has less than 3 digits.)
- State: available
Note: do not attempt to add the computer in the maintenance state because of the following issue:
https://issues.apache.org/jira/browse/VCL-189 - 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
Note: the Type and Provisioning engine values don't matter for the localvmhost computer in this test environment because vcld isn't provisioning it - Computer Groups: all vm host computers
- Add VM guest computer:
- Manage Computers -> Edit Computer Information -> Submit -> Add
- Hosthame: vmguest-1
- 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 computers
- Note the fix for the IP address bug is recorded here: https://issues.apache.org/jira/browse/VCL-193
- Configure the VM guest's MAC address in the computer table in the database (as there currently does not seem to be a way to do this through the UI):
- eth0: 00:50:56:1a:01:01
- eth1: 00:50:56:1a:01:02
- Configure the VM host profile:
- Virtual Hosts -> VM Host Profiles tab -> VMware GSX standard -> configure Profile
- Virtual Switch 0: VMnet1
- Virtual Switch 1: VMnet0
- Change state of localvmhost to vmhostinuse (edit the database directly, do not use the Virtual Hosts utility on the website)
- Assign vm guests to localvmhost
- Create node in priviledge tree
- Name: VM image access
- Add resource groups:
- all vm guest computers
- all vm guest images
Remove Existing Virtualization Components
Panel |
---|
yum groupremove "Virtualization" -y |
Make Sure The Host Computer Is Not Running A Xen Kernel
VMWare Server cannot be installed on a computer running a Xen kernel. To determine if a Xen kernel is being used:
The following output indicates a Xen kernel is being used: Panel |
---|
Linux blade1g6-4 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:20:18 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux |
If "xen" appears in the output of the previous command, replace the Xen Kernel with the following commands: Panel |
---|
yum update ecryptfs-utils -y yum install kernel kernel-devel -y yum remove xen kernel-xen -y |
Check the grub.conf file to make sure it is not configured to boot using the Xen Kernel Panel |
---|
less /boot/grub/grub.conf |
The grub.conf file should NOT look like this: Panel |
---|
# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda3 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-92.el5 module /vmlinuz-2.6.18-92.el5xen ro root=LABEL=/ pci=nommconf module /initrd-2.6.18-92.el5xen.img |
The grub.conf file SHOULD look like this: Panel |
---|
# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda3 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-128.1.14.el5) root (hd0,0) kernel /vmlinuz-2.6.18-128.1.14.el5 ro root=LABEL=/1 pci=nommconf initrd /initrd-2.6.18-128.1.14.el5.img |
After removing the Xen kernel, reboot the computer:Install VMware Server
Download the latest VMware Server 1.x RPM from http://www.vmware.com
(Note: these instructions assume you saved the RPM into /install)
Install the VMware Server RPM:
Panel |
---|
rpm -ivh /install/VMware-server-1.0.8-126538.i386.rpm |
Configure VMware Server:Note: if you receive an error message you may need to install or update some libraries and then run vmware-config.pl again: Panel |
---|
yum install glibc-devel -y yum install glibc -y yum install libXtst-devel -y |
VMware networking should be configured as follows after answering the questions asked by vmware-config.pl- vmnet0 is bridged to eth1
- vmnet1 is a host-only network on private subnet 192.168.0.0
The following lists the sequence of answers to be entered after issuing the vmware-config.pl command:
- Press ENTER to view the license agreement, scroll to the bottom, type yes and press ENTER
Wiki Markup |
---|
In which directory do you want to install the mime type icons?
\[/usr/share/icons\] *ENTER* |
Wiki Markup |
---|
What directory contains your desktop menu entry files?
These files have a .desktop file extension. \[/usr/share/applications\] *ENTER* |
Wiki Markup |
---|
In which directory do you want to install the application's icon?
\[/usr/share/pixmaps\] *ENTER* |
Wiki Markup |
---|
None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? \[yes\] *ENTER* |
Wiki Markup |
---|
What is the location of the directory of C header files that match your running
kernel? \[/lib/modules/2.6.18-128.1.14.el5/build/include\] *ENTER* |
Wiki Markup |
---|
Do you want networking for your virtual machines? (yes/no/help) \[yes\] *ENTER* |
Wiki Markup |
---|
Your computer has multiple ethernet network interfaces available: eth0, eth1,
virbr0. Which one do you want to bridge to vmnet0? \[eth0\] *eth1* |
Wiki Markup |
---|
Do you wish to configure another bridged network? (yes/no) \[no\] *ENTER* |
Wiki Markup |
---|
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
\[yes\] *no* |
Wiki Markup |
---|
Do you want to be able to use host-only networking in your virtual machines?
\[no\] *yes* |
Wiki Markup |
---|
Do you want this program to probe for an unused private subnet? (yes/no/help)
\[yes\] *no* |
- What will be the IP address of your host on the private
network? 192.168.0.1 - What will be the netmask of your private network? 255.255.0.0
- DHCP information is displayed, press ENTER
Wiki Markup |
---|
Do you wish to configure another host-only network? (yes/no) \[no\] *ENTER* |
Wiki Markup |
---|
The default port : 902 is not free. We have selected a suitable alternative
port for VMware Server use. You may override this value now.
Remember to use this port when connecting to this server.
Please specify a port for remote console connections to use \[904\] *ENTER* |
Wiki Markup |
---|
In which directory do you want to keep your virtual machine files?
\[/var/lib/vmware/Virtual Machines\] *ENTER* |
Wiki Markup |
---|
The path "/var/lib/vmware/Virtual Machines" does not exist currently. This
program is going to create it, including needed parent directories. Is this
what you want? \[yes\] *ENTER* |
- Please enter your 20-character serial number
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: enter the serial number
Verify the host-only network was configured correctly:
You should see a vmnet1 interface using IP address 192.168.0.1: Panel |
---|
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01 inet addr:192.168.0.1 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
Restart the vmware service (/sbin/service vmware restart), you should see the following: Panel |
---|
Wiki Markup |
---|
Starting VMware services:
Virtual machine monitor \[ OK \]
Virtual ethernet \[ OK \]
Bridged networking on /dev/vmnet0 \[ OK \]
Host-only networking on /dev/vmnet1 (background) \[ OK \]
Starting VMware virtual machines... \[ OK \] |
|
Configure /etc/hosts
Modify the /etc/hosts file to include entries for the VM host and guest computers:
Add the entries in bold: Panel |
---|
127.0.0.1 localhost 192.168.0.1 localvmhost 192.168.1.1 vmguest-1 |
Configure the sshd Service to Listen on the Virtual Private Network
Panel |
---|
vi /etc/ssh/sshd_config |
Add the following line to the end of the file: Panel |
---|
ListenAddress 192.168.0.1 |
Restart the sshd service on the management node: Panel |
---|
/sbin/service sshd restart |
Configure The VM Host To Be Able To SSH To Itself
Add the VM host's public key to its own authorized_keys file to allow it to SSH to itself without a password prompt:
Panel |
---|
cat /etc/vcl/vcl.key.pub >> /root/.ssh/authorized_keys |
The following command should execute without having to enter a password: Panel |
---|
ssh localvmhost 'ls /' |
Configure vcld to use vcl.key
Configure the keys column in the managementnode table in the VCL database
- Edit the managementnode table in the database: set the keys column to /etc/vcl/vcl.key
Configure the vcld.conf file to use vcl.key:
Panel |
---|
vi /etc/vcl/vcld.conf |
Modify all of the IDENTITY lines to specify the vcl.key file: Panel |
---|
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 The DHCP Service
Save a copy of the original dhcpd.conf file:
Panel |
---|
mv /etc/dhcpd.conf /etc/dhcpd.conf.orig |
Configure the dhcpd.conf file:The dhcpd.conf file should contain the following: No Format |
---|
ddns-update-style none; shared-network vmnet1 {
subnet 192.168.0.0 netmask 255.255.0.0 {
ignore unknown-clients;
option routers 192.168.0.1;
host vmguest-1 {
option host-name "vmguest-1";
hardware ethernet 00:50:56:1a:01:01;
fixed-address 192.168.1.1;
filename "/tftpboot/pxelinux.0";
option dhcp-server-identifier 192.168.0.1;
next-server 192.168.0.1;
}
}
}
|
The DHCP daemon should only listen on the virtual private network (vmnet1) to avoid conflicts with other production VCL networks. Configure the dhcpd service startup script to only listen on the vmnet1 interface:
Panel |
---|
vi /etc/init.d/dhcpd |
Add vmnet1 the to the daemon $dhcpd line as shown: No Format |
---|
start() {
[ -x $dhcpd ] || return 5
[ -f $conf ] || return 6
pidofproc $prog >/dev/null 2>&1
RETVAL=$?
[ $RETVAL -eq 0 ] && return $RETVAL
echo -n $"Starting $prog: "
daemon $dhcpd vmnet1 $DHCPDARGS 2>/dev/null
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch $lockfile
return $RETVAL
}
|
Configure the dhcpd service to automatically start at runlevels 3-5:
Panel |
---|
/sbin/chkconfig --level 345 dhcpd on |
Start the dhcpd service: ...
Install VCL Components
Begin by completing the VCL 2.2.1 Installation instructions. Install all of the components on the same computer.
Remove Existing Virtualization Components
Tip |
---|
yum groupremove "Virtualization" -y |
Make Sure The Host Computer Is Not Running A Xen Kernel
VMWare Server cannot be installed on a computer running a Xen kernel. To determine if a Xen kernel is being used:
The following output indicates a Xen kernel is being used:
Panel |
---|
Linux blade1g6-4 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:20:18 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux |
If "xen" appears in the output of the previous command, replace the Xen kernel:
Tip |
---|
yum update ecryptfs-utils -y yum install kernel kernel-devel -y yum remove xen kernel-xen -y |
Check the grub.conf file to make sure it is not configured to boot using the Xen Kernel
Tip |
---|
less /boot/grub/grub.conf |
The grub.conf file should NOT look like this:
Panel |
---|
title CentOS (2.6.18-92.el5xen) module /vmlinuz-2.6.18-92.el5xen ro root=LABEL=/ pci=nommconf |
After removing the Xen kernel, reboot the computer:
Install VMware Server
Download the latest VMware Server 2.0 RPM from http://www.vmware.com
Info |
---|
These instructions assume you saved the RPM into /root |
Install VMware Server:
Tip |
---|
rpm -ivh /root/VMware-server-2.0.2-203138.x86_64.rpm |
Configure VMware Server:
Answer the questions asked by vmware-config.pl as follows:
- Do you accept? (yes/no) yes
- Do you want networking for your virtual machines? (yes/no/help) yes
- Configuring a bridged network for vmnet0. Please specify a name for this network. Bridged
- Your computer has multiple ethernet network interfaces available: eth0, eth1. Which one do you want to bridge to vmnet0? eth0
The following bridged networks have been defined:
. vmnet0 is bridged to eth0 - Do you wish to configure another bridged network? (yes/no) no
- Do you want to be able to use NAT networking in your virtual machines? (yes/no) no
- Do you want to be able to use host-only networking in your virtual machines? yes
- Configuring a host-only network for vmnet1. Please specify a name for this network. HostOnly
- Do you want this program to probe for an unused private subnet? (yes/no/help) no
- What will be the IP address of your host on the private network? 192.168.0.1
- What will be the netmask of your private network? 255.255.0.0
The following host-only networks have been defined:
. vmnet1 is a host-only network on private subnet 192.168.0.0. - Do you wish to configure another host-only network? (yes/no) no
- Please specify a port for remote connections to use: 902
- Please specify a port for standard http connections to use: 8222
- Please specify a port for secure http (https) connections to use: 8333
- The current administrative user for VMware Server is ''. Would you like to specify a different administrator? no
Using root as the VMware Server administrator. - In which directory do you want to keep your virtual machine files? /var/lib/vmware/Virtual Machines
- The path "/var/lib/vmware/Virtual Machines" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? yes
- Please enter your 20-character serial number. <Enter the serial number you received from VMware>
- In which directory do you want to install the VMware VIX API binary files? /usr/bin
- In which directory do you want to install the VMware VIX API library files? /usr/lib/vmware-vix/lib
- The path "/usr/lib/vmware-vix/lib" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? yes
- In which directory do you want to install the VMware VIX API document pages? /usr/share/doc/vmware-vix
- The path "/usr/share/doc/vmware-vix" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? yes
Info |
---|
If you receive an error message when you execute vmware-config.pl you may need to install or update the following libraries and then run vmware-config.pl again: Tip |
---|
yum install glibc-devel -y yum install glibc -y yum install libXtst-devel -y |
|
Verify the host-only network was configured correctly:
You should see a vmnet1 interface using IP address 192.168.0.1:
Panel |
---|
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01 inet addr:192.168.0.1 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
Restart the vmware service: Tip |
---|
/sbin/service vmware restart |
You should see the following:
Panel |
---|
Wiki Markup |
---|
Starting VMware services:
Virtual machine monitor \[<span style="color: #339966">OK</span> \]
Virtual ethernet \[<span style="color: #339966">OK</span> \]
Bridged networking on /dev/vmnet0 \[<span style="color: #339966">OK</span> \]
Host-only networking on /dev/vmnet1 (background) \[<span style="color: #339966">OK</span> \]
Starting VMware virtual machines... \[<span style="color: #339966">OK</span> \] |
|
Fix VMware Server 2.0 glibc Problem
VMware Server 2.0 will not run reliably if the version of glibc installed on the host is newer than 2.5-34. This problem is known to affect recent versions of Red Hat Enterprise Linux and CentOS. If not corrected, VMware Server will crash intermittently and the VMware administration web pages will lock up or fail to load.
Check the version of glib installed on the VMware host:
Tip |
---|
yum list installed glibc |
You will need to configure VMware to use glibc 2.5-34 if the version installed on the host is newer than 2.5-34:
No Format |
---|
Installed Packages
glibc.i686 2.5-42 installed
glibc.x86_64 2.5-42 installed
|
For CentOS, you will need to download the glibc RPM included with CentOS 5.3. This is available from vault.centos.org:
Create a temp directory and cd to it:
Tip |
---|
mkdir /tmp/glibc ; cd /tmp/glibc |
Download the glibc RPM (change the URL accordingly):
Extract the cpio archive from the glibc RPM:
Tip |
---|
rpm2cpio glibc-2.5-34.el5_3.1.x86_64.rpm | cpio --extract --make-directories |
Create the following directory:
Tip |
---|
mkdir /usr/lib/vmware/lib/libc.so.6 |
Copy the following file to the new directory:
Tip |
---|
cp /tmp/glibc/lib64/libc-2.5.so /usr/lib/vmware/lib/libc.so.6/libc.so.6 |
Make a backup of the original vmware-hostd file:
Tip |
---|
cp /usr/sbin/vmware-hostd /root/vmware-hostd.orig |
Edit vmware-hostd:
Tip |
---|
vi /usr/sbin/vmware-hostd |
Navigate to the bottom of the file. You should see the following as the last line:
No Format |
---|
eval exec "$DEBUG_CMD" "$binary" "$@"
|
Add the following export line immediately before the last eval line in vmware-hostd:
No Format |
---|
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH
eval exec "$DEBUG_CMD" "$binary" "$@"
|
The following sed command can also be used to add the line to vmware-hostd:
Tip |
---|
Note |
---|
Do not both manually edit vmware-hostd and run the following sed command |
sed -i -r -e "s/(eval exec.*)/export LD_LIBRARY_PATH=\/usr\/lib\/vmware\/lib\/libc.so.6:\$LD_LIBRARY_PATH\n\1/" /usr/sbin/vmware-hostd |
Restart the vmware service:
Tip |
---|
/sbin/service vmware restart |
Configure /etc/hosts
Modify the /etc/hosts file to include entries for the VM host and guest computers:
Add the entries in bold:
Tip |
---|
127.0.0.1 localhost 192.168.0.1 localvmhost 192.168.1.1 vmguest-1 |
Configure the sshd Service to Listen on the Virtual Private Network
Tip |
---|
vi /etc/ssh/sshd_config |
Add the following line to the end of the file:
Tip |
---|
ListenAddress 192.168.0.1 |
Restart the sshd service on the management node:
Tip |
---|
/sbin/service sshd restart |
Configure The VM Host To Be Able To SSH To Itself
Add the VM host's public key to its own authorized_keys file to allow it to SSH to itself without a password prompt:
Tip |
---|
cat /etc/vcl/vcl.key.pub >> /root/.ssh/authorized_keys |
The following command should execute without having to enter a password:
Tip |
---|
ssh localvmhost 'ls /' |
Configure vcld to use vcl.key
Configure the keys column in the managementnode table in the VCL database
- Edit the managementnode table in the database: set the keys column to /etc/vcl/vcl.key
Configure the vcld.conf file to use vcl.key:
Modify all of the IDENTITY lines to specify the vcl.key file:
Tip |
---|
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 The DHCP Service
Save a copy of the original dhcpd.conf file:
Tip |
---|
mv /etc/dhcpd.conf /etc/dhcpd.conf.orig |
Configure the dhcpd.conf file:
The dhcpd.conf file should contain the following:
Tip |
---|
Wiki Markup |
---|
ddns-update-style none; shared-network vmnet1 {
subnet 192.168.0.0 netmask 255.255.0.0 {
ignore unknown-clients;
option routers 192.168.0.1;
host vmguest-1 { option host-name "vmguest-1"; hardware ethernet 00:50:56:1a:01:01; fixed-address 192.168.1.1; filename "/tftpboot/pxelinux.0"; option dhcp-server-identifier 192.168.0.1; next-server 192.168.0.1; }
}
}
|
|
The DHCP daemon should only listen on the virtual private network (vmnet1) to avoid conflicts with other production VCL networks. Configure the dhcpd service startup script to only listen on the vmnet1 interface:
Add vmnet1 the to the daemon $dhcpd line as shown:
Tip |
---|
Wiki Markup |
---|
start() {
\[ \-x $dhcpd \] \|\| return 5
\[ \-f $conf \] \|\| return 6
pidofproc $prog >/dev/null 2>&1
RETVAL=$?
\[ $RETVAL \-eq 0 \] && return $RETVAL
echo \-n $"Starting $prog: "
daemon $dhcpd vmnet1 $DHCPDARGS 2>/dev/null
RETVAL=$?
echo
\[ $RETVAL = 0 \] && touch $lockfile
return $RETVAL
}
|
|
Configure the dhcpd service to automatically start at runlevels 3-5:
Tip |
---|
/sbin/chkconfig --level 345 dhcpd on |
Start the dhcpd service:
Tip |
---|
/sbin/service dhcpd start |
Configure the VCL Database for the VM Guest and Host
- Create the following computer groups:
Go to Manage Groups -> Resource Groups -> Add - all vm host computers
- all vm guest computers
- Map all computer groups to management node group
- Management Nodes -> Edit Management Node Mapping
- Configure the management node to check in with the database
- Management Nodes -> Edit Management Node Information -> Add
- Hostname: localhost
- IP Address: 127.0.0.1
- Owner: admin
- State: available
- Predictive Loading Module: Predictive Loading Level 0 Module
- Check-in Interval: 5
- Install Path: /install
- End Node SSH Identitiy Key Files: /etc/vcl/vcl.key
- SSH Port for this node: 22
- Enable Image Library: no
- Add VM host computer:
- Manage Computers -> Edit Computer Information -> Submit -> Add
- Hosthame: localvmhost
- IP Address: 192.168.0.1 (NOTE: there is currently a bug restricting the size of the field, so hopefully one octet has less than 3 digits.)
- State: available
Note: do not attempt to add the computer in the maintenance state because of the following issue:
https://issues.apache.org/jira/browse/VCL-189 - 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
Note: the Type and Provisioning engine values don't matter for the localvmhost computer in this test environment because vcld isn't provisioning it - Computer Groups: all vm host computers
- Add VM guest computer:
- Manage Computers -> Edit Computer Information -> Submit -> Add
- Hosthame: vmguest-1
- 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 computers
- Note the fix for the IP address bug is recorded here: https://issues.apache.org/jira/browse/VCL-193
- Configure the VM guest's MAC address in the computer table in the database (as there currently does not seem to be a way to do this through the UI):
- eth0: 00:50:56:1a:01:01
- eth1: 00:50:56:1a:01:02
- Configure the VM host profile:
- Virtual Hosts -> VM Host Profiles tab -> VMware GSX standard -> configure Profile
- Virtual Switch 0: VMnet1
- Virtual Switch 1: VMnet0
- Change state of localvmhost to vmhostinuse (edit the database directly, do not use the Virtual Hosts utility on the website)
- Assign vm guests to localvmhost
- Create node in priviledge tree
- Name: VM image access
- Add resource groups:
- all vm guest computers
- all vm guest images