• find or create the MAC of the VM, 52:54:ee:9d:1a:10 in this case
  • define dns/dhcp/nagios/proxy etc. (out of the scope of this page)
  • make iso available on all nodes (or at least ganeti master, instance primary)
  • Try :
    gnt-instance add -d -t drbd -s 10G -B memory=512 -H kvm:kernel_path=,initrd_path=,boot_order=cdrom,cdrom_image_path=/root/turnkey-redmine-2009.10-hardy-x86.iso,vnc_bind_address=0.0.0.0 -n z2-3.host.gnt:z2-1.host.gnt -o debootstrap+default --net 0:mac=52:54:ee:9d:1a:10 redmine.pokersource.vm.gnt
    
  • When add is done, use gnt-instance info to see which port vnc is bound to, and connect to vnc.
  • The network must be configured manually because older/simpler DHCP clients are confused when the default route is not on the same subnet as the IP address of the VM
    • IP : 10.10.1.XXX
    • netmask : 10.10.0.0/16
    • gateway : 10.10.0.254
    • DNS : 10.10.0.254
  • If the installer fails, try the following in a shell:
    • ip link set eth0 up
    • ip addr add 10.10.1.XXX dev eth0
    • route add -net 10.10.0.0 netmask 255.255.0.0 dev eth0
    • route add default gw 10.10.0.254
    • echo nameserver 10.10.0.254 > /etc/resolv.conf
  • After installation, the DHCP client installed for Debian lenny or squeeze can handle the answer from the DHCP server and the interface must be changed from static to dhcp in /etc/network/interfaces
  • After reboot, the cdrom is eject and it will not boot, the following must be done:
    • gnt-instance modify -H boot_order=disk redmine.pokersource.vm.gnt
    • gnt-instance reboot redmine.pokersource.vm.gnt