New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Archlinux] Not possible to pass iso image to qvm-start #2753

Closed
tezeb opened this Issue Apr 17, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@tezeb

tezeb commented Apr 17, 2017

Qubes OS version (e.g., R3.2):

R3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

N/A


Expected behavior:

Running:
qvm-start customHVM --hddisk=downloadVM:/tmp/arch.iso

shall start customHVM with downloadVM attached as hd.

Actual behavior:

It throws exception:

--> Loading the VM (type = HVM)...
Traceback (most recent call last):
  File "/usr/bin/qvm-start", line 136, in <module>
    main()
  File "/usr/bin/qvm-start", line 120, 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 335, in start
    return super(QubesHVm, self).start(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/qubes/modules/000QubesVm.py", line 1966, 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 'customHVM'

Steps to reproduce the behavior:

Run above command.

General notes:

It works fine(tries to boot from empty drive) when there is no --hddisk param.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Apr 17, 2017

Member

Check /var/log/libvirt/libxl/libxl-driver.log for details.
Also check if you have xen-blkback module loaded in downloadVM. Have you checked --cdrom option instead?

Member

marmarek commented Apr 17, 2017

Check /var/log/libvirt/libxl/libxl-driver.log for details.
Also check if you have xen-blkback module loaded in downloadVM. Have you checked --cdrom option instead?

@andrewdavidwong andrewdavidwong added C: xen C: core and removed C: xen labels Apr 18, 2017

@andrewdavidwong andrewdavidwong added this to the Release 3.2 updates milestone Apr 18, 2017

@andrewdavidwong andrewdavidwong added the bug label Apr 30, 2017

@tezeb tezeb changed the title from Not possible to pass iso image to qvm-start to [Archlinux] Not possible to pass iso image to qvm-start May 3, 2017

@tezeb

This comment has been minimized.

Show comment
Hide comment
@tezeb

tezeb May 3, 2017

It works with Debian template, so I guess it is Archlinux specific.
xen_blkback is loaded and the issue happens regardless of using --cdrom or --hddisk.

Logs from the libxl-driver.log:

2017-05-03 21:51:32 CEST libxl: error: libxl_dm.c:1689:stubdom_xswait_cb: Stubdom 85 for 84 startup: startup timed out
2017-05-03 21:51:32 CEST libxl: error: libxl_create.c:1342:domcreate_devmodel_started: device model did not start: -9
2017-05-03 21:51:32 CEST libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block remove [32690] exited with error status 1
2017-05-03 21:51:32 CEST libxl: error: libxl_device.c:1138:device_hotplug_child_death_cb: script: /etc/xen/scripts/block failed; error detected.
2017-05-03 21:51:32 CEST libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block remove [32708] exited with error status 1
2017-05-03 21:51:32 CEST libxl: error: libxl_device.c:1138:device_hotplug_child_death_cb: script: /etc/xen/scripts/block failed; error detected.
2017-05-03 21:51:42 CEST libxl: error: libxl_device.c:1177:device_destroy_be_watch_cb: timed out while waiting for /local/domain/52/backend/vbd/85/51760 to be removed
2017-05-03 21:51:42 CEST libxl: error: libxl.c:1699:devices_destroy_cb: libxl__devices_destroy failed for 85
2017-05-03 21:51:42 CEST libxl: error: libxl_device.c:1177:device_destroy_be_watch_cb: timed out while waiting for /local/domain/52/backend/vbd/84/51760 to be removed
2017-05-03 21:51:42 CEST libxl: error: libxl.c:1699:devices_destroy_cb: libxl__devices_destroy failed for 84

tezeb commented May 3, 2017

It works with Debian template, so I guess it is Archlinux specific.
xen_blkback is loaded and the issue happens regardless of using --cdrom or --hddisk.

Logs from the libxl-driver.log:

2017-05-03 21:51:32 CEST libxl: error: libxl_dm.c:1689:stubdom_xswait_cb: Stubdom 85 for 84 startup: startup timed out
2017-05-03 21:51:32 CEST libxl: error: libxl_create.c:1342:domcreate_devmodel_started: device model did not start: -9
2017-05-03 21:51:32 CEST libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block remove [32690] exited with error status 1
2017-05-03 21:51:32 CEST libxl: error: libxl_device.c:1138:device_hotplug_child_death_cb: script: /etc/xen/scripts/block failed; error detected.
2017-05-03 21:51:32 CEST libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/block remove [32708] exited with error status 1
2017-05-03 21:51:32 CEST libxl: error: libxl_device.c:1138:device_hotplug_child_death_cb: script: /etc/xen/scripts/block failed; error detected.
2017-05-03 21:51:42 CEST libxl: error: libxl_device.c:1177:device_destroy_be_watch_cb: timed out while waiting for /local/domain/52/backend/vbd/85/51760 to be removed
2017-05-03 21:51:42 CEST libxl: error: libxl.c:1699:devices_destroy_cb: libxl__devices_destroy failed for 85
2017-05-03 21:51:42 CEST libxl: error: libxl_device.c:1177:device_destroy_be_watch_cb: timed out while waiting for /local/domain/52/backend/vbd/84/51760 to be removed
2017-05-03 21:51:42 CEST libxl: error: libxl.c:1699:devices_destroy_cb: libxl__devices_destroy failed for 84
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek May 5, 2017

Member

If that's something Archlinux specific, it's probably about /etc/xen/scripts/block, or xendriverdomain.service. Can you check the later if its running (systemctl status xendriverdomain.service)?

Member

marmarek commented May 5, 2017

If that's something Archlinux specific, it's probably about /etc/xen/scripts/block, or xendriverdomain.service. Can you check the later if its running (systemctl status xendriverdomain.service)?

@tezeb

This comment has been minimized.

Show comment
Hide comment
@tezeb

tezeb May 5, 2017

Bingo! The daemon was inactive.
Running systemctl start xendriverdomain fixed the issue.

I will check if this needs patching in up to date Archlinux template(mine is few months old) and push fix if necessary.

tezeb commented May 5, 2017

Bingo! The daemon was inactive.
Running systemctl start xendriverdomain fixed the issue.

I will check if this needs patching in up to date Archlinux template(mine is few months old) and push fix if necessary.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 22, 2017

Member

Does it still happen?

Member

marmarek commented Dec 22, 2017

Does it still happen?

@tezeb

This comment has been minimized.

Show comment
Hide comment
@tezeb

tezeb Dec 31, 2017

No. It works fine now.
Thanks

tezeb commented Dec 31, 2017

No. It works fine now.
Thanks

@tezeb tezeb closed this Dec 31, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment