User:Bourke/VirtualboxUbuntuGuiSandbox

From MPDLMediaWiki
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

Windows7 Server Guest OS[edit]

Install Media =[edit]

  • from EDV - licensed via domain controller
  • Guest Additions. Download via Menu / Internet works ok

Setup =[edit]

  • Network: currently at default (NAT). Needs non-default setup to discover domain controller?)
  • Display: just reset monitor size from control panel and the windows resizes automatically
  • Windows Update: Yes, important updates / security patches only
  • Browser Selection. Default (IE9?)

Then add[edit]

  • Java 6 JDK
  • Postgres 8.1 - 8.4
  • PGadmin3


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