Zoltan HERPAI
2006-Sep-25 13:22 UTC
[Xen-users] Hotplug scripts not working after today''s checkout
Hi, I''ve run into the following error when trying to create a domU: root@jupiter:/etc/xen# xm create node0-mgmt -c Using config file "node0-mgmt". Error: Device 0 (vif) could not be connected. Hotplug scripts not working. root@jupiter:/etc/xen# Excerpt from xend.log: [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:110) DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''769'', ''device-type'': ''disk'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/4/769''} to /local/domain/4/device/vbd/769. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:112) DevController: writing {''domain'': ''node0-mgmt'', ''frontend'': ''/local/domain/4/device /vbd/769'', ''dev'': ''hda1'', ''state'': ''1'', ''params'': ''/store/debian.3-1.img'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''4'', ''type'': ''file''} to /local/domain/0/backend/vbd/4/769. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:110) DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''770'', ''device-type'': ''disk'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/4/770''} to /local/domain/4/device/vbd/770. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:112) DevController: writing {''domain'': ''node0-mgmt'', ''frontend'': ''/local/domain/4/device /vbd/770'', ''dev'': ''hda2'', ''state'': ''1'', ''params'': ''/store/debian.swap'', ''mode'': ''w'' ''online'': ''1'', ''frontend-id'': ''4'', ''type'': ''file''} to /local/domain/0/backend/vbd/4/770. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:110) DevController: writing {''backend-id'': ''0'', ''mac'': ''00:16:3e:57:c5:52'', ''handle'': ''0'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vif/4/0''} to /local/domain/4/device/vif/0. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:112) DevController: writing {''domain'': ''node0-mgmt'', ''handle'': ''0'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''state'': ''1'', ''frontend'': ''/local/domain/4/device/vif/0'', ''mac'':''00:16:3e:57:c5:52'', ''online'': ''1'', ''frontend-id'': ''4''} to /local/domain/0/backend/vif/4/0. [2006-09-25 14:55:48 xend.XendDomainInfo 2015] DEBUG (XendDomainInfo:712) Storing VM details: {''shadow_memory'': ''0'', ''uuid'': ''fb8168a0-a691-73d3-a4d1-285bab6a5493'', ''on_reboot'': ''restart'', ''start_time'': ''1159188948.21'', ''on_poweroff'': ''destroy'', ''name'': ''node0-mgmt'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''memory'': ''256'', ''on_crash'': ''restart'', ''image'': "(linux (kernel /boot/vmlinuz-2.6.16-xen) (ip 10.1.1.100:1.2.3.4:10.1.1.254:255.255.255.0:node0-mgmt:eth0:off) (root ''/dev/hda1 ro'') (args 4))", ''maxmem'': ''256''} [2006-09-25 14:55:48 xend.XendDomainInfo 2015] DEBUG (XendDomainInfo:747) Storing domain details: {''console/ring-ref'': ''28930'', ''console/port'': ''2'', ''name'': ''node0-mgmt'', ''console/limit'': ''1048576'', ''vm'':''/vm/fb8168a0-a691-73d3-a4d1-285bab6a5493'', ''domid'': ''4'', ''cpu/0/availability'': ''online'', ''memory/target'': ''262144'', ''store/ring-ref'': ''28931'', ''store/port'': ''1''} [2006-09-25 14:55:48 xend.XendDomainInfo 1221] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch [2006-09-25 14:55:48 xend 2021] DEBUG (DevController:143) Waiting for devices vif. [2006-09-25 14:55:48 xend 2021] DEBUG (DevController:149) Waiting for 0. [2006-09-25 14:55:48 xend 1221] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/4/0/hotplug-status. [2006-09-25 14:57:28 xend.XendDomainInfo 2038] DEBUG (XendDomainInfo:1449) XendDomainInfo.destroy: domid=4 [2006-09-25 14:57:28 xend.XendDomainInfo 2038] DEBUG (XendDomainInfo:1457) XendDomainInfo.destroyDomain(4) Where should I start looking at? Regards, -w- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Apparao, Padmashree K
2006-Sep-25 13:48 UTC
RE: [Xen-users] Hotplug scripts not working after today''s checkout
The error is misleading. Make sure your vifs are all started up. To isolate the problem comment out the vif line in the configfile and try again. - Padma -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Zoltan HERPAI Sent: Monday, September 25, 2006 6:23 AM To: xen-users@lists.xensource.com Subject: [Xen-users] Hotplug scripts not working after today''s checkout Hi, I''ve run into the following error when trying to create a domU: root@jupiter:/etc/xen# xm create node0-mgmt -c Using config file "node0-mgmt". Error: Device 0 (vif) could not be connected. Hotplug scripts not working. root@jupiter:/etc/xen# Excerpt from xend.log: [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:110) DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''769'', ''device-type'': ''disk'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/4/769''} to /local/domain/4/device/vbd/769. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:112) DevController: writing {''domain'': ''node0-mgmt'', ''frontend'': ''/local/domain/4/device /vbd/769'', ''dev'': ''hda1'', ''state'': ''1'', ''params'': ''/store/debian.3-1.img'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''4'', ''type'': ''file''} to /local/domain/0/backend/vbd/4/769. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:110) DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''770'', ''device-type'': ''disk'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/4/770''} to /local/domain/4/device/vbd/770. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:112) DevController: writing {''domain'': ''node0-mgmt'', ''frontend'': ''/local/domain/4/device /vbd/770'', ''dev'': ''hda2'', ''state'': ''1'', ''params'': ''/store/debian.swap'', ''mode'': ''w'' ''online'': ''1'', ''frontend-id'': ''4'', ''type'': ''file''} to /local/domain/0/backend/vbd/4/770. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:110) DevController: writing {''backend-id'': ''0'', ''mac'': ''00:16:3e:57:c5:52'', ''handle'': ''0'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vif/4/0''} to /local/domain/4/device/vif/0. [2006-09-25 14:55:48 xend 2015] DEBUG (DevController:112) DevController: writing {''domain'': ''node0-mgmt'', ''handle'': ''0'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''state'': ''1'', ''frontend'': ''/local/domain/4/device/vif/0'', ''mac'':''00:16:3e:57:c5:52'', ''online'': ''1'', ''frontend-id'': ''4''} to /local/domain/0/backend/vif/4/0. [2006-09-25 14:55:48 xend.XendDomainInfo 2015] DEBUG (XendDomainInfo:712) Storing VM details: {''shadow_memory'': ''0'', ''uuid'': ''fb8168a0-a691-73d3-a4d1-285bab6a5493'', ''on_reboot'': ''restart'', ''start_time'': ''1159188948.21'', ''on_poweroff'': ''destroy'', ''name'': ''node0-mgmt'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''memory'': ''256'', ''on_crash'': ''restart'', ''image'': "(linux (kernel /boot/vmlinuz-2.6.16-xen) (ip 10.1.1.100:1.2.3.4:10.1.1.254:255.255.255.0:node0-mgmt:eth0:off) (root ''/dev/hda1 ro'') (args 4))", ''maxmem'': ''256''} [2006-09-25 14:55:48 xend.XendDomainInfo 2015] DEBUG (XendDomainInfo:747) Storing domain details: {''console/ring-ref'': ''28930'', ''console/port'': ''2'', ''name'': ''node0-mgmt'', ''console/limit'': ''1048576'', ''vm'':''/vm/fb8168a0-a691-73d3-a4d1-285bab6a5493'', ''domid'': ''4'', ''cpu/0/availability'': ''online'', ''memory/target'': ''262144'', ''store/ring-ref'': ''28931'', ''store/port'': ''1''} [2006-09-25 14:55:48 xend.XendDomainInfo 1221] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch [2006-09-25 14:55:48 xend 2021] DEBUG (DevController:143) Waiting for devices vif. [2006-09-25 14:55:48 xend 2021] DEBUG (DevController:149) Waiting for 0. [2006-09-25 14:55:48 xend 1221] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/4/0/hotplug-status. [2006-09-25 14:57:28 xend.XendDomainInfo 2038] DEBUG (XendDomainInfo:1449) XendDomainInfo.destroy: domid=4 [2006-09-25 14:57:28 xend.XendDomainInfo 2038] DEBUG (XendDomainInfo:1457) XendDomainInfo.destroyDomain(4) Where should I start looking at? Regards, -w- _______________________________________________ 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 Ross
2006-Sep-26 05:10 UTC
Re: [Xen-users] Hotplug scripts not working after today''s checkout
Zoltan HERPAI wrote:> I''ve run into the following error when trying to create a domU: > > root@jupiter:/etc/xen# xm create node0-mgmt -c > Using config file "node0-mgmt". > Error: Device 0 (vif) could not be connected. Hotplug scripts not working. > root@jupiter:/etc/xen# > > Where should I start looking at?Double-check the permissions on the hotplug scripts - I''ve seen this behavior caused by a missing execute bit. If that doesn''t help, turn on udev debug-level logging (either in /etc/udev/udev.conf or via udevcontrol) Cheers Andrew _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users