Configuring nic1 in bridged mode on gentoo causes trouble

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Stetanchi
Posts: 3
Joined: 22. Oct 2011, 23:53
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Win7 / WinXP

Configuring nic1 in bridged mode on gentoo causes trouble

Post by Stetanchi »

Hi,

I am running gentoo with kenel 3.06 and VB 4.0.12.
Created a Winxp Guest with the folowing steps...

Code: Select all

1.
VBoxManage createvm --name "WinXP1" --ostype WindowsXP --register --basefolder /mnt/VM/winxp/
2.
VBoxManage modifyvm "WinXP1" --memory 256 --acpi on --boot1 dvd --nic1 nat
3.
VBoxManage createhd --filename "/mnt/VM/winxp/WinXP1.vdi" --size 15000
4.
VBoxManage storagectl "WinXP1" --name "IDE Controller" --add ide --controller PIIX4
5.
VBoxManage storageattach "WinXP1" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "/mnt/VM/winxp/WinXP1.vdi"
6.
VBoxManage storageattach "WinXP1" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /media/sdd1/software/de_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73985.iso
Everything went well and the WinXP is able to start Headless.

Changed the nic1 to bridged mode:

Code: Select all

VBoxManage modifyvm "WinXP1" --memory 256 --acpi on --boot1 dvd --nic1 bridged
Trying to start Guest leads to the following error:

Code: Select all

vdr ~ # VBoxHeadless --startvm "WinXP1"
Oracle VM VirtualBox Headless Interface 4.0.12
(C) 2008-2011 Oracle Corporation
All rights reserved.

VRDE server is listening on port 3389.
Error: failed to start machine. Error message: Failed to open/create the internal network 'HostInterfaceNetworking-' (VERR_INVALID_PARAMETER).
Unknown error creating VM (VERR_INVALID_PARAMETER)
Any idea how to get bridged mode for nic1 up and running?

Thanks in advance regards, Stefan
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Configuring nic1 in bridged mode on gentoo causes troubl

Post by Sasquatch »

You have not specified which interface the VM to bridge with.
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.
Stetanchi
Posts: 3
Joined: 22. Oct 2011, 23:53
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Win7 / WinXP

Re: Configuring nic1 in bridged mode on gentoo causes troubl

Post by Stetanchi »

Thanks Sasquatch,

that was the missing link. I got it working with ...

Code: Select all

VBoxManage modifyvm winxp --nic1 bridged --bridgeadapter1 eth0

... but I was not able to find this option "--bridgedadapter" documented somewhere.

Thanks a lot regards, Stefan
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Configuring nic1 in bridged mode on gentoo causes troubl

Post by Sasquatch »

Really? Chapter 8.7.2 of the User Manual states otherwise.
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.
tuxembb
Posts: 2
Joined: 8. Dec 2012, 11:35

Re: Configuring nic1 in bridged mode on gentoo causes troubl

Post by tuxembb »

It didnt help me,
can you tell me where im going wrong>

VBoxManage createvm --name "CentOS6.3" --ostype RedHat_64 --register
VBoxManage modifyvm "CentOS6.3" --memory 1024 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth1
VBoxManage createhd --filename "CentOS6.3.vdi" --size 3000
VBoxManage storagectl "CentOS6.3" --name "IDE Controller" --add ide --controller PIIX4
VBoxManage storageattach "CentOS6.3" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "CentOS6.3.vdi"
VBoxManage storageattach "CentOS6.3" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /home/bubba/CentOS_6.3_Final.iso
VBoxHeadless --startvm "CentOS6.3"
Oracle VM VirtualBox Headless Interface 4.2.4
(C) 2008-2012 Oracle Corporation
All rights reserved.

VRDE server is listening on port 3389.
Error: failed to start machine. Error message: Failed to open/create the internal network 'HostInterfaceNetworking-' (VERR_INVALID_PARAMETER).
Failed to attach the network LUN (VERR_INVALID_PARAMETER)
tuxembb
Posts: 2
Joined: 8. Dec 2012, 11:35

Re: Configuring nic1 in bridged mode on gentoo causes troubl

Post by tuxembb »

tried this as well.

bubba@sc430:~$ VBoxManage modifyvm "CentOS6.3" --memory 1024 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0
bubba@sc430:~$ VBoxManage startvm "CentOS6.3" --type headless
Waiting for VM "CentOS6.3" to power on...
VBoxManage: error: Failed to open/create the internal network 'HostInterfaceNetworking-' (VERR_INVALID_PARAMETER).
VBoxManage: error: Failed to attach the network LUN (VERR_INVALID_PARAMETER)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Console, interface IConsole
bubba@sc430:~$
Post Reply