No network on Xen host

EDIT: Thread name should be “No network on XEN guest ofcourse”. My bad :slight_smile:
I am trying to run OpenSUSE 11.3 as guest in OpenSUSE 11.2 as host. First problem I came across was libvirtd service wasnt started and after that I was able to install guest OS. Now there is a problem as guest doesnt have connection with internet.
Here is the script for the guest

name=“opensuse113”
uuid=“2f1f1d63-c416-a9c4-3bc1-4e92e248c5cc”
memory=512
maxmem=512
vcpus=1
on_poweroff=“destroy”
on_reboot=“restart”
on_crash=“destroy”
localtime=0
builder=“linux”
bootloader=“/usr/lib/xen/boot/domUloader.py”
bootargs=“–entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen”
extra=" "
disk= ‘file:/var/lib/xen/images/opensuse113/disk0,xvda,w’, ‘file:/home/download/openSUSE-11.3-DVD-i586.iso,xvdb:cdrom,r’, ]
vif= ‘mac=00:16:5E:58:72:04,bridge=virbr0’ ]
vfb=‘type=vnc,vncunused=1’]

Here are the images that show how it is all configured taken from Virutal Manager.

network1 png
tmpbridge png
host config png
The last image is from the guest config I just named it badly. :slight_smile:
Observe that xen is up and runing and there are no others issue this far. I Could really use a helping hand in making this work. Thanks in advance.

Although I’m not a Xen practitioner (I’m experienced with others, primarily VMware),
I can suggest some common troubleshooting steps

  • ifconfig on both host and guest
  • If your guest has an IP address (because you’re trying to use DHCP), check whether host and guest can ping each other.
  • If your guest doesn’t have an IP address, troubleshoot DHCP, eg test a static address, inspect DHCP Server leases
  • If you have a network device bridging issue that’s not network related, consider at least temporarily configuring NAT on your Guest with your Host as the translation device.

You’ll also have to define what you mean by “no network.” To some that might mean no networking at all. To others it might mean some basic IP address communication but no name resolution. To others it might mean no Internet.

Remember that all Host addresses have to be unique while the NetworkID has to be common.

HTH for starters,
Tony

I would like to add that I installed Opensuse 11.4 now as both host and guest. Guest is up and runing but without network. Same problems as with opensuse 11.2 looks to me.

  • ifconfig on both host and guest
    ifconfig on both host
ifconfig 
br0       Link encap:Ethernet  HWaddr 00:0B:CD:6E:9F:03  
          inet addr:192.168.129.134  Bcast:192.168.129.255  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4835 errors:0 dropped:4 overruns:0 frame:0
          TX packets:3551 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1520135 (1.4 Mb)  TX bytes:731957 (714.8 Kb)

eth0      Link encap:Ethernet  HWaddr 00:0B:CD:6E:9F:03  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4689 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3849 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1541678 (1.4 Mb)  TX bytes:835943 (816.3 Kb)
          Interrupt:20 

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:30668 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30668 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:155564368 (148.3 Mb)  TX bytes:155564368 (148.3 Mb)

vif13.0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:105 errors:0 dropped:0 overruns:0 frame:0
          TX packets:141 errors:0 dropped:3 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:34440 (33.6 Kb)  TX bytes:23413 (22.8 Kb)

and ifconfig on guest

ifconfig            
eth0      Link encap:Ethernet  HWaddr 00:16:3E:6C:40:D8  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:153 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25202 (24.6 Kb)  TX bytes:40014 (39.0 Kb)

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:106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8495 (8.2 Kb)  TX bytes:8495 (8.2 Kb)

  • If your guest has an IP address (because you’re trying to use DHCP), check whether host and guest can ping each other.
    From above I would guess that guest does not have an valid ip adress. when I try to ping the host I get the message
ping 192.168.122.2  
connect: Network is unreachable
  • If your guest doesn’t have an IP address, troubleshoot DHCP, eg test a static address, inspect DHCP Server leases
    .
    If by that you mean try to assign ip adress to the gues manually yes I have tried that too and no luck. I have also tried to change ip adress range in the virtual manager but looks like it is not allowed as numbers turn red as soon as I try to change anything.
    Thanks for a reply.
    Regards.