- create the instance :
- declare dns if not already declared
- declare dhcp if not already declared
- on ganeti master :
for i in 1 3 4 5 6 7 8 9 10 11 12;do echo z2-$i && ssh z2-$i "cd /etc/dhcp3 && hg pull -u && /etc/init.d/dhcp3-server restart && rm /var/cache/bind/* && /etc/init.d/bind9 restart";done
- on ganeti master :
gnt-instance add --no-start -t drbd -s 10G -B memory=128m --no-start -n z2-X.host.gnt:z2-Y.host.gnt -o debootstrap --net 0:mac=XX:XX:XX:XX:XX:XX yourvm.vm.gnt
- on ganeti master :
gnt-instance activate-disk yourvm.vm.gnt
It will answer with something like :
z2-X.host.gnt:/dev/drbdYY
- on z2-7.host.gnt (the result of previous command) :
gzip -c your_vm_image.gz | ssh z2-X.host.gnt "dd of=/dev/drbdYY
- on ganeti master :
gnt-instance deactivate-disk yourvm.vm.gnt gnt-instance start yourvm.vm.gnt