Page 1 of 1

create MASS ubuntu.guest.installation INSTANTLY

Posted: 3. Jun 2009, 06:37
by chika.tambun
HOST: debian.etch
GUEST: 5 ubuntu.jeos

i've succesfully created 1 vdi as master; named jeos.vanilla.vdi
n copy it to 4 other vdi; named jeos.vanilla.1.vdi; jeos.vanilla.2.vdi, jeos.vanilla.3.vdi; jeos.vanilla.4.vdi

i've sucessfully made unique uuid for 4 other vdi so the error message appear
with command "VBoxManage internalcommands setvdiuuid jeos.vanilla.1.vdi"

when i try to networking each other with hostinterface... just the master can use hostinterface. What's the problem?
is there any other way to create mass guest os instantly, esp when i need more than 5 guest os?

Re: create MASS ubuntu.guest.installation INSTANTLY

Posted: 3. Jun 2009, 08:43
by fixedwheel
just the master can use hostinterface. What's the problem?
have a look at the ATTR{address}=="..." entry in /etc/udev/rules.d/70-persistent-net.rules
udev generates a new eth (with your guests probably eth1) caused by the new MAC Address of the clone but the network still is configured for e.g. eth0

i have not tried that but maybe you could simply delete the clone-master eth0 entry just before cloning, and eth0 will be regenerated at next restart (of the clone) with the right MAC address

Re: create MASS ubuntu.guest.installation INSTANTLY

Posted: 3. Jun 2009, 11:44
by TerryE
I've done a couple of posts on such provisioning. The main trick is that you need each VM to personalise itself. This includes clearing down things like etc/udev/rules.d/70-persistent-net.rules so a search for persistent rules will find most of these, but also resetting /etc/hostname

So (i) you need to have Guest additions installed and (ii) you need a hook in /etc/rc.local where you interrogate and parse guest properties using VBoxControl (again use this as a search key for examples). This way your host can customise each guest at startup.