...
Panel |
---|
cd /root |
No Format |
---|
chmod +x /root/gen-node-key.sh |
Panel |
---|
Windows IP Configuration |
No Format |
---|
/root/gen-node-key.sh 152.46.18.179 |
No Format |
---|
ssh 152.46.18.179 |
...
Panel |
---|
vi /etc/hosts |
Panel |
---|
127.0.0.1 localhost |
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 |
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 /' |
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 |
...
You may see the following dialog box when powering on a VM which has been saved in a VCL image. Click on Always Keep: