Use vm bridged nic on Linux (headless) host

Discussions related to using the OSE version of VirtualBox.
Post Reply
anov
Posts: 2
Joined: 10. Nov 2011, 11:04
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Ubuntu, Windows XP

Use vm bridged nic on Linux (headless) host

Post by anov »

Hi

using virtualbox-ose_3.2.8-dfsg-2ubuntu1_amd64.deb

Try to start vm with use "VBoxManage modifyvm VMname ... --nic1 bridged --cableconnected1 on --bridgeadapter1 tap0 --macaddress NNNNNNNN" options and manually setup tap0 for user, give it an IP, and add to "route -host..." in headless mode. In auto mode if no such iface:

Code: Select all

Error: failed to start machine. Error message: Failed to open/create the internal network 'HostInterfaceNetworking-tap3' (you might need to modprobe vboxnetflt to make it accessible) (VERR_INTNET_FLT_IF_NOT_FOUND).
Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND).
if added "tunctl -t tap0 -u username" configured or not
vbox said nothing about errors, but VM(linux) doesn`t see any network device eth0 (yes, I comment other strings in udev-net-persistent-rules and left one MAC).
nictrace1 make a file with single string(binary) and tcpdump on it says permission denied(for root also).
Note: this release don`t have VBoxTunctl binary.

For using tap I do:

tunctl -t tap0 -u username
ifconfig tap0 realIP1 up
route add -host realIP1 dev tap0
brctl addif br0 tap0

(br0 with realIP2 ports eth0, which without IP)
for some reason route for reallIP1/8 network added(and I delete it)

I need full integration of VM into host network. Please, give a piece of advice, what should I check or do.
thx!
anov
Posts: 2
Joined: 10. Nov 2011, 11:04
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Ubuntu, Windows XP

Re: Use vm bridged nic on Linux (headless) host

Post by anov »

I`ve also do that for last Vbox release 4.1.6(ubuntu) with same errors.
Then define also vm option --nictype - and it somehow works.

Finally, I just set up vm option --bridgeadapter to host interface (eth0 or br0). And all goes well.
Sorry for easy question.
Post Reply