WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] no networking in domU

To: Xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] no networking in domU
From: Administrator <barryns2@xxxxxxxxxxxx>
Date: Sun, 19 Feb 2006 00:32:21 -0500
Delivery-date: Sun, 19 Feb 2006 05:45:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Barry's PC Solutions
Reply-to: barryns2@xxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I can't seem to get the network right.

here is my xend-config:
        (xend-http-server yes)
        (xend-relocation-server yes)
        (xend-address localhost)
        (xend-relocation-address localhost)
        (network-script network-bridge)
        (vif-script vif-bridge)
        (dom0-min-mem 196)
        (dom0-cpus 0)

my vm config:
        kernel = "/boot/vmlinuz-xen"
        ramdisk = "/boot/initrd-xen"
        memory = 256
        name = "apollo"
        nics=1
        vif = ['mac=AA:00:00:00:00:01, ip=192.168.0.2, vifname=apollo']
        gateway="192.168.1.1" 
        disk = [ 'phy:xenvg/apollo,hda1,w' ]
        netmask="255.255.255.0"
        hostname= "apollo"
        root = "/dev/hda1 ro"
        extra = "4"

dom0
  ifconfig:
dummy0    Link encap:Ethernet  HWaddr FA:9B:FE:7A:2B:15
          inet addr:10.10.0.1  Bcast:10.10.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f89b:feff:fe7a:2b15/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:3430 (3.3 Kb)

eth1      Link encap:Ethernet  HWaddr 00:11:2F:36:D5:53
          inet addr:192.168.1.50  Bcast:192.168.1.255
Mask:255.255.255.0
          inet6 addr: fe80::211:2fff:fe36:d553/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:513 errors:0 dropped:0 overruns:0 frame:0
          TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:52296 (51.0 Kb)  TX bytes:10799 (10.5 Kb)
          Interrupt:18 Memory:fe600000-0

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

vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:5 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1176 (1.1 Kb)  TX bytes:0 (0.0 b)

xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:784 (784.0 b)  TX bytes:378 (378.0 b)

xend.log
        [2006-02-18 23:44:11 xend] INFO (SrvDaemon:268) Xend Daemon started
        [2006-02-18 23:44:11 xend] INFO (SrvDaemon:272) Xend changeset: Tue Dec
13 05:13:13 2005 +0000 8256:42ff4f19d025.
        [2006-02-18 23:44:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:199)
XendDomainInfo.recreate({'paused': 0, 'cpu_time': 17543584627L,
'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 256000,
'maxmem_kb': -4, 'max_vcpu_id': 0, 'crashed': 0, 'running': 1,
'shutdown': 0, 'online_vcpus': 1, 'blocked': 0})
        [2006-02-18 23:44:11 xend.XendDomainInfo] INFO (XendDomainInfo:211)
Recreating domain 0, UUID 00000000-00000000-00000000-00000000.
        [2006-02-18 23:44:11 xend.XendDomainInfo] WARNING (XendDomainInfo:233)
No vm path in store for existing domain 0
        [2006-02-18 23:44:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:661)
Storing VM details: {'ssidref': '0', 'uuid':
'00000000-00000000-00000000-00000000', 'on_reboot': 'restart',
'on_poweroff': 'destroy', 'name': 'Domain-0', 'vcpus': '1',
'vcpu_avail': '1', 'memory': '250', 'on_crash': 'restart', 'maxmem':
'250'}
        [2006-02-18 23:44:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:686)
Storing domain details: {'cpu/0/availability': 'online',
'memory/target': '256000', 'name': 'Domain-0', 'console/limit':
'1048576', 'vm': '/vm/00000000-00000000-00000000-00000000', 'domid':
'0'}
        [2006-02-18 23:44:11 xend] DEBUG (XendDomain:151) number of vcpus to
use is 0
        [2006-02-18 23:44:11 xend] INFO (SrvServer:112) unix
path=/var/lib/xend/xend-socket
        [2006-02-18 23:47:21 xend.XendDomainInfo] DEBUG (XendDomainInfo:177)
XendDomainInfo.create(['vm', ['name', 'apollo'], ['memory', '256'],
['image', ['linux', ['kernel', '/boot/vmlinuz-xen'], ['ramdisk',
'/boot/initrd-xen'], ['root', '/dev/hda1 ro'], ['args', '4'], ['vcpus',
'1'], ['vcpus', '1'], ['boot', 'c'], ['display', ':20.0'], ['nics',
'1']]], ['device', ['vbd', ['uname', 'phy:xenvg/apollo'], ['dev',
'hda1'], ['mode', 'w']]], ['device', ['vif', ['mac',
'AA:00:00:00:00:01'], ['vifname', 'apollo'], ['ip', '192.168.0.2']]]])
        [2006-02-18 23:47:21 xend.XendDomainInfo] DEBUG (XendDomainInfo:282)
parseConfig: config is ['vm', ['name', 'apollo'], ['memory', '256'],
['image', ['linux', ['kernel', '/boot/vmlinuz-xen'], ['ramdisk',
'/boot/initrd-xen'], ['root', '/dev/hda1 ro'], ['args', '4'], ['vcpus',
'1'], ['vcpus', '1'], ['boot', 'c'], ['display', ':20.0'], ['nics',
'1']]], ['device', ['vbd', ['uname', 'phy:xenvg/apollo'], ['dev',
'hda1'], ['mode', 'w']]], ['device', ['vif', ['mac',
'AA:00:00:00:00:01'], ['vifname', 'apollo'], ['ip', '192.168.0.2']]]]
        [2006-02-18 23:47:21 xend.XendDomainInfo] DEBUG (XendDomainInfo:374)
parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None,
'on_reboot': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-xen'],
['ramdisk', '/boot/initrd-xen'], ['root', '/dev/hda1 ro'], ['args',
'4'], ['vcpus', '1'], ['vcpus', '1'], ['boot', 'c'], ['display',
':20.0'], ['nics', '1']], 'on_poweroff': None, 'cpus': None, 'name':
'apollo', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail':
None, 'memory': 256, 'device': [('vbd', ['vbd', ['uname',
'phy:xenvg/apollo'], ['dev', 'hda1'], ['mode', 'w']]), ('vif', ['vif',
['mac', 'AA:00:00:00:00:01'], ['vifname', 'apollo'], ['ip',
'192.168.0.2']])], 'bootloader': None, 'cpu': None, 'maxmem': None}
        [2006-02-18 23:47:21 xend.XendDomainInfo] DEBUG (XendDomainInfo:1129)
XendDomainInfo.construct: None 0
[2006-02-18 23:47:21 xend.XendDomainInfo] DEBUG (XendDomainInfo:1161)
XendDomainInfo.initDomain: 1 1.0
[2006-02-18 23:47:21 xend] DEBUG (balloon:84) Balloon: free 752; need
257; done.
        [2006-02-18 23:47:21 xend] INFO (image:132) buildDomain os=linux dom=1
vcpus=1
        [2006-02-18 23:47:21 xend] DEBUG (image:170) dom            = 1
        [2006-02-18 23:47:21 xend] DEBUG (image:171) image
= /boot/vmlinuz-xen
        [2006-02-18 23:47:21 xend] DEBUG (image:172) store_evtchn   = 1
        [2006-02-18 23:47:21 xend] DEBUG (image:173) console_evtchn = 2
        [2006-02-18 23:47:21 xend] DEBUG (image:174) cmdline        =
root=/dev/hda1 ro 4
        [2006-02-18 23:47:21 xend] DEBUG (image:175) ramdisk
= /boot/initrd-xen
        [2006-02-18 23:47:21 xend] DEBUG (image:176) vcpus          = 1
        [2006-02-18 23:47:22 xend] DEBUG (blkif:24) exception looking up device
number for hda1: [Errno 2] No such file or directory: '/dev/hda1'
        [2006-02-18 23:47:22 xend] DEBUG (DevController:104) DevController:
writing {'virtual-device': '769', 'backend-id': '0', 'state': '1',
'backend': '/local/domain/0/backend/vbd/1/769'}
to /local/domain/1/device/vbd/769.
        [2006-02-18 23:47:22 xend] DEBUG (DevController:106) DevController:
writing {'domain': 'apollo', 'frontend':
'/local/domain/1/device/vbd/769', 'dev': 'hda1', 'state': '1', 'params':
'xenvg/apollo', 'mode': 'w', 'frontend-id': '1', 'type': 'phy'}
to /local/domain/0/backend/vbd/1/769.
        [2006-02-18 23:47:22 xend] DEBUG (DevController:104) DevController:
writing {'backend-id': '0', 'mac': 'AA:00:00:00:00:01', 'handle': '0',
'state': '1', 'backend': '/local/domain/0/backend/vif/1/0'}
to /local/domain/1/device/vif/0.
        [2006-02-18 23:47:22 xend] DEBUG (DevController:106) DevController:
writing {'domain': 'apollo', 'handle': '0', 'script':
'/etc/xen/scripts/vif-bridge', 'ip': '192.168.0.2', 'state': '1',
'frontend': '/local/domain/1/device/vif/0', 'mac': 'AA:00:00:00:00:01',
'frontend-id': '1'} to /local/domain/0/backend/vif/1/0.
        [2006-02-18 23:47:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:661)
Storing VM details: {'ssidref': '0', 'uuid':
'1d23bb09-3277a85a-ff82d674-76484445', 'on_reboot': 'restart',
'start_time': '1140324442.34', 'on_poweroff': 'destroy', 'name':
'apollo', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '256', 'on_crash':
'restart', 'image': "(linux (kernel /boot/vmlinuz-xen)
(ramdisk /boot/initrd-xen) (root '/dev/hda1 ro') (args 4) (vcpus 1)
(vcpus 1) (boot c) (display :20.0) (nics 1))", 'maxmem': '256'}
        [2006-02-18 23:47:22 xend.XendDomainInfo] DEBUG (XendDomainInfo:686)
Storing domain details: {'console/ring-ref': '58915', 'console/port':
'2', 'name': 'apollo', 'console/limit': '1048576', 'vm':
'/vm/1d23bb09-3277a85a-ff82d674-76484445', 'domid': '1',
'cpu/0/availability': 'online', 'memory/target': '262144',
'store/ring-ref': '58916', 'store/port': '1'}
        [2006-02-18 23:47:22 xend] DEBUG (DevController:133) Waiting for
devices vif.
        [2006-02-18 23:47:22 xend] DEBUG (DevController:139) Waiting for 0.
        [2006-02-18 23:47:22 xend] DEBUG (DevController:409)
hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:409)
hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:426)
hotplugStatusCallback 1.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:133) Waiting for
devices usb.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:133) Waiting for
devices vbd.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:139) Waiting for 769.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:409)
hotplugStatusCallback /local/domain/0/backend/vbd/1/769/hotplug-status.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:426)
hotplugStatusCallback 1.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:133) Waiting for
devices pci.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:133) Waiting for
devices ioports.
        [2006-02-18 23:47:23 xend] DEBUG (DevController:133) Waiting for
devices vtpm.
        [2006-02-18 23:47:23 xend] INFO (XendDomain:360) Domain apollo (1)
unpaused.

xen-hotplug.log:
        xenstore-read: couldn't read path backend/vif/1/0/bridge
        xenstore-read: couldn't read path backend/vbd/1/769/physical-device
        xenstore-read: couldn't read path backend/vbd/1/769/physical-device

domU
  ifconfig:
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          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)

As you can see there is no interface in apollo,  what have I done wrong?
Also can someone post a sample wrapper script for bridging 3 nics?

Thanks,
Barry S




        
        


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] no networking in domU, Administrator <=