If a man speaks in a forest, and his wife's not there, is he still wrong?

zfs volume as VirtualBox guest virtual disk

Here's how to use a zfs volume as a virtual disk for a VirtualBox guest:

First, create the volume:

zfs create -V 10G data/zvol_ubuntu_8_10

I run VirtualBox in user-space, so make sure I have write permission to the new volume:

chown robin /dev/zvol/rdsk/data/zvol_ubuntu_8_10

Create the vmdk "wrapper" around the raw device:

/opt/VirtualBox/VBoxManage internalcommands createrawvmdk \
    -filename ~/.VirtualBox/ubuntu_8_10.vmdk \
    -rawdisk /dev/zvol/rdsk/data/zvol_ubuntu_8_10

Register the new disk with VirtualBox (you can also do this from the GUI)

/opt/VirtualBox/VBoxManage registerimage disk ~/.VirtualBox/ubuntu_8_10.vmdk

The resulting disk will be available for selection when you create a new guest.

Story Options

zfs volume as VirtualBox guest virtual disk | 0 comments
The following comments are owned by whomever posted them. This site is not responsible for what they say.


  • Home
  • Misc (6/0)
  • Audio (5/0)
  • Linux (21/0)
  • Family (1/0)
  • Fishing Diary (1/0)
  • OpenSolaris (7/0)
  • Computing (11/0)
  • General News (7/0)
  • Chloe (1/0)
  • Emily (2/0)
  • Twins (5/0)
  • Classifieds (2/0)
  • GeekLog (2/0)
  • Project Management (1/0)
  • User Functions

    Lost your password?