VBoxAddIF and group

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ogbt
Posts: 1
Joined: 13. Jun 2008, 09:13

VBoxAddIF and group

Post by ogbt »

Hello,
I'm new in the forum and my problem is :
I would like to create a VirtualHostInterface for a group as VBoxAddIF is able to do

Code: Select all

VBoxAddIF vbox0 -g vboxusers br0
VirtualBox host networking interface creation utility, version 1.6.2
(C) 2005-2007 Sun Microsystems, Inc.
All rights reserved.

Creating the perm host net interface "vbox0" for group vboxusers.


ifconfig
show : br0 , eth0, vbox0 and lo

evrythings seem to be ok but my VirtualMachine can't get an IP adresse from DHCP

instead, if I create a VHI for a user : VBoxAddIF vbox0 $USERNAME br0
evrythings work's fine.

As I have a lot of users (studients), I have to create a VHI for a group.

Any ideas ???

Thanks for all
jerkface
Posts: 4
Joined: 23. Jun 2008, 01:04

Post by jerkface »

I'm having a similar problem. I have a user named jerkface in the following groups: jerkface wheel users pulse-rt vboxusers dba. If I configure host interface networking to use an interface with permissions for any of these groups besides jerkface, the machine gives this error message when I try to power it on.

Code: Select all

Failed to initialize Host Interface Networking.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).


Result Code: 
0x80004005
Component: 
Console
Interface: 
IConsole {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}
The machine powers on and works as expected if the interface has permissions for the group jerkface.

Also, the vboxnet init script is bugged. An interface with group permissions will never be created at boot, because $user is never initialized. When a group name is read from /etc/vbox/interfaces, the init script tries to create the interface with user permissions for +groupname. Hence this error message when the vboxnet service is started.

Code: Select all

Warning - failed to create the interface vbox0 for the user +vboxusers
I am running VirtualBox 1.6.2 on Fedora 8 kernel version 2.6.25.9-40.fc8.
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 »

Host Interface does not support the use of groups. This has been discussed before. We all hope that the developers change this so that it is possible. Like the TS states, he has a lot of students and it would be a real mess if you have to create 20+ interfaces.
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.
Post Reply