Using a physical drive on a virtual machine

Discussions related to using VirtualBox on Linux hosts.
rez
Posts: 1
Joined: 9. Mar 2012, 12:12

Re: Using a physical drive on a virtual machine

Post by rez »

I got this working by running virtualbox as root:

sudo virtualbox

This gave me a new virtualbox instance but none of my machines were present, I simply had to browse to where my virutal box machines are stored and add in the one I needed and then it allowed me to add the new VMDK image without problem. Booted and could see the real disk like it was installed in the VM!
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Using a physical drive on a virtual machine

Post by Martin »

On many Linux distributions it should be enough to add your normal user to the "disk" group instead of running Vbox as root.
gmchenry
Posts: 3
Joined: 5. Oct 2010, 10:23
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows XP, Open Solaris

Re: Using a physical drive on a virtual machine

Post by gmchenry »

Did you add the "vboxuser" to your username group?
jmlm-1970
Posts: 1
Joined: 26. Oct 2013, 18:33

Re: Using a physical drive on a virtual machine

Post by jmlm-1970 »

It seems that your user account also needs to be part of the disk group member:

sudo usermod -a -G disk
Post Reply