Software Challenge : VMClient-Konfiguration14.04

Erstellung eines neuen Images

  • Ubuntu 14.04.04 LTS Server als Base Image
  • Dynamic Harddisk mit 8GB
  • 1536 MB Ram
  • Partitionierung: Automatisch - Use Entire Disk (ohne LVM: http://unix.stackexchange.com/a/48069)
  • Partition 1: ext4 plus swapfile (macht bei so "wenig" Ram evt. sinn)
  • Username: scadmin Pass: scadmin
  • Hostname: base

Provisionierung mit ansible

socha-sysops aus github clonen.

> ansible-playbook -i inventory 01-provision-vmclient.yml

 

Einbinden auf Numerobis

VM Ordner nach /home/vbox/vms/ kopieren

> VBoxManage registervm /home/vbox/vms/vmclient14.04/vmclient14.04.vbox

Netzwerk Konfigurieren:

> VBoxManage modifyvm vmclient14.04 --nic1 hostonly --hostonlyadapter1 vboxnet0

 

Problem:

Testlauf vom 18.02: Beide VMs haben die gleiche IP. Man kann darauf nicht per ssh verbinden. Logs sind in:

> cat log/vmclient/2015/02/18/vmclient-2015-02-18_15-28-06.log

Starting a new VM at Wed Feb 18 15:28:06 MET 2015
VM name: vmclient-2015-02-18_15-28-06
Creating vm clone
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Machine has been successfully cloned as "vmclient-2015-02-18_15-28-06"
Starting vm vmclient-2015-02-18_15-28-06
Waiting for VM "vmclient-2015-02-18_15-28-06" to power on...
VM "vmclient-2015-02-18_15-28-06" has been successfully started.
VM-IP found: 192.168.57.108
Waiting until timeout reached or client terminated...
VM not booted yet: 0
VM not ready yet, waited 0, sleeping for 15
VM IP changed from 192.168.57.108 to 192.168.57.21. This is NOT GOOD!
VM not booted yet: 0
VM not ready yet, waited 15, sleeping for 15
VM IP changed from 192.168.57.108 to 192.168.57.21. This is NOT GOOD!

> cat log/vmclient/2015/02/18/vmclient-2015-02-18_15-28-11.log

Starting a new VM at Wed Feb 18 15:28:11 MET 2015
VM name: vmclient-2015-02-18_15-28-11
Creating vm clone
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Machine has been successfully cloned as "vmclient-2015-02-18_15-28-11"
Starting vm vmclient-2015-02-18_15-28-11
Waiting for VM "vmclient-2015-02-18_15-28-11" to power on...
VM "vmclient-2015-02-18_15-28-11" has been successfully started.
VM-IP found: 192.168.57.108
Waiting until timeout reached or client terminated...
VM not booted yet: 0
VM not ready yet, waited 0, sleeping for 15
VM IP changed from 192.168.57.108 to 192.168.57.22. This is NOT GOOD!
VM not booted yet: 0
VM not ready yet, waited 15, sleeping for 15
VM IP changed from 192.168.57.108 to 192.168.57.22. This is NOT GOOD!

 

Der VirtualBox DHCP ist an:

> VBoxManage list dhcpservers
NetworkName: HostInterfaceNetworking-vboxnet0
IP: 192.168.56.100
NetworkMask: 255.255.0.0
lowerIPAddress: 192.168.57.1
upperIPAddress: 192.168.57.254
Enabled: Yes