create MASS ubuntu.guest.installation INSTANTLY

Discussions related to using VirtualBox on Linux hosts.
Post Reply
chika.tambun
Posts: 5
Joined: 24. Apr 2009, 00:29
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: windows

create MASS ubuntu.guest.installation INSTANTLY

Post 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?
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: create MASS ubuntu.guest.installation INSTANTLY

Post 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
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: create MASS ubuntu.guest.installation INSTANTLY

Post 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.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Post Reply