Versions Compared

Key

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

...

  1. Download the gen-node-key.sh script to the following location on the management node:
    Panel

    cd /root
    wget http://cwiki.apache.org/confluence/download/attachments/121138/gen-node-key.sh?version=2

  2. Set the script to be executable:
    No Format
    chmod +x /root/gen-node-key.sh
    
  3. Determine the IP address of the Windows XP VM by running ipconfig:
    Panel

    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . :
    Autoconfiguration IP Address. . . : 169.254.123.175
    Subnet Mask . . . . . . . . . . . : 255.255.0.0
    Default Gateway . . . . . . . . . :
    Ethernet adapter Local Area Connection 2:
    Connection-specific DNS Suffix . : dcs.mcnc.org
    IP Address. . . . . . . . . . . . : 152.46.18.179
    Subnet Mask . . . . . . . . . . . : 255.255.248.0
    Default Gateway . . . . . . . . . : 152.46.23.254

  4. Run the script and specify the node as an argument (either the node's DNS name or IP address can be used):
    No Format
    /root/gen-node-key.sh 152.46.18.179
    
    Note: You will need to enter the root account's password during script execution.
  5. Attempt to connect from the management node to the Windows VM via SSH using the key:
    No Format
    ssh 152.46.18.179
    

...

Configure the hosts file to include entries for the VM host server and guest

Panel

vi /etc/hosts

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 The DHCP Service On The Management Node 

Save a copy of the original dhcpd.conf file:

Panel

mv /etc/dhcpd.conf /etc/dhcpd.conf.orig

Configure the dhcpd.conf file: 

Panel

vi /etc/dhcpd.conf

No Format
sharedddns-update-style none; shared-network vmnet1 {
7        subnet 192.168.0.0 netmask 255.255.0.0 {0 {
                ignore unknown-clients;
                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;
                        option dhcp-server-identifier 192.168.0.1;
                }
        }
}

Configure the dhcpd service to automatically start at runlevels 3-5:

Panel

/sbin/chkconfig --level 345 dhcpd on

Configure the dhcpd service to only listen on the vmnet1 virtual network:

Panel

vi /etc/init.d/dhcpd

Add vmnet1 the daemon $dhcpd line as shown:dhcpd 

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
}

Start the dhcpd service:  

Panel

/sbin/service dhcpd start

...

Common Problems

 You may see the following dialog box when powering on a VM which has been saved in a VCL image. Click on Always Keep: