[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
device model did not start: -3
- To: "xen-users" <xen-users@xxxxxxxxxxxxx>
- From: "fangtuo90" <fangtuo90@xxxxxx>
- Date: Sun, 24 Jul 2022 11:09:16 +0800
- Delivery-date: Sun, 24 Jul 2022 15:03:44 +0000
- List-id: Xen user discussion <xen-users.lists.xenproject.org>
I met the problem "device model did not start: -3" while creating xen virtual machine. This is the configuration of VM. [root@localhost ~]# cat ubuntu1804.cfg builder = "hvm" name = "ubuntu1804" memory = 1024 vcpus = 1 vif = [ 'mac=00:16:3E:11:11:21' ] disk = [ '/root/ubuntu1804.img,raw,hda,rw' ] vnc = 1 vnclisten = "0.0.0.0" serial = "pty" Error info. [root@localhost ~]# xl create ubuntu1804.cfg Parsing config from ubuntu1804.cfg libxl: error: libxl_dm.c:2756:device_model_spawn_outcome: Domain 19:domain 19 device model: spawn failed (rc=-3) libxl: error: libxl_create.c:1543:domcreate_devmodel_started: Domain 19:device model did not start: -3 libxl: error: libxl_dm.c:2874:kill_device_model: Device Model already exited libxl: error: libxl_domain.c:1038:libxl__destroy_domid: Domain 19:Non-existant domain libxl: error: libxl_domain.c:993:domain_destroy_callback: Domain 19:Unable to destroy guest libxl: error: libxl_domain.c:920:domain_destroy_cb: Domain 19:Destruction of domain failed [root@localhost rose]# cat /var/log/xen/qemu-dm-ubuntu1804.log /usr/lib64/xen/bin/qemu-system-i386: symbol lookup error: /usr/lib64/xen/bin/qemu-system-i386: undefined symbol: gdk_wayland_display_get_type More details. [root@localhost ~]# xl -vvvv create ubuntu1804.cfg Parsing config from ubuntu1804.cfg libxl: debug: libxl_create.c:1693:do_domain_create: Domain 0:ao 0xbc96d0: create: how=(nil) callback=(nil) poller=0xbc8d00 libxl: debug: libxl_device.c:397:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=unknown libxl: debug: libxl_device.c:432:libxl__device_disk_set_backend: Disk vdev=hda, using backend phy libxl: debug: libxl_create.c:1018:initiate_domain_create: Domain 20:running bootloader libxl: debug: libxl_bootloader.c:328:libxl__bootloader_run: Domain 20:not a PV/PVH domain, skipping bootloader libxl: debug: libxl_event.c:689:libxl__ev_xswatch_deregister: watch w=0xbca2f8: deregister unregistered domainbuilder: detail: xc_dom_allocate: cmdline="", features="" domainbuilder: detail: xc_dom_kernel_file: filename="/usr/lib64/xen/boot/hvmloader" domainbuilder: detail: xc_dom_malloc_filemap : 328 kB libxl: debug: libxl_dom.c:988:libxl__load_hvm_firmware_module: Loading BIOS: /usr/share/seabios/bios.bin domainbuilder: detail: xc_dom_boot_xen_init: ver 4.12, caps xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 domainbuilder: detail: xc_dom_parse_image: called domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ... domainbuilder: detail: loader probe failed domainbuilder: detail: xc_dom_find_loader: trying HVM-generic loader ... domainbuilder: detail: loader probe OK xc: detail: ELF: phdr: paddr=0x100000 memsz=0x5a244 xc: detail: ELF: memory: 0x100000 -> 0x15a244 domainbuilder: detail: xc_dom_mem_init: mem 1016 MB, pages 0x3f800 pages, 4k each domainbuilder: detail: xc_dom_mem_init: 0x3f800 pages domainbuilder: detail: xc_dom_boot_mem_init: called domainbuilder: detail: range: start=0x0 end=0x3f800000 domainbuilder: detail: xc_dom_malloc : 2032 kB xc: detail: PHYSICAL MEMORY ALLOCATION: xc: detail: 4KB PAGES: 0x0000000000000200 xc: detail: 2MB PAGES: 0x00000000000001fb xc: detail: 1GB PAGES: 0x0000000000000000 domainbuilder: detail: xc_dom_build_image: called domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x100+0x5b at 0x7f4b0f04f000 domainbuilder: detail: xc_dom_alloc_segment: kernel : 0x100000 -> 0x15b000 (pfn 0x100 + 0x5b pages) xc: detail: ELF: phdr 0 at 0x7f4b0eff4000 -> 0x7f4b0f0446a0 domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x15b+0x40 at 0x7f4b0f00f000 domainbuilder: detail: xc_dom_alloc_segment: System Firmware module : 0x15b000 -> 0x19b000 (pfn 0x15b + 0x40 pages) domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x19b+0x1 at 0x7f4b0f159000 domainbuilder: detail: xc_dom_alloc_segment: HVM start info : 0x19b000 -> 0x19c000 (pfn 0x19b + 0x1 pages) domainbuilder: detail: alloc_pgtables_hvm: doing nothing domainbuilder: detail: xc_dom_build_image : virt_alloc_end : 0x19c000 domainbuilder: detail: xc_dom_build_image : virt_pgtab_end : 0x0 domainbuilder: detail: xc_dom_boot_image: called domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_64 domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_32p domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32 <= matches domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32p domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_64 domainbuilder: detail: domain builder memory footprint domainbuilder: detail: allocated domainbuilder: detail: malloc : 2038 kB domainbuilder: detail: anon mmap : 0 bytes domainbuilder: detail: mapped domainbuilder: detail: file mmap : 328 kB domainbuilder: detail: domU mmap : 624 kB domainbuilder: detail: vcpu_hvm: called domainbuilder: detail: compat_gnttab_hvm_seed: d20: pfn=0xff000 domainbuilder: detail: xc_dom_set_gnttab_entry: d20 gnt[0] -> d0 0xfefff domainbuilder: detail: xc_dom_set_gnttab_entry: d20 gnt[1] -> d0 0xfeffc domainbuilder: detail: xc_dom_release: called libxl: debug: libxl_device.c:397:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=phy libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0xbcc710 wpath=/local/domain/0/backend/vbd/20/768/state token=3/0: register slotnum=3 libxl: debug: libxl_create.c:1730:do_domain_create: Domain 0:ao 0xbc96d0: inprogress: poller=0xbc8d00, flags=i libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0xbcc710 wpath=/local/domain/0/backend/vbd/20/768/state token=3/0: event epath=/local/domain/0/backend/vbd/20/768/state libxl: debug: libxl_event.c:881:devstate_callback: backend /local/domain/0/backend/vbd/20/768/state wanted state 2 still waiting state 1 libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0xbcc710 wpath=/local/domain/0/backend/vbd/20/768/state token=3/0: event epath=/local/domain/0/backend/vbd/20/768/state libxl: debug: libxl_event.c:877:devstate_callback: backend /local/domain/0/backend/vbd/20/768/state wanted state 2 ok libxl: debug: libxl_event.c:676:libxl__ev_xswatch_deregister: watch w=0xbcc710 wpath=/local/domain/0/backend/vbd/20/768/state token=3/0: deregister slotnum=3 libxl: debug: libxl_device.c:1117:device_backend_callback: Domain 20:calling device_backend_cleanup libxl: debug: libxl_event.c:689:libxl__ev_xswatch_deregister: watch w=0xbcc710: deregister unregistered libxl: debug: libxl_linux.c:194:libxl__hotplug_disk: Domain 20:Args and environment ready libxl: debug: libxl_device.c:1218:device_hotplug: Domain 20:calling hotplug script: /etc/xen/scripts/block add libxl: debug: libxl_device.c:1219:device_hotplug: Domain 20:extra args: libxl: debug: libxl_device.c:1227:device_hotplug: Domain 20:env: libxl: debug: libxl_device.c:1234:device_hotplug: Domain 20: script: /etc/xen/scripts/block libxl: debug: libxl_device.c:1234:device_hotplug: Domain 20: XENBUS_TYPE: vbd libxl: debug: libxl_device.c:1234:device_hotplug: Domain 20: XENBUS_PATH: backend/vbd/20/768 libxl: debug: libxl_device.c:1234:device_hotplug: Domain 20: XENBUS_BASE_PATH: backend libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add libxl: debug: libxl_event.c:689:libxl__ev_xswatch_deregister: watch w=0xbcc810: deregister unregistered libxl: debug: libxl_linux.c:212:libxl__get_hotplug_script_info: Domain 20:num_exec 1, not running hotplug scripts libxl: debug: libxl_device.c:1203:device_hotplug: Domain 20:No hotplug script to execute libxl: debug: libxl_event.c:689:libxl__ev_xswatch_deregister: watch w=0xbcc810: deregister unregistered libxl: debug: libxl_dm.c:178:libxl__domain_get_device_model_uid: Domain 20:dm_restrict disabled, starting QEMU as root libxl: debug: libxl_disk.c:918:libxl__device_disk_find_local_path: Directly accessing local RAW disk /root/ubuntu1804.img libxl: debug: libxl_dm.c:2602:libxl__spawn_local_dm: Domain 20:Spawning device-model /usr/lib64/xen/bin/qemu-system-i386 with arguments: libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: /usr/lib64/xen/bin/qemu-system-i386 libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -xen-domid libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: 20 libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -chardev libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-20,server,nowait libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -no-shutdown libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -mon libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: chardev=libxl-cmd,mode=control libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -chardev libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-20,server,nowait libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -mon libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: chardev=libxenstat-cmd,mode=control libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -nodefaults libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -no-user-config libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -name libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: ubuntu1804 libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -vnc libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: 0.0.0.0:0,to=99 libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -display libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: none libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -serial libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: pty libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -device libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: cirrus-vga,vgamem_mb=8 libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -boot libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: order=cda libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -device libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: rtl8139,id=nic0,netdev=net0,mac=00:16:3e:11:11:21 libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -netdev libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: type=tap,id=net0,ifname=vif20.0-emu,script=no,downscript=no libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -machine libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: xenfv libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -m libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: 1016 libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: -drive libxl: debug: libxl_dm.c:2604:libxl__spawn_local_dm: Domain 20: file=/root/ubuntu1804.img,if=ide,index=0,media=disk,format=raw,cache=writeback libxl: debug: libxl_dm.c:2606:libxl__spawn_local_dm: Domain 20:Spawning device-model /usr/lib64/xen/bin/qemu-system-i386 with additional environment: libxl: debug: libxl_dm.c:2608:libxl__spawn_local_dm: Domain 20: XEN_QEMU_CONSOLE_LIMIT=1048576 libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0xbca5f0 wpath=/local/domain/0/device-model/20/state token=3/1: register slotnum=3 libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0xbca5f0 wpath=/local/domain/0/device-model/20/state token=3/1: event epath=/local/domain/0/device-model/20/state libxl: debug: libxl_exec.c:407:spawn_watch_event: domain 20 device model: spawn watch p=(null) libxl: debug: libxl_event.c:676:libxl__ev_xswatch_deregister: watch w=0xbca5f0 wpath=/local/domain/0/device-model/20/state token=3/1: deregister slotnum=3 libxl: error: libxl_dm.c:2756:device_model_spawn_outcome: Domain 20:domain 20 device model: spawn failed (rc=-3) libxl: debug: libxl_qmp.c:2162:libxl__ev_qmp_dispose: Domain 0: ev 0xbca608 libxl: error: libxl_create.c:1543:domcreate_devmodel_started: Domain 20:device model did not start: -3 libxl: debug: libxl_dm.c:3008:libxl__destroy_device_model: Domain 20:Didn't find dm UID; destroying by pid libxl: error: libxl_dm.c:2874:kill_device_model: Device Model already exited libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0xbd0880 wpath=/local/domain/0/backend/vbd/20/768/state token=3/2: register slotnum=3 libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0xbd0880 wpath=/local/domain/0/backend/vbd/20/768/state token=3/2: event epath=/local/domain/0/backend/vbd/20/768/state libxl: debug: libxl_event.c:877:devstate_callback: backend /local/domain/0/backend/vbd/20/768/state wanted state 6 ok libxl: debug: libxl_event.c:676:libxl__ev_xswatch_deregister: watch w=0xbd0880 wpath=/local/domain/0/backend/vbd/20/768/state token=3/2: deregister slotnum=3 libxl: debug: libxl_device.c:1117:device_backend_callback: Domain 20:calling device_backend_cleanup libxl: debug: libxl_event.c:689:libxl__ev_xswatch_deregister: watch w=0xbd0880: deregister unregistered libxl: debug: libxl_linux.c:194:libxl__hotplug_disk: Domain 20:Args and environment ready libxl: debug: libxl_device.c:1218:device_hotplug: Domain 20:calling hotplug script: /etc/xen/scripts/block remove libxl: debug: libxl_device.c:1219:device_hotplug: Domain 20:extra args: libxl: debug: libxl_device.c:1227:device_hotplug: Domain 20:env: libxl: debug: libxl_device.c:1234:device_hotplug: Domain 20: script: /etc/xen/scripts/block libxl: debug: libxl_device.c:1234:device_hotplug: Domain 20: XENBUS_TYPE: vbd libxl: debug: libxl_device.c:1234:device_hotplug: Domain 20: XENBUS_PATH: backend/vbd/20/768 libxl: debug: libxl_device.c:1234:device_hotplug: Domain 20: XENBUS_BASE_PATH: backend libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block remove libxl: debug: libxl_event.c:545:watchfd_callback: watch epath=/local/domain/0/backend/vbd/20/768/state token=3/2: empty slot libxl: debug: libxl_event.c:689:libxl__ev_xswatch_deregister: watch w=0xbd0980: deregister unregistered libxl: debug: libxl_linux.c:212:libxl__get_hotplug_script_info: Domain 20:num_exec 1, not running hotplug scripts libxl: debug: libxl_device.c:1203:device_hotplug: Domain 20:No hotplug script to execute libxl: debug: libxl_event.c:689:libxl__ev_xswatch_deregister: watch w=0xbd0980: deregister unregistered libxl: debug: libxl_linux.c:235:libxl__get_hotplug_script_info: Domain 20:backend_kind 6, no need to execute scripts libxl: debug: libxl_device.c:1203:device_hotplug: Domain 20:No hotplug script to execute libxl: debug: libxl_event.c:689:libxl__ev_xswatch_deregister: watch w=0xbd0ec0: deregister unregistered libxl: debug: libxl_domain.c:1194:devices_destroy_cb: Domain 20:Forked pid 12541 for destroy of domain libxl: debug: libxl_event.c:1873:libxl__ao_complete: ao 0xbc96d0: complete, rc=-3 libxl: debug: libxl_event.c:1842:libxl__ao__destroy: ao 0xbc96d0: destroy libxl: debug: libxl_domain.c:902:libxl_domain_destroy: Domain 20:ao 0xbcd320: create: how=(nil) callback=(nil) poller=0xbc8d00 libxl: error: libxl_domain.c:1038:libxl__destroy_domid: Domain 20:Non-existant domain libxl: error: libxl_domain.c:993:domain_destroy_callback: Domain 20:Unable to destroy guest libxl: error: libxl_domain.c:920:domain_destroy_cb: Domain 20:Destruction of domain failed libxl: debug: libxl_event.c:1873:libxl__ao_complete: ao 0xbcd320: complete, rc=-21 libxl: debug: libxl_domain.c:911:libxl_domain_destroy: Domain 20:ao 0xbcd320: inprogress: poller=0xbc8d00, flags=ic libxl: debug: libxl_event.c:1842:libxl__ao__destroy: ao 0xbcd320: destroy xencall:buffer: debug: total allocations:413 total releases:413 xencall:buffer: debug: current allocations:0 maximum allocations:3 xencall:buffer: debug: cache current size:3 xencall:buffer: debug: cache hits:396 misses:3 toobig:14 xencall:buffer: debug: total allocations:0 total releases:0 xencall:buffer: debug: current allocations:0 maximum allocations:0 xencall:buffer: debug: cache current size:0 xencall:buffer: debug: cache hits:0 misses:0 toobig:0 Environment info. [root@localhost ~]# xl info host : localhost.localdomain release : 4.9.241-37.el7.x86_64 version : #1 SMP Mon Nov 2 13:55:04 UTC 2020 machine : x86_64 nr_cpus : 4 max_cpu_id : 127 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2401.607 hw_caps : 1f8bfbff:f7fa3223:2c100800:00000121:0000000b:009c27ab:00000008:00000100 virt_caps : pv hvm hvm_directio pv_directio total_memory : 8191 free_memory : 7055 sharing_freed_memory : 0 sharing_used_memory : 0 outstanding_claims : 0 free_cpus : 0 xen_major : 4 xen_minor : 12 xen_extra : .4.103.g71e9d0c xen_version : 4.12.4.103.g71e9d0c xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_scheduler : credit2 xen_pagesize : 4096 platform_params : virt_start=0xffff800000000000 xen_changeset : xen_commandline : placeholder dom0_mem=1024M,max:1024M cpuinfo com1=115200,8n1 console=com1,tty loglvl=all guest_loglvl=all cc_compiler : gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) cc_compile_by : mockbuild cc_compile_domain : centos.org cc_compile_date : Wed Jan 26 16:38:22 UTC 2022 build_id : 217e3e609a52beb78a2923a50862571f2d4f22d2 xend_config_format : 4 [root@localhost ~]# uname -a Linux localhost.localdomain 4.9.241-37.el7.x86_64 #1 SMP Mon Nov 2 13:55:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Any helps would be appreciated.
|