I have follwee
this howto in order to set up a couple of KVM's.
For the most part everything went smoothly, except the virtual network interface, whch has neither an IP (public) nor a GW (public as well), although both have been assigned while building the VM.
Here's what ifconfog says:
Quote:
br0 Link encap:Ethernet HWaddr 00:25:90:71:32:46
inet addr:1.2.3.4 Bcast:1.2.3.5 Mask:255.255.255.0
inet6 addr: fe80::225:90ff:fe71:3246/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21416 errors:0 dropped:0 overruns:0 frame:0
TX packets:18501 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:117467022 (117.4 MB) TX bytes:1632901 (1.6 MB)
eth0 Link encap:Ethernet HWaddr 00:25:90:71:32:46
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:98249 errors:0 dropped:0 overruns:0 frame:0
TX packets:18873 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:123752134 (123.7 MB) TX bytes:1745755 (1.7 MB)
Interrupt:16 Memory:fbce0000-fbd00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:673 errors:0 dropped:0 overruns:0 frame:0
TX packets:673 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:82024 (82.0 KB) TX bytes:82024 (82.0 KB)
virbr0 Link encap:Ethernet HWaddr 7a:da:7d:91:c1:cc
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vnet0 Link encap:Ethernet HWaddr fe:54:00:7a:8f:b6
inet6 addr: fe80::fc54:ff:fe7a:8fb6/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:0 overruns:1 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
|
and route -n says
Quote:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 1.2.3.4 0.0.0.0 UG 100 0 0 br0
1.2.3.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
|
The VM is running:
Quote:
virsh # list
Id Name State
----------------------------------
1 whatever running
|
but iface-list returns an error
Quote:
virsh # iface-list
error: Failed to list active interfaces
error: this function is not supported by the connection driver: virConnectNumOfInterfaces
|
Help is much welcome.
[EDIT]
Just in case, /etc/network/interfaces looks as follows (the public IP's are changed for obvious reasons)
Quote:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 1.2.3.4
network 1.2.3.0
netmask 255.255.255.0
broadcast 1.2.3.255
gateway 1.2.3.254
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
|
Recent comments
8 hours 29 min ago
9 hours 29 min ago
13 hours 16 min ago
14 hours 30 min ago
18 hours 6 min ago
1 day 1 hour ago
1 day 10 hours ago
1 day 11 hours ago
2 days 2 hours ago
2 days 5 hours ago