Tag Archives: virtualbox

VirtualBox ‘/etc/init.d/vboxdrv setup’ issue after kernel update

vboxkernel
It’s too disturbed to run ‘/etc/init.d/vboxdrv setup’ command after kernel update each time. But how can it be fixed?
Fortunately, way is:

sudo apt-get install linux-headers-`uname -r`
sudo dpkg-reconfigure virtualbox-dkms  
sudo modprobe vboxdrv

So, DKMS package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
Thanx to http://askubuntu.com/a/220778 a lot!

Guest Additions for Virtualbox in Linux

If your guest additions don’t mounted automaticly, use:

  mkdir /mnt/cdrom
  mount -t iso9660 /dev/cdrom0 /mnt/cdrom
  cd /mnt/cdrom
  sh ./VBoxLinuxAdditions.run

Run NetBSD in Virtualbox

Running NetBSD in vbox may occurs some problem. To solve use VBoxSDL:

"C:\Program Files\Oracle\VirtualBox\VBoxSDL.exe" --norawr0 --startvm netbsd

where netbsd is your vm name.

Expand disk size in Virtualbox


First, go modify in host:

VBoxManage modifyhd /path/to/disk/smalldisk.vdi --resize 20480

Next, mount new disk and bootable CD with Gparted (http://gparted.sourceforge.net/ or other) in virtualbox.

Boot and change disk size.

Just simple.

Clone disk image in VirtualBox


To clone disk type in cmd like:

"%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe" clonevdi "F:\VIRTUAL_OS\WinXP_Default\WinXP_Default.vdi" "F:\VIRTUAL_OS\WinXP_Java\WinXP_Java.vdi"

So, you create new WinXP_Java image.