can't start hvm with a cdrom

388 views
Skip to first unread message

john.david.r.smith

unread,
Jul 25, 2016, 3:52:03 PM7/25/16
to qubes-users
hi.
i want to install windows 8 in an hvm (so i can update it).
but somehow i can't start the vm with an iso. (see output below)

[user@dom0 ~]$ qvm-start w8 --cdrom=data:/home/user/w8.iso
--> Loading the VM (type = HVM)...
Traceback (most recent call last):
File "/usr/bin/qvm-start", line 131, in <module>
main()
File "/usr/bin/qvm-start", line 115, in main
xid = vm.start(verbose=options.verbose,
preparing_dvm=options.preparing_dvm, start_guid=not options.noguid,
notify_function=tray_notify_generic if options.tray else None)
File
"/usr/lib64/python2.7/site-packages/qubes/modules/01QubesHVm.py", line
326, in start
return super(QubesHVm, self).start(*args, **kwargs)
File
"/usr/lib64/python2.7/site-packages/qubes/modules/000QubesVm.py", line
1901, in start
self.libvirt_domain.createWithFlags(libvirt.VIR_DOMAIN_START_PAUSED)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1059, in
createWithFlags
if ret == -1: raise libvirtError ('virDomainCreateWithFlags()
failed', dom=self)
libvirt.libvirtError: internal error: libxenlight failed to create new
domain 'w8'

what am i doing wrong?
i tried different isos, but the error is the same.
i get the same error, if i try to attach a nonexistent file. (but
starting the vm without an iso works (the vm starts and then shuts down,
since there is no bootable medium))

any idea how i can fix this?
-john

Marek Marczykowski-Górecki

unread,
Jul 25, 2016, 3:56:38 PM7/25/16
to john.david.r.smith, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Are you sure the path is correct? If so, check
/var/log/libvirt/libxl/libxl-driver.log for more details.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXlm7wAAoJENuP0xzK19cscLkH/RyMDckqkNrP4P2WjN9gt7Hb
bS7pR+dFQdri9lTAG0iDJsUaq7uKhtWm7I6N50xHOBLCTkNAUSC0dSWQT+pUCsyx
x1feNrRONyDuQajtnpp5in4UUSsadkxGH/kRCFbZ5Y+XojvImfWZh68ar5doC3N3
ZjQr6y8XU94FTYplUQvVKQxFMzv2LbBPHv3R+Y0GynFck3jUQCXGH0/mfcCtirIF
qmUk26hP59bOmGCnjw4ZRp68kXSSjBYIrkvroanBGryTyZgbJtzIja6AtFI6mrtC
w4HP/RBb/tOzokGrbTY9L8816ZAm2g3r8I7aAHH7R5Gjw9BQWNlMjr0vtMyrLKM=
=8+vV
-----END PGP SIGNATURE-----

john.david.r.smith

unread,
Jul 25, 2016, 4:07:35 PM7/25/16
to Marek Marczykowski-Górecki, qubes-users
i am pretty sure the path is correct:

[user@data ~]$ ls -l /home/user/w8.iso
-rwxrwxrwx 1 user user 3758010368 Sep 16 2013 /home/user/w8.iso

in libxl-driver.log are more details, but nothing i understand

2016-07-25 22:01:39 CEST libxl: error:
libxl_dm.c:1671:stubdom_xswait_cb: Stubdom 21 for 20 startup: startup
timed out
2016-07-25 22:01:39 CEST libxl: error:
libxl_create.c:1339:domcreate_devmodel_started: device model did not
start: -9
2016-07-25 22:01:39 CEST libxl: error:
libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block
remove [10827] exited with error status 1
2016-07-25 22:01:39 CEST libxl: error:
libxl_device.c:1084:device_hotplug_child_death_cb: script:
/etc/xen/scripts/block failed; error detected.
2016-07-25 22:01:39 CEST libxl: error:
libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block
remove [10819] exited with error status 1
2016-07-25 22:01:39 CEST libxl: error:
libxl_device.c:1084:device_hotplug_child_death_cb: script:
/etc/xen/scripts/block failed; error detected.

Marek Marczykowski-Górecki

unread,
Jul 25, 2016, 4:17:49 PM7/25/16
to john.david.r.smith, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> i am pretty sure the path is correct:
>
> [user@data ~]$ ls -l /home/user/w8.iso
> -rwxrwxrwx 1 user user 3758010368 Sep 16 2013 /home/user/w8.iso
>
> in libxl-driver.log are more details, but nothing i understand
>
> 2016-07-25 22:01:39 CEST libxl: error: libxl_dm.c:1671:stubdom_xswait_cb:
> Stubdom 21 for 20 startup: startup timed out
> 2016-07-25 22:01:39 CEST libxl: error:
> libxl_create.c:1339:domcreate_devmodel_started: device model did not start:
> -9

Stubdomain startup timeout. Probably something wrong with that 'data'
domain which serves as a backend for your iso image.

Is the 'data' domain based on minimal template? If so, install perl
there. Also check if you have xen-blkback kernel module loaded.

If none of this helps, check /var/log/xen/xen-hotplug.log in data VM and
/var/log/xen/console/guest-w8-dm.log in dom0.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXlnPoAAoJENuP0xzK19cs8loH/ApbUQXfNmB/7bpN5fPWB9Tl
wMBShn8piejQakQE11gFF8xGrF+C1LtFN6jELYyMRE6XBh65WVks3R/8MAI/N8PH
3LuM2maaaANu8Vx+zVXKBKnU8aR6vzfyKU/QXR/kSnwvTN9vSS27+Jdkb8fmhxJ1
yUIbPzji9AjuQ7HAxLWtsqEApfL9mnSGM7pkqDBZpO/29LlauqilmREw3YvDutMz
xWQvk9D6t+Jy5H4oR7owFVAd+/5bRR3iZurgZZY5NA3thqsDN8rx2/Yt4xJDHb+k
Xdg4LSTUxCeae7vJJqDdqX/CskEBL2zFHA8WIc0YlWRFFiNwSOzgHQSEwI/kQGg=
=bWUQ
-----END PGP SIGNATURE-----

john.david.r.smith

unread,
Jul 25, 2016, 4:33:03 PM7/25/16
to Marek Marczykowski-Górecki, qubes-users
yes it was a minimal template.
i installed perl and now it works. (the kernel module is loaded, too)
thanks a lot.
Reply all
Reply to author
Forward
0 new messages