Coral Lin
2006-Jan-21 03:43 UTC
[Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working
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@lists.xensource.com http://lists.xensource.com/xen-users
Sanjay Upadhyay
2006-Jan-21 05:19 UTC
Re: [Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working
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@gmail.com> 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@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sanjay Upadhyay
2006-Jan-21 05:30 UTC
Re: [Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working
try removing the 'mac part' On 1/21/06, Coral Lin <lin.coral@gmail.com> wrote:> Yes, > but the xen-br0 is up > xen-br0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:679 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:84076 (82.1 Kb) TX bytes:0 (0.0 b) > and in my config file vif is like: > vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ] > > Any hint for this? > > Coral > > > On 1/20/06, Sanjay Upadhyay <glowfriend@gmail.com> wrote: > > 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@gmail.com > 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@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Thompson
2006-Jan-21 14:40 UTC
Re: [Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working
On Fri, Jan 20, 2006 at 09:43:51PM -0600, Coral Lin 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. > vif.I just went through this on my Xen3 install on my personal box. When I did the sh ./install.sh the first time, I wasn''t paying attention that one of the lines errored. The second time I did it(after completely recompiling Xen), I noticed that it gave me an error about hotplug. It turned out I needed to install hotplug. Apparently the check scripts don''t consider it a failure if it can''t copy a file into the /etc/hotplug folder. HTH. -- Andrew Thompson http://aktzero.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Richard Hamel-Smith
2006-Jan-21 21:56 UTC
[Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working
To Coral Lin, I had the same problem. I never was able to fix it. I decided to use the NAT setup instead of the bridge. The NAT setup worked fine. To use the NAT setup, you''d need to edit the /etc/xen/xend-config.sxp script and comment out the lines (network-script network-bridge) (vif-script vif-bridge) and uncomment the lines (network-script network-nat) (vif-script vif-nat) If you have the Xen 3.0 LiveCD, you will observe that they use the NAT setup on the LiveCD. Once you have the NAT setup, when you create a guest domain, the host domain''s IP on interface vifx.0 should be something like 10.0.x.128. Login on your guest domain and set its eth0 interface to 10.0.x.1 and its default gateway to 10.0.x.128. ifconfig eth0 10.0.x.1 netmask 255.255.255.0 up route add default gw 10.0.x.128 you should now be able to ping back and forth between host and guest. If you have SSH installed, you can ssh as well. The x in the IP addresses above, increments each time you create a new domain. The first time it is 1, the next time it is 2, etc. So you have to keep checking it each time. If you want, you can set up DHCP like the LiveCD does and then, you won''t have to mess with the ifconfig and route commands. Hope this helps, Richard _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Reasonably Related Threads
- Device 0 (vif) could nto be connected: backend device not found
- Working hotplug, but still timing out waiting for vbd device
- Working hotplug, but still timing out waiting for vbd device
- Problems installing windows 2003 std and x64 as guest
- Xen migration fails