You are not logged in.
I installed virtualbox and virtualbox-modules from the repos. I added the three modules to my rc.conf. I also added my user to the vboxusers group. I can create host only networks and run VMs. However, the host only traffic doesn't appear to be routed to the correct interface. I can't ssh to my VM via the host only interface. When I do an 'ip addr' the interface says its DOWN. When I try to manually change it to "UP", the interface changes state to "UNKNOWN".
191 ~ > lsmod | grep vbox
vboxnetflt 17063 2
vboxnetadp 5843 0
vboxdrv 1792230 4 vboxnetadp,vboxnetflt
192 ~ > groups
lp wheel games video audio optical storage scanner power users vboxusers
190 ~ > ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:25:11:71:47:c6 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.32/24 brd 192.168.1.255 scope global eth0
inet6 fe80::225:11ff:fe71:47c6/64 scope link
valid_lft forever preferred_lft forever
5: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
197 ~ > ip route
default via 192.168.1.1 dev eth0 metric 202
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.32 metric 202
198 ~ > ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:25:11:71:47:c6 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.32/24 brd 192.168.1.255 scope global eth0
inet6 fe80::225:11ff:fe71:47c6/64 scope link
valid_lft forever preferred_lft forever
5: vboxnet0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
inet6 fe80::800:27ff:fe00:0/64 scope link
valid_lft forever preferred_lft forever
Offline
can anyone help with this?
Offline
BTW, this fixes it "sudo ip route add 192.168.56.0/24 dev vboxnet0"
I just don't want to always have to run that. VirtualBox should take care of it.
Offline
I had this problem too. You have to install the deprecated net-tools package.
Offline