On Tue, May 13, 2008 at 4:35 AM, Anton Moiseev
On Tue, May 13, 2008 at 10:35 AM, Manne Merak
wrote: Anton Moiseev wrote:
On Sun, May 11, 2008 at 7:54 PM,
wrote: On Sunday 11 May 2008, Anton Moiseev wrote:
On Sun, May 11, 2008 at 7:29 PM,
wrote: Virtualbox 1.6 host networking doesn't work correctly
(http://www.virtualbox.org/ticket/1471). I have used version 1.5.2 without problems, just add both eth0 and eth1 to the bridge and
check
whether vbox0 state in "brctl showstp br0" is "forwarding".
Regards
Thank's for info. Can you please provide a bit more info on how the host system network should be configured for that? I have tried to add eth0 to the bridge:
BRIDGE_PORTS='eth1 eth0'
Then restarted network and lost inet on the host system (even without starting VirtualBox).
Bridge status with eth0 and eth1 added: br0 bridge id 8000.001731eae0c3 designated root 8000.001731eae0c3 root port 0 path cost 0 max age 20.00 bridge max age 20.00 hello time 2.00 bridge hello time 2.00 forward delay 0.00 bridge forward delay 0.00 ageing time 300.01 hello timer 1.04 tcn timer 0.00 topology change timer 0.00 gc timer 0.04 flags
eth1 (0) port id 0000 state disabled designated root 8000.001731eae0c3 path cost 19 designated bridge 8000.001731eae0c3 message age timer 0.00 designated port 8001 forward delay timer 0.00 designated cost 0 hold timer 0.00 flags
eth0 (0) port id 0000 state forwarding designated root 8000.001731eae0c3 path cost 19 designated bridge 8000.001731eae0c3 message age timer 0.00 designated port 8002 forward delay timer 0.00 designated cost 0 hold timer 0.04 flags
Anton
Try "BOOTPROTO='dhcp'" in ifcfg-br0 and remove the IPADDR line. Then enter "/etc/rc.d/vboxnet start". Make sure that eth0, eth1 and vbox0 are set to IP address 0.0.0.0. You may also need to disable the firewall, it might interfere in some cases.
Regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thank's for advice, all works right now - with bridge attached to eth0, and eth0 ip set to 0.0.0.0. And even in my VirtualBox, though it has version 1.6.0 My initial error was that I did not want to touch working eth0 and instead wanted to attach bridge to eth1 which is physically connected to nowhere. I was not very confident in this area, but after this task have made a big step forward. Thank's again
Anton
Does your bridge (br0) come up automatically? My bridge also works fine after following the steps in the help file, but NetworkManager seems to ignore the br0 interface, I have to manually ifup it every morning?. (I use wireless at home and wired at work, on laptop; so I like NM automatically connecting to my home wifi)
Manne
--
The bridge itself is initialized automatically, but I have to recreate vbox0 Virtual Box interface each time the network is restarted with "/usr/bin/VBoxAddIF vbox0 benderamp br0". I think this line could be put to some kind of network init script, but I did not try to go deeper into this problem.
br0 interface is not shown in Yast network configuration module, but I do not care as I do not use NetworkManager - I like KInternet much better and it also does not ignore br0 --
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Here is something I have wrote that makes setting up Virtual Box so easy. First make sure that you have edit your /etc/sysconf/SuSEfirewall2; make sure that you add this line at the end of the file... FW_FORWARD_ALWAYS_INOUT_DEV="br0" The will let the fire know that you want traffic to be pass back and forth on the bridge. Next you will need to make sure that you create the folder under /etc called vbox, /etc/vbox and run the following command under the folder... touch interface Once you have done that then you can run the following command... VBoxAddIF eth1 <username> br0 This will set up the virtual interface you are going to run. If you don't do that, then the interface will not come up. Once you have that set up then you can run this script.... ---------------------------------cut below here---------------------------------------------------- #!/bin/bash # By Chuck Payne # This will set up the bridge and interface for virtual box PATH="$PATH:/home/$USER/bin:/usr/local/bin:/usr/local/sbin:/etc/vbox" case "$1" in start) brctl addbr br0 brctl addif br0 eth0 eth1 ifconfig br0 up dhcpcd br0 ifconfig eth0 0.0.0.0 ;; status) brctl show ;; stop ) ifconfig br0 down brctl delif br0 eth1 brctl delif br0 eth0 brctl delbr br0 /etc/init.d/network restart ifconfig br0 down brctl delbr br0 ;; *) echo "Usage: $0 start | status | stop" ;; esac -----------------------------end of script------------------------------------------------ This script has saved me counts headaches. And my script I have it load three virtual interface. I didn't go over it, but make sure you have these services running /etc/init.d/vboxdrv /etc/init.d/vboxnet I did a chkconfig --add for those so that when every my laptop or my box comes up they running. I know this might be a bit off what you were asking but I want to share a simple of way set up virtual box. Cheers -- -- Command, n.: Statement presented by a human and accepted by a computer in such a manner as to make the human feel as if he is in control. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org