Xen 3.1.0 "Error: Unable to connect to xend: No such file or directory. Is xend running?"
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
The issue(s) seems to be triggered by the dom0 being rebooted while domU's are still running. I'm actually seeing a different errors now when attempting to xm create after a dom0 reboot that had live domU's:
# xm create -c vps00 Using config file "./vps00". Error: Device 2049 (vbd) could not be connected. Writing backend/vbd/2/2049/physical-device fd:1 to xenstore failed.
A "service restart xend" allows and then an "xm create" allows the vps to start booting, but then fails with:
...
VFS: Cannot open root device "sda1" or unknown-block(0,0) Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Further reboots and xend restarts cause similar errors:
# xm create -c vps00 Using config file "./vps00". Error: (5, 'Input/output error')
I know the vps config is good because it just ran prior to the reboot. I've attached the xend.log for review. All the errors so far seem to involve missing devices after a dom0 reboot with running domU's. I've attached the xend.log for review.
Quoted 14 lines · Steven Wilson
Yes, the system was rebooted to load the xen kernel. I'm attempting to duplicate the problem in repeatable fashion to provide more details.
Quoted 9 lines · Nico Kadel-Garcia
Quoted 5 lines · Steven Wilson
Hello,
We are running Xen 3.1.0 on CentOS 5 using the pre-build RPM's from Xensource. Upon a clean reboot the dom0 (i.e. no domU's running), we see this message when attempting to run any "xm" command:
Did you reboot after installing it?
[2007-06-01 18:53:45 14074] INFO (SrvDaemon:331) Xend Daemon started
[2007-06-01 18:53:45 14074] INFO (SrvDaemon:335) Xend changeset: unavailable.
[2007-06-01 18:53:45 14074] INFO (SrvDaemon:342) Xend version: Unknown.
[2007-06-01 18:53:45 14074] DEBUG (XendDomainInfo:126) XendDomainInfo.recreate({'max_vcpu_id': 1, 'cpu_time': 42472602556L, 'ssidref': 0, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0, 'online_vcpus': 2, 'domid': 0, 'paused': 0, 'crashed': 0, 'running': 1, 'maxmem_kb': 4294967292L, 'shutdown': 0, 'mem_kb': 262144L, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'blocked': 0, 'name': 'Domain-0'})
[2007-06-01 18:53:45 14074] INFO (XendDomainInfo:142) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0
[2007-06-01 18:53:45 14074] DEBUG (XendDomain:434) Adding Domain: 0
[2007-06-01 18:53:45 14074] DEBUG (XendDomain:379) number of vcpus to use is 0
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VBD.set_device not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VBD.set_mode not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VBD.set_type not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VM.get_auto_power_on not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VM.set_auto_power_on not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VM.set_VCPUs_max not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VM.set_VCPUs_at_startup not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: debug.get_all not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: console.get_other_config not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: console.set_other_config not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VIF.get_network not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VIF.set_device not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VIF.set_MAC not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: VIF.set_MTU not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: session.get_all_records not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: event.get_record not found
[2007-06-01 18:53:45 14074] WARNING (XendAPI:672) API call: event.get_all not found
[2007-06-01 18:53:45 14074] DEBUG (XendDomainInfo:824) Storing domain details: {'name': 'Domain-0', 'console/limit': '1048576', 'memory/target': '262144', 'vm': '/vm/00000000-0000-0000-0000-000000000000', 'domid': '0', 'cpu/0/availability': 'online', 'cpu/1/availability': 'online', 'control/platform-feature-multiprocessor-suspend': '1'}
[2007-06-01 18:53:45 14074] DEBUG (XendDomainInfo:908) XendDomainInfo.handleShutdownWatch
[2007-06-01 18:53:45 14074] INFO (XMLRPCServer:149) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server.
[2007-06-01 18:53:45 14074] INFO (XMLRPCServer:149) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock.
[2007-06-01 18:53:56 14074] DEBUG (XendDomainInfo:78) XendDomainInfo.create(['vm', ['name', 'vps00'], ['memory', 128], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['cpus', '1'], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6-xen'], ['root', '/dev/sda1'], ['args', 'ro selinux=0 3']]], ['device', ['vbd', ['uname', 'phy:/dev/VolGroup00/vps00'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/VolGroup00/swap_vps00'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif', ['bridge', 'xenbr0']]], ['device', ['vif', ['bridge', 'xenbr1']]]]) [2007-06-01 18:53:56 14074] DEBUG (XendDomainInfo:1414) XendDomainInfo.constructDomain
[2007-06-01 18:53:56 14074] DEBUG (balloon:113) Balloon: 3882940 KiB free; need 2048; done.
[2007-06-01 18:53:56 14074] DEBUG (XendDomain:434) Adding Domain: 3
[2007-06-01 18:53:56 14074] DEBUG (XendDomainInfo:1468) XendDomainInfo.initDomain: 3 256
[2007-06-01 18:53:56 14074] DEBUG (XendDomainInfo:1500) _initDomain:shadow_memory=0x0, memory_static_max=0x8000000, memory_static_min=0x0.
[2007-06-01 18:53:56 14074] DEBUG (balloon:113) Balloon: 3882940 KiB free; need 131072; done.
[2007-06-01 18:53:56 14074] INFO (image:129) buildDomain os=linux dom=3 vcpus=1
[2007-06-01 18:53:56 14074] DEBUG (image:198) domid = 3 [2007-06-01 18:53:56 14074] DEBUG (image:199) memsize = 128 [2007-06-01 18:53:56 14074] DEBUG (image:200) image = /boot/vmlinuz-2.6-xen [2007-06-01 18:53:56 14074] DEBUG (image:201) store_evtchn = 1 [2007-06-01 18:53:56 14074] DEBUG (image:202) console_evtchn = 2 [2007-06-01 18:53:56 14074] DEBUG (image:203) cmdline = root=/dev/sda1 ro selinux=0 3 [2007-06-01 18:53:56 14074] DEBUG (image:204) ramdisk = [2007-06-01 18:53:56 14074] DEBUG (image:205) vcpus = 1 [2007-06-01 18:53:56 14074] DEBUG (image:206) features =
[2007-06-01 18:53:56 14074] INFO (XendDomainInfo:1316) createDevice: vbd : {'uuid': '7543f73d-29b3-4b6a-cd2f-cb64cb61b29a', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'sda1', 'uname': 'phy:/dev/VolGroup00/vps00', 'mode': 'w'}
[2007-06-01 18:53:56 14074] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'virtual-device': '2049', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/3/2049'} to /local/domain/3/device/vbd/2049.
[2007-06-01 18:53:56 14074] DEBUG (DevController:117) DevController: writing {'domain': 'vps00', 'frontend': '/local/domain/3/device/vbd/2049', 'uuid': '7543f73d-29b3-4b6a-cd2f-cb64cb61b29a', 'dev': 'sda1', 'state': '1', 'params': '/dev/VolGroup00/vps00', 'mode': 'w', 'online': '1', 'frontend-id': '3', 'type': 'phy'} to /local/domain/0/backend/vbd/3/2049.
[2007-06-01 18:53:56 14074] INFO (XendDomainInfo:1316) createDevice: vbd : {'uuid': 'e57e8fbf-b6d2-653a-0add-94e981697a07', 'bootable': 0, 'driver': 'paravirtualised', 'dev': 'sda2', 'uname': 'phy:/dev/VolGroup00/swap_vps00', 'mode': 'w'}
[2007-06-01 18:53:56 14074] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'virtual-device': '2050', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/3/2050'} to /local/domain/3/device/vbd/2050.
[2007-06-01 18:53:56 14074] DEBUG (DevController:117) DevController: writing {'domain': 'vps00', 'frontend': '/local/domain/3/device/vbd/2050', 'uuid': 'e57e8fbf-b6d2-653a-0add-94e981697a07', 'dev': 'sda2', 'state': '1', 'params': '/dev/VolGroup00/swap_vps00', 'mode': 'w', 'online': '1', 'frontend-id': '3', 'type': 'phy'} to /local/domain/0/backend/vbd/3/2050.
[2007-06-01 18:53:56 14074] INFO (XendDomainInfo:1316) createDevice: vif : {'bridge': 'xenbr0', 'uuid': '8afecd07-9bee-557e-4abc-2bad7916c44c'}
[2007-06-01 18:53:56 14074] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:38:f6:2b', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/3/0'} to /local/domain/3/device/vif/0.
[2007-06-01 18:53:56 14074] DEBUG (DevController:117) DevController: writing {'bridge': 'xenbr0', 'domain': 'vps00', 'handle': '0', 'uuid': '8afecd07-9bee-557e-4abc-2bad7916c44c', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/3/device/vif/0', 'mac': '00:16:3e:38:f6:2b', 'online': '1', 'frontend-id': '3', 'type': 'netfront'} to /local/domain/0/backend/vif/3/0.
[2007-06-01 18:53:56 14074] INFO (XendDomainInfo:1316) createDevice: vif : {'bridge': 'xenbr1', 'uuid': '43471018-a7f4-2281-a9a7-473081a8c32a'}
[2007-06-01 18:53:56 14074] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:1d:86:cc', 'handle': '1', 'state': '1', 'backend': '/local/domain/0/backend/vif/3/1'} to /local/domain/3/device/vif/1.
[2007-06-01 18:53:56 14074] DEBUG (DevController:117) DevController: writing {'bridge': 'xenbr1', 'domain': 'vps00', 'handle': '1', 'uuid': '43471018-a7f4-2281-a9a7-473081a8c32a', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/3/device/vif/1', 'mac': '00:16:3e:1d:86:cc', 'online': '1', 'frontend-id': '3', 'type': 'netfront'} to /local/domain/0/backend/vif/3/1.
[2007-06-01 18:53:56 14074] DEBUG (XendDomainInfo:1973) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': '5d1ec267-bed7-d96b-b648-043d769db2b2', 'on_reboot': 'restart', 'start_time': '1180738436.92', 'on_poweroff': 'destroy', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'image': "(linux (kernel /boot/vmlinuz-2.6-xen) (args 'root=/dev/sda1 ro selinux=0 3') (notes (HV_START_LOW 4118806528) (FEATURES 'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel') (VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472) (GUEST_OS linux) (HYPERCALL_PAGE 3222278144) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3222274048) (XEN_VERSION xen-3.0)))", 'name': 'vps00'}
[2007-06-01 18:53:56 14074] DEBUG (XendDomainInfo:824) Storing domain details: {'console/ring-ref': '1285982', 'image/entry': '3222274048', 'console/port': '2', 'store/ring-ref': '1285983', 'image/loader': 'generic', 'vm': '/vm/5d1ec267-bed7-d96b-b648-043d769db2b2', 'control/platform-feature-multiprocessor-suspend': '1', 'image/hv-start-low': '4118806528', 'image/guest-os': 'linux', 'image/features/writable-descriptor-tables': '1', 'image/virt-base': '3221225472', 'memory/target': '131072', 'image/guest-version': '2.6', 'image/features/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes', 'console/limit': '1048576', 'image/paddr-offset': '3221225472', 'image/hypercall-page': '3222278144', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': '1', 'image/features/writable-page-tables': '1', 'image/features/auto-translated-physmap': '1', 'name': 'vps00', 'domid': '3', 'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2007-06-01 18:53:56 14074] DEBUG (DevController:115) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/3/0'} to /local/domain/3/device/console/0.
[2007-06-01 18:53:56 14074] DEBUG (DevController:117) DevController: writing {'domain': 'vps00', 'protocol': 'vt100', 'uuid': '41087cb5-960d-391b-28c6-8ccde9a4b14d', 'frontend': '/local/domain/3/device/console/0', 'state': '1', 'location': '2', 'online': '1', 'frontend-id': '3'} to /local/domain/0/backend/console/3/0.
[2007-06-01 18:53:56 14074] DEBUG (XendDomainInfo:824) Storing domain details: {'console/ring-ref': '1285982', 'image/entry': '3222274048', 'console/port': '2', 'store/ring-ref': '1285983', 'image/loader': 'generic', 'vm': '/vm/5d1ec267-bed7-d96b-b648-043d769db2b2', 'control/platform-feature-multiprocessor-suspend': '1', 'image/hv-start-low': '4118806528', 'image/guest-os': 'linux', 'image/features/writable-descriptor-tables': '1', 'image/virt-base': '3221225472', 'memory/target': '131072', 'image/guest-version': '2.6', 'image/features/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes', 'console/limit': '1048576', 'image/paddr-offset': '3221225472', 'image/hypercall-page': '3222278144', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': '1', 'image/features/writable-page-tables': '1', 'image/features/auto-translated-physmap': '1', 'name': 'vps00', 'domid': '3', 'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2007-06-01 18:53:56 14074] DEBUG (XendDomainInfo:908) XendDomainInfo.handleShutdownWatch
[2007-06-01 18:53:57 14074] DEBUG (DevController:148) Waiting for devices vif.
[2007-06-01 18:53:57 14074] DEBUG (DevController:153) Waiting for 0.
[2007-06-01 18:53:57 14074] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status.
[2007-06-01 18:53:57 14074] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status.
[2007-06-01 18:53:57 14074] DEBUG (DevController:553) hotplugStatusCallback 1.