[CentOS-virt] CentOS 6 and KVM woes

2011-07-15 Thread Trey Dockendorf
I have decided to migrate my latest KVM server to CentOS 6.0 and am
beginning to get a little frustrated with some issues that worked perfectly
in 5.6.

Right now I've given up on getting virbr0 and NAT to work, but now I need
networking bridging to work, but nothing seems to fix the issue.  I have not
had much experience with troubleshooting KVM so could really use some
pointers on resolving this issue.

I have successfully bridged one of the server's NICs to br0, and I can ping
the IP remotely that is assigned to br0, but none of the VMs that worked in
5.6's KVM are able to access the network.  Please let me know what
information would be useful to troubleshoot this.

Here's what I have so far...

ifcfg-eth3...
-
DEVICE=eth3
HWADDR=00:1B:21:A1:CF:76
ONBOOT=yes
BRIDGE=br0

ifcfg-br0

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
IPADDR=
BROADCAST=
NETMASK=
NETWORK=


# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.001b21a1cf76 no eth3


sysctl.conf has these 3 additional lines...
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0


Again I can ping br0's IP remotely , but no VMs assigned to it can access
even that network's gateway.  I have disabled iptables and ip6tables for now
while trying to get this to work.  The VMs , worked just fine in 5.6 and I
have done nothing different but import them with virsh.

Thanks
- Trey
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] CentOS 6 and KVM woes

2011-07-15 Thread Eric Searcy
No experience with 6 here, but do your virsh-imported libvirt VM configs show 
devices...interface type=bridge...source bridge='br0'/ ?  i.e. the bridge 
there matches the bridge name you're created with ifcfg scripts?

Eric
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] CentOS 6 and KVM woes

2011-07-15 Thread Akemi Yagi
On Fri, Jul 15, 2011 at 2:07 PM, Trey Dockendorf treyd...@gmail.com wrote:
 I have decided to migrate my latest KVM server to CentOS 6.0 and am
 beginning to get a little frustrated with some issues that worked perfectly
 in 5.6.
(snip)
 Here's what I have so far...
 ifcfg-eth3...
 -
 DEVICE=eth3
 HWADDR=00:1B:21:A1:CF:76
 ONBOOT=yes
 BRIDGE=br0
 ifcfg-br0
 
 DEVICE=br0
 TYPE=Bridge
 BOOTPROTO=static
 ONBOOT=yes
 IPADDR=
 BROADCAST=
 NETMASK=
 NETWORK=

I do not see GATEWAY= in your ifcfg-br0. Do you actually have it?

 Again I can ping br0's IP remotely , but no VMs assigned to it can access
 even that network's gateway.

Akemi
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] CentOS 6 and KVM woes

2011-07-15 Thread Trey Dockendorf
On Fri, Jul 15, 2011 at 4:20 PM, Eric Searcy emsea...@gmail.com wrote:

 No experience with 6 here, but do your virsh-imported libvirt VM configs
 show devices...interface type=bridge...source bridge='br0'/ ?  i.e.
 the bridge there matches the bridge name you're created with ifcfg scripts?

 Eric
 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt


Yes, the name matches, the KVM hosts both used br0 on 5.6 and now on 6.0.
 Here's what's in the XML file

interface type='bridge'
  mac address='52:54:00:31:6f:16'/
  source bridge='br0'/
  target dev='vnet0'/
  model type='virtio'/
  alias name='net0'/
  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/
/interface


Thanks
- Trey
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] CentOS 6 and KVM woes

2011-07-15 Thread Trey Dockendorf
On Fri, Jul 15, 2011 at 4:20 PM, Akemi Yagi amy...@gmail.com wrote:

 On Fri, Jul 15, 2011 at 2:07 PM, Trey Dockendorf treyd...@gmail.com
 wrote:
  I have decided to migrate my latest KVM server to CentOS 6.0 and am
  beginning to get a little frustrated with some issues that worked
 perfectly
  in 5.6.
 (snip)
  Here's what I have so far...
  ifcfg-eth3...
  -
  DEVICE=eth3
  HWADDR=00:1B:21:A1:CF:76
  ONBOOT=yes
  BRIDGE=br0
  ifcfg-br0
  
  DEVICE=br0
  TYPE=Bridge
  BOOTPROTO=static
  ONBOOT=yes
  IPADDR=
  BROADCAST=
  NETMASK=
  NETWORK=

 I do not see GATEWAY= in your ifcfg-br0. Do you actually have it?

  Again I can ping br0's IP remotely , but no VMs assigned to it can access
  even that network's gateway.

 Akemi
 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt


The GATEWAY is specified in /etc/sysconfig/network file.  Should I include
it in the ifcfg-br0 as well?  In CentOS 5.x I always left it in the
/etc/sysconfig/network file which seems to be the default from fresh install
of CentOS 6.

Thanks
- Trey
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] CentOS 6 and KVM woes

2011-07-15 Thread Emmanuel Noobadmin
On 7/16/11, Trey Dockendorf treyd...@gmail.com wrote:
 I have successfully bridged one of the server's NICs to br0, and I can ping
 the IP remotely that is assigned to br0, but none of the VMs that worked in
 5.6's KVM are able to access the network.  Please let me know what
 information would be useful to troubleshoot this.

Could you try creating a new VM using the GUI tool, then check if the
networking works from it?

I was having problems with KVM and part of the troubleshooting process
got me to try it on SL6, which finally led me to discover that the
command line tool generated XML doesn't work as well as the GUI tool
for some reason. So there's the possibility that it could be that the
definitions created through virsh in 5.6 has the same issues in CentOS
6.
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt