Can't get Virtual Network Setup in KVM
Tom Horsley
horsley1953 at gmail.com
Mon May 3 23:08:27 UTC 2010
On Mon, 03 May 2010 18:57:23 -0400
Jim wrote:
> Whereis Virt Manager ?
> I look for it but could not find.
I's /usr/bin/virt-manager on my system, perhaps you don't
have the entire virtualization program group installed?
Also, the name virbr0 may be out of date. I just looked
on my system, (where I currently have 2 virtual machines
running on the bridge interface), and I see this from
ifconfig:
br0 Link encap:Ethernet HWaddr 00:1B:21:3A:00:F3
inet addr:192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:21ff:fe3a:f3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10350246 errors:0 dropped:0 overruns:0 frame:0
TX packets:8895237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7419469965 (6.9 GiB) TX bytes:1851025477 (1.7 GiB)
eth0 Link encap:Ethernet HWaddr 00:1B:21:3A:00:F3
inet6 addr: fe80::21b:21ff:fe3a:f3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10365591 errors:0 dropped:0 overruns:0 frame:0
TX packets:8930748 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7587557604 (7.0 GiB) TX bytes:1853458690 (1.7 GiB)
Memory:febe0000-fec00000
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:310941 errors:0 dropped:0 overruns:0 frame:0
TX packets:310941 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:50996677 (48.6 MiB) TX bytes:50996677 (48.6 MiB)
vnet0 Link encap:Ethernet HWaddr 1A:7E:39:6E:3E:37
inet6 addr: fe80::187e:39ff:fe6e:3e37/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4503 errors:0 dropped:0 overruns:0 frame:0
TX packets:13775 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:314051 (306.6 KiB) TX bytes:11986953 (11.4 MiB)
vnet1 Link encap:Ethernet HWaddr CA:21:C0:18:AC:82
inet6 addr: fe80::c821:c0ff:fe18:ac82/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4410 errors:0 dropped:0 overruns:0 frame:0
TX packets:11904 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:310520 (303.2 KiB) TX bytes:11861044 (11.3 MiB)
The br0 interface is my bridge setup by this ifcfg-br0 file:
# Networking Interface
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
GATEWAY=192.168.1.1
IPADDR=192.168.1.106
IPV6INIT=no
NETMASK=255.255.255.0
ONBOOT=yes
PEERDNS=no
USERCTL=no
NM_CONTROLLED=no
The eth0 interface is attached to the bridge:
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
DEVICE=eth0
#BOOTPROTO=none
#GATEWAY=192.168.1.1
HWADDR=00:1b:21:3a:00:f3
#IPADDR=192.168.1.106
#NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
BRIDGE=br0
NM_CONTROLLED=no
PEERDNS=no
And the vnet0 and vnet1 interfaces were created by
libvirtd to run my virtual machines on the bridge.
More information about the users
mailing list