Network not working in KVM

S

synet2k

Guest
Hi

I created a KVM with CentOS 5.8 but couldn't get the network working. attached are the config files,

/etc/pve/qemu-server/103.conf
bootdisk: virtio0
cores: 4
ide2: local:iso/CentOS-5.8-x86_64-bin-DVD-1of2.iso,media=cdrom
memory: 512
name: test.domain.com
net0: virtio=4E:CB:A1:52:5F:4C,bridge=vmbr0
ostype: l26
sockets: 1
virtio0: local:103/vm-103-disk-1.raw

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
HWADDR=4E:CB:A1:52:5F:4C
IPADDR=118.122.241.222
NETMASK=255.255.255.0
NETWORK=118.122.241.222.0

/etc/sysconfig/network-scripts/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=test.domain.com
GATEWAY=118.122.241.1

Can anyone help? Thank you.
 
Last edited by a moderator:
Address HWtype HWaddress Flags Mask Iface
118.122.241.1 ether 00:00:0C:07:AC:C6 C eth0
 
Last edited by a moderator:
please confirm these ip addresses, because it looks as if no ip has been set/assigned to the kvm vm.

proxmox host: 118.122.241.222
kvm vm: ??

ARP should list a second IP of the kvm vm.

Please post output of
ip route and ipconfig
 
Last edited:
Hi xcooling,

thanks for your reply.

my proxmox host ip: 118.122.241.200
my centos vm ip: 118.122.241.222
gateway is 118.222.241.1

ip route:
118.122.241.0/24 dev eth0 proto kernel scope link src 118.122.241.222
169.254.0.0/16 dev eth0 scope link
default via 118.122.241.1 dev eth0

ifconfig:
eth0 Link encap:Ethernet HWaddr 4E:CB:A1:52:5F:4C
inet addr:118.122.241.222 Bcast:118.122.241.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35494 errors:0 dropped:0 overruns:0 frame:0
TX packets:430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2269426 (2.1 MiB) TX bytes:19202 (18.7 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:181 errors:0 dropped:0 overruns:0 frame:0
TX packets:181 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18212 (17.7 KiB) TX bytes:18212 (17.7 KiB)
 
proxmox host:

ip route:
118.122.241.0/24 dev vmbr0 proto kernel scope link src 118.122.241.200
default via 118.122.241.1 dev vmbr0

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:e0:81:43:bd:d0
inet6 addr: fe80::2e0:81ff:fe43:bdd0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:405025 errors:0 dropped:0 overruns:0 frame:0
TX packets:262986 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90367500 (86.1 MiB) TX bytes:102564861 (97.8 MiB)
Interrupt:18 Memory:df420000-df440000

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:277996 errors:0 dropped:0 overruns:0 frame:0
TX packets:277996 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:46623590 (44.4 MiB) TX bytes:46623590 (44.4 MiB)

tap103i0 Link encap:Ethernet HWaddr 7a:ba:fa:6a:31:3d
inet6 addr: fe80::78ba:faff:fe6a:313d/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:693 errors:0 dropped:0 overruns:0 frame:0
TX packets:63163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:37984 (37.0 KiB) TX bytes:4058181 (3.8 MiB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet6 addr: fe80::1/128 Scope:Link
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:3 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

veth101.0 Link encap:Ethernet HWaddr 00:18:51:38:a9:47
inet6 addr: fe80::218:51ff:fe38:a947/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:308 errors:0 dropped:0 overruns:0 frame:0
TX packets:95630 errors:0 dropped:941 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22828 (22.2 KiB) TX bytes:5162014 (4.9 MiB)

veth203.0 Link encap:Ethernet HWaddr 00:18:51:87:46:78
inet6 addr: fe80::218:51ff:fe87:4678/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18061 errors:0 dropped:0 overruns:0 frame:0
TX packets:112106 errors:0 dropped:980 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1685913 (1.6 MiB) TX bytes:6376351 (6.0 MiB)

veth206.0 Link encap:Ethernet HWaddr 00:18:51:13:82:51
inet6 addr: fe80::218:51ff:fe13:8251/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36248 errors:0 dropped:0 overruns:0 frame:0
TX packets:130844 errors:0 dropped:975 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21146740 (20.1 MiB) TX bytes:25508706 (24.3 MiB)

vmbr0 Link encap:Ethernet HWaddr 00:e0:81:43:bd:d0
inet addr:118.122.241.200 Bcast:118.122.241.255 Mask:255.255.255.0
inet6 addr: 2403:cc00:7000:0:2e0:81ff:fe43:bdd0/64 Scope:Global
inet6 addr: fe80::2e0:81ff:fe43:bdd0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:330637 errors:0 dropped:0 overruns:0 frame:0
TX packets:188380 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:58422877 (55.7 MiB) TX bytes:77878667 (74.2 MiB)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!