Visit the LQ Articles and Editorials section
Go Back > Blogs > dr_agon
User Name


Rate this Entry

Setting udev permission for raw host disk access by virtualbox machine.

Posted 10-14-2008 at 09:02 AM by dr_agon

applies to: linux, udev, permissions, device node, virtualbox

To allow raw host disk access by guest machine on VirtualBox the user must have read-write permission to all partitions which are to be accessed. You can do this by something like
sudo chmod a+rw /dev/sda7
but executing it every time you need to boot virtual machine is annoying. You may want to set the permissions at boot time.
In modern kernels (since 2.6) you can use the udev rules for setting default permissions to selected devices. I created a file /etc/udev/rules.d/60-whatever.rules with a following rule:
KERNEL=="sda[78]*",		MODE="0666"
This sets the permission for everyone to read-write /dev/sda7 and /dev/sda8.

That's all I needed.

Posted in Uncategorized
Views 4749 Comments 0
« Prev     Main     Next »


All times are GMT -5. The time now is 07:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration