import multiple machine.xml into VirtualBox.xml on new host

Discussions related to using VirtualBox on Windows hosts.
Post Reply
WebDougy
Posts: 1
Joined: 28. Sep 2009, 21:14
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: ubuntu9.05/8.04.3, xubuntu8.04.1, win95/98se/xp

import multiple machine.xml into VirtualBox.xml on new host

Post by WebDougy »

Very rough perl script hack for importing machine.xml into virtualbox.xml. Good for moving one or more Virtualbox vm's to a new host, but assumes no guests exist on new host. Script may need to be modified on *nix host as i used activeperl on xp. Use at your own risk!

REQUIREMENTS
-Windows host needs perl installed (obviously). *nix and mac os x are preinstalled i believe.
-Copy ***CONTENTS*** of both 'harddisks' and 'machines' to a folder (say d:\virtual for example) and put this script in there as well.
-Modify the variables $VB and $HOST in this script.
-This script makes certain assumtionS like <harddisk name>.vdi and <machine name>/<machine name>.xml are same name.

http://sites.google.com/site/webdougy/h ... ualbox-xml
Post Reply