LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-28-2012, 03:27 AM   #1
sohny
Member
 
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Rep: Reputation: 15
Virt-Manager: Guests not able to ping each other


I m new to using the virt-manager & KVM setup . I used virt-manager to create two guests (both CentOS). My problem is that I am not able to ping between the guests.

The following is the network configuration:

My Host :
Code:
sohny@ThinkPadOffice:~$ /sbin/ifconfig 
eth0      Link encap:Ethernet  HWaddr ff:de:f1:25:CE:d6  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:46990 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54899 errors:260 dropped:0 overruns:0 carrier:260
          collisions:702 txqueuelen:1000 
          RX bytes:33283667 (33.2 MB)  TX bytes:30675528 (30.6 MB)
          Interrupt:20 Memory:f2400000-f2420000 

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:56481 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56481 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:20440352 (20.4 MB)  TX bytes:20440352 (20.4 MB)

virbr0    Link encap:Ethernet  HWaddr fe:54:00:6b:57:0d  
          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:93 errors:0 dropped:0 overruns:0 frame:0
          TX packets:239 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:19969 (19.9 KB)  TX bytes:36488 (36.4 KB)

vnet0     Link encap:Ethernet  HWaddr fe:54:00:6b:57:0d  
          inet6 addr: fe80::fc54:ff:fe6b:570d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1024 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:8498 (8.4 KB)  TX bytes:66125 (66.1 KB)

vnet1     Link encap:Ethernet  HWaddr fe:54:00:bb:3b:07  
          inet6 addr: fe80::fc54:ff:febb:3b07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:42 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1014 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:6291 (6.2 KB)  TX bytes:65359 (65.3 KB)
My Guest 1: Cent OS 1

Code:
eth2      Link encap:Ethernet  HWaddr 52:54:00:BB:3B:07  
          inet addr:192.168.122.81  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:febb:3b07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:303 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:34758 (33.9 KiB)  TX bytes:14965 (14.6 KiB)

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: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)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:60:20:D4  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:3855 (3.7 KiB)
My Guest2 : CentOS 2

Code:
eth2      Link encap:Ethernet  HWaddr 52:54:00:6B:57:0D  
          inet addr:192.168.122.247  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe6b:570d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:314 errors:0 dropped:0 overruns:0 frame:0
          TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:34066 (33.2 KiB)  TX bytes:14210 (13.8 KiB)

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: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)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:60:20:D4  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:5002 (4.8 KiB)
I am able to ping the Guests from my Host ( Ubuntu ) but I am not able to ping one guest from another.

Please let me know what I am missing.
 
Old 01-28-2012, 10:37 PM   #2
MartinStrec
Member
 
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 14
Look for filtering and forwarding of IP protocol.

That is example of my /etc/sysctl.conf
Quote:
# Controls IP packet forwarding
net.ipv4.ip_forward = 1

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 0
You can set values directly using 'sysctl -w ' (see 'man systcl')
 
Old 01-29-2012, 01:02 AM   #3
sohny
Member
 
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Original Poster
Rep: Reputation: 15
Hai thanx for the reply,
these values are to be checked in host or guests?
 
Old 01-29-2012, 03:41 AM   #4
MartinStrec
Member
 
Registered: Jan 2012
Location: Czech
Distribution: Fedora, RHEL, Ubuntu, Mint
Posts: 110

Rep: Reputation: 14
Yeah, it's in the host
 
Old 01-31-2012, 11:49 AM   #5
sohny
Member
 
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Original Poster
Rep: Reputation: 15
Thank You that worked
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing KVM Guests With virt-install On Ubuntu 11.04 Server LXer Syndicated Linux News 0 05-10-2011 07:40 AM
LXer: Hackery Virt-manager on OpenSuse 11.3 to perform PV Guests installs via Apache Mirrors LXer Syndicated Linux News 0 09-27-2010 03:30 PM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM
LXer: Installing KVM Guests With virt-install On Ubuntu 8.10 Server LXer Syndicated Linux News 0 03-10-2009 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration