LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   KVM (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/kvm-4175486814/)

santhanam2006 12-04-2013 07:45 AM

KVM
 
I installed RHEL 6 - 64 bit as Host in IBM server and
installed RHEL 4.8 as guest using native utility of RHEL 6.

Enable telnet on guest and host

Disabled selinux on Host and guest.


disabled firewall on Host and guest.


disabled iptables and ip6tables on Host and guest.

I configured bridge and written files such as

ifcfg-eth0,ifcfg-eth1,ifcfg-br0 on Host OS and
ifcfg-eth0 on guest OS.

Now Host and bridge are pinging.

But guest is not pinging.

please guide me sir

santhanam

/dev/random 12-04-2013 02:45 PM

Does KVM know to use the bridge? just because you have bridged the network doesn't mean it will use it, you need to tell the vm (guest) to use the br0 interface instead of eth0.

dyasny 12-04-2013 04:25 PM

on the host, while the VM is running:
brctl show
ifconfig
contents of ifcfg-ethX and br0

santhanam2006 12-05-2013 09:33 PM

I now post result of command

brctl show and ifconfig on host

brctl show

bridge name bridge id STP enabled interfaces
br0 8000.fe540079f829 no vnet0
virbr0 8000.000000000000 yes

ifconfig

br0 Link encap:Ethernet HWaddr FE:54:00:79:F8:29
inet addr:104.0.0.88 Bcast:104.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::b:31ff:fee0:be2a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:230 (230.0 b) TX bytes:7640 (7.4 KiB)

eth0 Link encap:Ethernet HWaddr 5C:F3:FC:94:59:FC
inet addr:104.0.0.86 Bcast:104.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::5ef3:fcff:fe94:59fc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13335 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1334229 (1.2 MiB) TX bytes:7008 (6.8 KiB)
Interrupt:28 Memory:92000000-92012800

eth1 Link encap:Ethernet HWaddr 5C:F3:FC:94:59:FE
inet addr:104.0.0.86 Bcast:104.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::5ef3:fcff:fe94:59fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13264 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1326042 (1.2 MiB) TX bytes:6265 (6.1 KiB)
Interrupt:40 Memory:94000000-94012800

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

usb0 Link encap:Ethernet HWaddr 5E:F3:FC:95:59:AF
inet addr:104.0.0.86 Bcast:104.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::5cf3:fcff:fe95:59af/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:788 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:51292 (50.0 KiB) TX bytes:6284 (6.1 KiB)

virbr0 Link encap:Ethernet HWaddr B6:09:4E:BF:21:36
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:5036 (4.9 KiB)

vnet0 Link encap:Ethernet HWaddr FE:54:00:79:F8:29
inet6 addr: fe80::fc54:ff:fe79:f829/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:300 (300.0 b) TX bytes:2580 (2.5 KiB)


ifcfg-br0 on host

DEVICE="br0"
TYPE="Bridge"
BOOTPROTO="none"
IPADDR=104.0.0.88
NETMASK=255.0.0.0
DEFROUTE=yes
ONBOOT="yes"
DELAY=0


ifcfg-eth1 on host

DEVICE="eth1"
HWADDR="5C:F3:FC:94:59:FE"
Bridge="br0"
ONBOOT="yes"

ifcfg-eth0 on host

DEVICE="eth0"
ONBOOT="yes"
TYPE=Ethernet
BOOTPROTO="none"
IPADDR=104.0.0.86
PREFIX=8
GATEWAY=104.0.0.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
DNS1=104.0.0.86
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03


Thanks for your response

santhanam2006 12-05-2013 09:50 PM

ifcfg-br0 on host

DEVICE="br0"
TYPE="Bridge"
BOOTPROTO="none"
IPADDR=104.0.0.88
NETMASK=255.0.0.0
DEFROUTE=yes
ONBOOT="yes"
DELAY=0


ifcfg-eth1 on host

DEVICE="eth1"
HWADDR="5C:F3:FC:94:59:FE"
Bridge="br0"
ONBOOT="yes"

ifcfg-eth0 on host

DEVICE="eth0"
ONBOOT="yes"
TYPE=Ethernet
BOOTPROTO="none"
IPADDR=104.0.0.86
PREFIX=8
GATEWAY=104.0.0.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
DNS1=104.0.0.86
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03

dyasny 12-05-2013 11:47 PM

ifcfg-eth1 on host

DEVICE="eth1"
HWADDR="5C:F3:FC:94:59:FE"
Bridge="br0"
ONBOOT="yes"


Should be BRIDGE=br0

in ifconfig you can see that the bridge has the mac of vnet0, while normally it will have the mac of the underlying NIC.
In brctl show you can also see that eth1 isn't plugged into the bridge, only vnet0 is there.

santhanam2006 12-09-2013 09:59 AM

Thankyou
 
Thank you so much for your support.

santhanam.


All times are GMT -5. The time now is 12:17 AM.