User:Bourke/VirtualboxUbuntuGuiSandbox

From MPDLMediaWiki
< User:Bourke
Revision as of 09:21, 13 July 2011 by Bourke (talk | contribs) (Protected "User:Bourke/VirtualboxUbuntuGuiSandbox" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
Jump to navigation Jump to search

Copying and Cloning[edit]

Good Article is Copying and Cloning VirtualBox VMs

Copy (from one machine to another)[edit]

copy hard disk (vdi file) as normal with rsync. Need to recreate Virtual Machine in the Gui. Snapshots are not allowed

Setup Shared Folder[edit]

Ubuntu Community Documentation SharedFolders


Done: added share in VirtualBoxManage on hostOS:

 username@guestOShostname:~$ sudo mount -t vboxsf share /mnt/hostshare
 /sbin/mount.vboxsf: mounting failed with the error: No such device


Still open:

 username@guestOShostnam:~$ sudo mount -t vboxsf share /mnt/hostshare
 /sbin/mount.vboxsf: mounting failed with the error: No such device

UBuntu Guest OS[edit]

Setup Virtualbox as follows

Name: Ubuntu_10_02_Gui_Sandbox_32Bigt Virtual Memory: default (384 MB) Create new harddisk size 8192 mb autogrow name:

ubuntu livecd in cddrive, english install, germankeyboad, complete disk

after install, sudo apt-get upgrade to fetch the latest versions


guestadditions (required for shared clipboard, folder sharing)

Guest_additions_install

install from ubuntu repositories (onto guest OS, not host OS)
 sudo apt-get install virtualbox-guest-additions
 (this rebuilds the kernel to run vbox, reboot after this)

 sudo mkdir /media/cdimage
 
 sudo mount -o loop /usr/share/virtualbox/VBoxGuestAdditions.iso /media/cdimage
 cd /media/cdimage
 sudo ./VBoxLinuxAdditions-x86.run


following additional packages installed as standard

sun java

(and openjdk deinstall)

and a normal postgres setup

Now make a backup and use as a clone template