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

Re: [Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working
From: Sanjay Upadhyay <glowfriend@xxxxxxxxx>
Date: Sat, 21 Jan 2006 10:49:12 +0530
Delivery-date: Sat, 21 Jan 2006 05:27:24 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Dl2dhFdcKQBdavmO4uUCzcpqGJ7KKCXMyOnrH+RmFkolQOZ2aBMqwl0S8o0Kwq8nrpEjBLf9QfbaVvc95UdL3qsLdspfymXJmMweR7K9tnKeM8LWF0D8rHMw4bSf+AKVrN26e8Yi3ENd72SbE4IzTHUtP7O6fSbnm25q02aVAwA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ee4967850601201943v70606d63wefdf76b70d35cc12@xxxxxxxxxxxxxx>
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>
References: <ee4967850601201943v70606d63wefdf76b70d35cc12@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
check,
ifconfig
and see xenbr0 is running.. and you have a line in your domU conf file like this
vif1 = [ 'bridge=xenbr0' ]

you can directly start the network script by running
#>/etc/xen/scripts/network-bridge start

regards

On 1/21/06, Coral Lin <lin.coral@xxxxxxxxx> wrote:
> hi,
>
> I am trying to start a new domainU but got the error:
> Error: Device 0 (vif) could not be connected. Hotplug scripts not working
> I have struggled with it for a long time. I found somebody else report this
> but can not find a solution.
> The xen version is xen-3.0 latest version.
> I do not have a initrd.
> Domain0 works fine but when I create a new domain, it always gives an error
> as above.
>
> Thanks,
> Coral
> Here is the logs:
>
> xend.log:
> [2006-01-20 21:22:28 xend] INFO (SrvDaemon:268) Xend Daemon started
> [2006-01-20 21:22:28 xend] INFO (SrvDaemon:272) Xend changeset: Mon Dec 12
> 12:47:47 2005 +0100 8270:4ad23e798798.
> [2006-01-20 21:22:28 xend.XendDomainInfo ] DEBUG (XendDomainInfo:199)
> XendDomainInfo.recreate({'paused': 0, 'cpu_time': 14845729937L, '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': 262144, 'maxmem_kb':
> -4, 'max_vcpu_id': 0, 'crashed': 0, 'running': 1, 'shutdown': 0,
> 'online_vcpus': 1, 'blocked': 0})
> [2006-01-20 21:22:28 xend.XendDomainInfo] INFO (XendDomainInfo:211)
> Recreating domain 0, UUID
> 00000000-00000000-00000000-00000000.
> [2006-01-20 21:22:28 xend.XendDomainInfo] WARNING (XendDomainInfo:233) No vm
> path in store for existing domain 0
> [2006-01-20 21:22:28 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': '256', 'on_crash': 'restart', 'maxmem': '256'}
> [2006-01-20 21:22:28 xend.XendDomainInfo] DEBUG (XendDomainInfo:686) Storing
> domain details: {'cpu/0/availability': 'online', 'memory/target': '262144',
> 'name': 'Domain-0', 'console/limit': '1048576', 'vm':
> '/vm/00000000-00000000-00000000-00000000', 'domid': '0'}
> [2006-01-20 21:22:28 xend] DEBUG (XendDomain:151) number of vcpus to use is
> 0
> [2006-01-20 21:22:28 xend] INFO (SrvServer:112) unix
> path=/var/lib/xend/xend-socket
> [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:177)
> XendDomainInfo.create(['vm', ['name', 'ExampleDomain'], ['memory', '64'],
> ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.12.6-xenU'], ['root',
> '/dev/hda1 ro'], ['args', '4'], ['vcpus', '1'], ['vcpus', '1'], ['boot',
> 'c'], ['nics', '1']]], ['device', ['vbd', ['uname', 'file:/vm1disk'],
> ['dev', 'hda1'], ['mode', 'w']]], ['device', ['vif']]])
> [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:282)
> parseConfig: config is ['vm', ['name', 'ExampleDomain'], ['memory', '64'],
> ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.12.6-xenU'], ['root',
> '/dev/hda1 ro'], ['args', '4'], ['vcpus', '1'], ['vcpus', '1'], ['boot',
> 'c'], ['nics', '1']]], ['device', ['vbd', ['uname', 'file:/vm1disk'],
> ['dev', 'hda1'], ['mode', 'w']]], ['device', ['vif']]]
> [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:374)
> parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None,
> 'on_reboot': None, 'image': ['linux', ['kernel',
> '/boot/vmlinuz-2.6.12.6-xenU '], ['root', '/dev/hda1 ro'], ['args', '4'],
> ['vcpus', '1'], ['vcpus', '1'], ['boot', 'c'], ['nics', '1']],
> 'on_poweroff': None, 'cpus': None, 'name': 'ExampleDomain', 'backend': [],
> 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail': None, 'memory': 64, 'device':
> [('vbd', ['vbd', ['uname', 'file:/vm1disk'], ['dev', 'hda1'], ['mode',
> 'w']]), ('vif', ['vif'])], 'bootloader': None, 'cpu': None, 'maxmem': None}
> [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:1129)
> XendDomainInfo.construct: None 0
> [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:1161)
> XendDomainInfo.initDomain: 1 1.0
> [2006-01-20 21:32:24 xend] DEBUG (balloon:84) Balloon: free 746; need 65;
> done.
> [2006-01-20 21:32:24 xend] INFO (image:132) buildDomain os=linux dom=1
> vcpus=1
> [2006-01-20 21:32:24 xend] DEBUG (image:170) dom            = 1
> [2006-01-20 21:32:24 xend] DEBUG (image:171) image          = /boot/vmlinuz-
> 2.6.12.6-xenU
> [2006-01-20 21:32:24 xend] DEBUG (image:172) store_evtchn   = 1
> [2006-01-20 21:32:24 xend] DEBUG (image:173) console_evtchn = 2
> [2006-01-20 21:32:24 xend] DEBUG (image:174) cmdline        =
> root=/dev/hda1 ro 4
> [2006-01-20 21:32:24 xend] DEBUG (image:175) ramdisk        =
> [2006-01-20 21:32:24 xend] DEBUG (image:176) vcpus          = 1
> [2006-01-20 21:32:24 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-01-20 21:32:24 xend] DEBUG (DevController:106) DevController: writing
> {'domain': 'ExampleDomain', 'frontend':
> '/local/domain/1/device/vbd/769', 'dev': 'hda1', 'state':
> '1', 'params': '/vm1disk', 'mode': 'w', 'frontend-id': '1', 'type': 'file'}
> to /local/domain/0/backend/vbd/1/769.
> [2006-01-20 21:32:24 xend] DEBUG (DevController:104) DevController: writing
> {'backend-id': '0', 'mac': '00:16:3e:5c:e8:d2', 'handle': '0', 'state': '1',
> 'backend': '/local/domain/0/backend/vif/1/0'} to
> /local/domain/1/device/vif/0.
> [2006-01-20 21:32:24 xend] DEBUG (DevController:106) DevController: writing
> {'mac': '00:16:3e:5c:e8:d2', 'state': '1', 'handle': '0', 'script':
> '/etc/xen/scripts/vif-bridge', 'frontend-id': '1', 'domain':
> 'ExampleDomain', 'frontend': '/local/domain/1/device/vif/0'} to
> /local/domain/0/backend/vif/1/0.
> [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:661) Storing
> VM details: {'ssidref': '0', 'uuid':
> 'd9c0bec0-a35a57b1-10db3201-48a96a5e', 'on_reboot':
> 'restart', 'start_time': '1137814344.99', 'on_poweroff': 'destroy', 'name':
> 'ExampleDomain', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '64',
> 'on_crash': 'restart', 'image': "(linux (kernel /boot/vmlinuz-
> 2.6.12.6-xenU) (root '/dev/hda1 ro') (args 4) (vcpus 1) (vcpus 1) (boot c)
> (nics 1))", 'maxmem': '64'}
> [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:686) Storing
> domain details: {'console/ring-ref': '57803', 'console/port': '2', 'name':
> 'ExampleDomain', 'console/limit': '1048576', 'vm':
> '/vm/d9c0bec0-a35a57b1-10db3201-48a96a5e', 'domid': '1',
> 'cpu/0/availability': 'online', 'memory/target': '65536', 'store/ring-ref':
> '57804', 'store/port': '1'}
> [2006-01-20 21:32:25 xend] DEBUG (DevController:133) Waiting for devices
> vif.
> [2006-01-20 21:32:25 xend] DEBUG (DevController:139) Waiting for 0.
> [2006-01-20 21:32:25 xend] DEBUG (DevController:409) hotplugStatusCallback
> /local/domain/0/backend/vif/1/0/hotplug-status.
> [2006-01-20 21:32:35 xend] ERROR (SrvBase:87) Request wait_for_devices
> failed.
> Traceback (most recent call last):
>   File "/usr/lib/python/xen/web/SrvBase.py", line 85, in
> perform
>     return op_method(op, req)
>   File "/usr/lib/python/xen/xend/server/SrvDomain.py", line
> 72, in op_wait_for_devices
>     return self.dom.waitForDevices()
>   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line
> 1349, in waitForDevices
>     self.waitForDevices_(c)
>   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line
> 977, in waitForDevices_
>     return self.getDeviceController(deviceClass).waitForDevices()
>   File "/usr/lib/python/xen/xend/server/DevController.py",
> line 135, in waitForDevices
>     return map(self.waitForDevice, self.deviceIDs())
>   File "/usr/lib/python/xen/xend/server/DevController.py",
> line 145, in waitForDevice
>     raise VmError("Device %s (%s) could not be connected. "
> VmError: Device 0 (vif) could not be connected. Hotplug scripts not working.
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
>
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users