Opened 16 years ago
Closed 16 years ago
#2780 closed defect (fixed)
Cannot attach to Linux hostifs without IP => Fixed in SVN
Reported by: | Technologov | Owned by: | |
---|---|---|---|
Component: | network/hostif | Version: | VirtualBox 2.1.0 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Linux |
Description
The new networking stack of VirtualBox 2.1.0 does not detect NICs on the Linux host unless that NIC has IP address specified.
However in some cases I would not want my host NIC to have any IP at all.
For example my server has 2 NICs: 1 NIC should have IP to access the server, and second NIC is dedicated for VM networking, so it may not have an IP address at all - for security reasons.
For purposes of VBox I want my VMs to be connected to the second NIC, however it is not possible now with VBox 2.1.0, as the second NIC is not shown on the list of available host connections.
Instead I recommend list the NIcs to guest OS on a different criteria: namely whenever the interface is "UP"
This is partial output of "ifconfig" - you can see that the interface is "up" on 4th line.
tap0 Link encap:Ethernet HWaddr 00:FF:DE:E1:97:1E
inet addr:192.168.168.168 Bcast:192.168.168.255 Mask:255.255.255.0 inet6 addr: fe80::2ff:deff:fee1:971e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:26 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
-Technologov, 18.12.2008.
Change History (6)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Summary: | New network stack has Host NIC detection problems → Cannot attach to Linux hostifs without IP |
---|
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | Cannot attach to Linux hostifs without IP → Cannot attach to Linux hostifs without IP => Fixed in SVN |
I changed the way of network interface enumeration (SIOCGIFCONF => /proc/net/dev parsing), now all the interfaces will be picked up. Note that only the interfaces with Ethernet encapsulation will be listed.
comment:4 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:5 by , 16 years ago
Component: | network → network/hostif |
---|
comment:6 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
update: This is partial output of "ifconfig" - you can see that the interface is "up" on 4th line.
tap0 Link encap:Ethernet HWaddr 00:FF:DE:E1:97:1E