Virtualbox

Clone a virtual machine

To clone a machine clone the virtual hard drive:

cd e:\VM\HardDisks\
"C:\Program Files\Oracle\VirtualBox\VBoxManage" clonehd  xp-template.vdi xp-new.vdi

As soon as the virtual hard drive is cloned you can create a new virtual machine, choose the cloned hard drive when prompted.

Convert a VM from VMware to Virtualbox

Converting can be acomplished by cloning the vmdk image to a new output format:

D:\daten\vmware_clients\Xubuntu>"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonehd Xubuntu.vmdk Xubuntu.vdi --format vdi
0%...10%...20%...30%...40%...50%...60%...

Virtualbox guest tools

To be able to configure a bigger screen resolution with Ubuntu (X11) install virutualbox-guest-x11

This will bring the mouse wheel to live again as well :-)

Change timeout for boot menu

Changing the VirtualBox boot order can be a challenge because you won't have enough time to hit F12 in time. So what?

The console window is your friend:

"C:\Program Files\Oracle\VirtualBox\VBoxManage" modifyvm Xubuntu --bioslogodisplaytime 8000

This will display the bios logo for 8 seconds when booting your “Xubuntu” VM

See http://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvm

Install Guest Additions for Debian Wheezy

  • We need to build kernel modules, so we have to install:
  • apt-get update && apt-get upgrade
  • apt-get install build-essential module-assistant
  • Next do the header stuff:
    m-a prepare
  • Choose “Install Guest Additions” from the menu
  • Cancel the upcoming “autorun program”
  • Execute:
    sh /media/cdrom/VBoxLinuxAdditions.run in your root terminal
  • Reboot

Install Guest Additions for Ubuntu 12.04 (Precise), 14.04 LTS (Trusty) and 16.04 LTS (Xenial)

  • Be root when doing the following (sudo su -)
  • We need to build kernel modules, so we have to install:
  • apt-get update && apt-get upgrade
  • apt-get install build-essential linux-headers-$(uname -r) dkms
  • Choose “Install Guest Additions” from the menu
  • Mount CDROM: mount /dev/cdrom /media/cdrom
  • Execute:
    sh /media/cdrom/VBoxLinuxAdditions.run in your root terminal
  • Reboot

Install Guest Additions for Debian Jessie

  • We need to build kernel modules, so we have to install:
  • apt-get update && apt-get upgrade
  • apt-get install dkms build-essential linux-headers-$(uname -r)
  • Choose “Install Guest Additions” from the menu
  • If the CD-ROM does not automount, execute mount /media/cdrom
  • Cancel the upcoming “autorun program” if applicable
  • Execute:
    sh /media/cdrom/VBoxLinuxAdditions.run in your root terminal
  • Reboot
virtual/virtualbox.txt · Last modified: 2016-11 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready