LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-12-2012, 03:44 AM   #1
r3d.w0rm
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
Xen network problem


Hello ,

i install xen 4.0.1 on debian 6.0.5 amd64 .

after install iadd a bridge network to /etc/network/interfaces :
Code:
iface pan0 inet dhcp
        bridge_ports eth0
then i setup domu by virt-install , i run this cmd :
Code:
virt-install --cdrom /media/cdrom/ --ram 512 --disk /vm/vm01.img,size=5 --hvm --name vm01 --network bridge=pan0 --disk /dev/scd0,device=cdrom
but guest vm cannot connect to network , i try ip static and dhcp config for guest vm eth .

brctl show :
Code:
bridge name	bridge id		STP enabled	interfaces
pan0		8000.00269e9b572a	no		eth0
							vif2.1
ifconfig :
Code:
eth0      Link encap:Ethernet  HWaddr 00:26:9e:9b:57:2a  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::226:9eff:fe9b:572a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9988 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11581 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6528526 (6.2 MiB)  TX bytes:1833917 (1.7 MiB)
          Interrupt:234 Base address:0xe000 

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

pan0      Link encap:Ethernet  HWaddr 00:26:9e:9b:57:2a  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::226:9eff:fe9b:572a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5389 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6192 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3098633 (2.9 MiB)  TX bytes:1154620 (1.1 MiB)

tap2.0    Link encap:Ethernet  HWaddr 12:c4:10:c9:33:be  
          inet6 addr: fe80::10c4:10ff:fec9:33be/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:305 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:4476 (4.3 KiB)  TX bytes:15451 (15.0 KiB)

vif2.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:265 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:448 (448.0 B)  TX bytes:6511 (6.3 KiB)

vif2.1    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45 errors:0 dropped:21 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:0 (0.0 B)  TX bytes:4966 (4.8 KiB)
what is the problem ?!

Thanks in advance .
 
Old 12-13-2012, 07:00 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,773

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
eth0 has a valid IPv4 and IPv6 address, but vif2.1 only has IPv6. Is that what you want?
 
1 members found this post helpful.
Old 12-14-2012, 03:07 AM   #3
r3d.w0rm
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
no , i want only IPv4
 
Old 12-22-2012, 07:36 PM   #4
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, Arch
Posts: 572

Rep: Reputation: 64
I see that your ethernet device eth0 and your bridge pan0 both have an IPv4 address assigned. In my setup, my bridge has an address and eth0 does not.

And as smallpond pointed out, your tap devices don't have IPv4 addresses. Mine all have unique addresses. But those unique addresses were assigned from within each guest. (BTW, what does ifconfig show from within the guest?)

Your solution is probably to not assign an IP address to eth0. On Fedora that means /etc/sysconfig/network-scripts/ifcfg-eth0 must have "BRIDGE=pan0", but must NOT contain IPADDR=<ip>, GATEWAY=<ip> or NETMASK=<mask>. I don't know what the Debian equivalent is.

I don't use Xen or virt-install, but I use a bridge in my KVM setup, so the principles should be the same.
 
  


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
Xen network-route AND network-bridge setup kwiksand Linux - Networking 1 08-22-2010 04:18 PM
xen vcpus-cpus problem with XP under xen fachamix Linux - Virtualization and Cloud 2 06-08-2010 07:01 AM
Authentication,Xen,network paranthaba Red Hat 1 01-08-2009 06:00 AM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 11-05-2006 01:21 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 10-22-2006 12:33 AM


All times are GMT -5. The time now is 09:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration