Quoting Marc Joliet <[EMAIL PROTECTED]>:
What I need is the bidirectional communication between host and guest.
Sorry, but I can't help you there, though I'm going to sit down and set
that up myself when I have time (this year, I hope ;) ).
I know! I know!! :-)
The following assumes baselayout-2
This is my /etc/conf.d/net:
bridge_br0="eth0"
config_eth0="null"
config_br0="dhcp"
brctl_br0="setfd 0 sethello 0 stp on"
Then run:
sudo ln -s net.lo /etc/init.d/net.eth0
sudo ln -s net.lo /etc/init.d/net.br0
And:
sudo rc-update add net.eth0
sudo rc-update add net.br0
Reboot if you want. After reboot you should have br0 and eth0:
[EMAIL PROTECTED] ~ $ sudo ifconfig
[sudo] password for zoolook:
br0 Link encap:Ethernet HWaddr 00:1b:fc:fb:82:08
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fefb:8208/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:286825 errors:0 dropped:0 overruns:0 frame:0
TX packets:202074 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:242240512 (231.0 MiB) TX bytes:32231791 (30.7 MiB)
eth0 Link encap:Ethernet HWaddr 00:1b:fc:fb:82:08
inet6 addr: fe80::21b:fcff:fefb:8208/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:286819 errors:0 dropped:0 overruns:0 frame:0
TX packets:203897 errors:0 dropped:0 overruns:0 carrier:2
collisions:0 txqueuelen:1000
RX bytes:246254404 (234.8 MiB) TX bytes:32369094 (30.8 MiB)
(note that eth0 does not have ipv4 address)
After all this, create a small bash script in /usr/bin. I called mine
addif.sh:
#!/bin/bash
IF="${1}"
ACTION="${2}"
BRIDGE=br0
case "$ACTION" in
up)
sudo VBoxAddIF "${IF}" "${LOGNAME}" "${BRIDGE}" >/dev/null 2>&1
;;
down)
sudo VBoxDeleteIF "${IF}" >/dev/null 2>&1
;;
esac
echo $IF
Add this to /etc/sudores:
%vboxusers ALL=(ALL) NOPASSWD: /usr/bin/VBoxAddIF, /usr/bin/VBoxDeleteIF
Now. Open VirtualBox and configure network like this:
Attached to: Host Interface
Setup application: addif.sh vbox0 up
terminate application: addif.sh vbox0 down
Note that "vbox0" is any name you like. I named mine "xp" or "nt4" or
"centos" depending on the guest.
The interface is create and destroyed on demand.
Regards,
Norberto
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.