[Solved] Setting permisions to /dev/vboxdrv again and again

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ouro
Posts: 11
Joined: 10. Mar 2008, 15:06

[Solved] Setting permisions to /dev/vboxdrv again and again

Post by ouro »

I'm using 1.6.2 OSE version over Ubuntu 8.04. I've added "vboxdrv" to /etc/modules to driver be loaded each time I start the computer but I have to change group using "chown" anyway. Are there any way to set group automatically??..

thnx.
Last edited by ouro on 7. Aug 2008, 14:03, edited 1 time in total.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Are you a member of the vboxusers group? Do that first, then come back here if you still have problems. The owner should be root:vboxusers.
Adding yourself to vboxusers group, run the next command in a terminal:

Code: Select all

usermod -aG vboxusers <your username>
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ouro
Posts: 11
Joined: 10. Mar 2008, 15:06

Post by ouro »

sorry, sasquatch. I think my explanation wasn't very clear. I already am in the vboxusers group. My problems is that when I start computer module loads with root:root permisions but I need to change :root group to :vboxusers to my user can start a virtual machine.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Then remove the vboxdrv module that you added. It is not needed, it's started automatically by the /etc/init.d/vboxdrv script. There is a reason why there is a boot entry called "Running init scripts". That starts every script that is found in /etc/init.d/. Why did you add the module in the first place?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ouro
Posts: 11
Joined: 10. Mar 2008, 15:06

Post by ouro »

I've compiled my own version of virtualbox and I haven't any script in /etc/init.d.
ouro
Posts: 11
Joined: 10. Mar 2008, 15:06

Post by ouro »

I solve this cuestion creating a new file: /etc/udev/rules.d/60-vboxdrv.rules with the next line:

Code: Select all

KERNEL=="vboxdrv" , NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"
Post Reply