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

qvm-block: Attaching dom0 files to VMs may fail in R3 #1034

Closed
3hhh opened this Issue Jun 24, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@3hhh

3hhh commented Jun 24, 2015

Calling

qvm-block -A [VM_A] dom0:/var/lib/qubes/appvms/[VM_B]/private.img
Traceback (most recent call last):
File "/usr/bin/qvm-block", line 151, in
main()
File "/usr/bin/qvm-block", line 105, in main
block_attach(qvm_collection, vm, dev, **kwargs)
File "/usr/lib64/python2.7/site-packages/qubes/qubesutils.py", line 408,
in block_attach
block_detach(attached_vm['vm'], attached_vm['frontend'])
File "/usr/lib64/python2.7/site-packages/qubes/qubesutils.py", line 446,
in block_detach
vm.libvirt_domain.detachDevice(etree.tostring(disk, encoding='utf-8'))
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1095, in
detachDevice
if ret == -1: raise libvirtError ('virDomainDetachDevice() failed',
dom=self)
libvirt.libvirtError: Requested operation is not valid: Domain is not
running

will result in the error above, if VM_A is running, but VM_B is not. In R2
it worked. In R3 it only works, if both VM_A and VM_B are running - which is
kind of strange as that ensures that the same file is attached to two VMs.

@3hhh

This comment has been minimized.

Show comment
Hide comment
@3hhh

3hhh Jun 24, 2015

Funny thing:

If you create a symlink to /var/lib/qubes/appvms/[VM_B]/private.img in your home directory and use that one instead of the direct path, it will work. If you do the same in /tmp, it won't work (different error then though). This is a strange one.

3hhh commented Jun 24, 2015

Funny thing:

If you create a symlink to /var/lib/qubes/appvms/[VM_B]/private.img in your home directory and use that one instead of the direct path, it will work. If you do the same in /tmp, it won't work (different error then though). This is a strange one.

@marmarek marmarek added this to the Release 3.0 milestone Jun 24, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment

@marmarek marmarek closed this Jul 8, 2015

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