On 10/23/2016 04:15 PM, David Hobach wrote:
> Dear all,
>
> after upgrading to 3.2 (in-place) I noticed the following issue:
>
> qvm-block -A fooVM dom0:/var/lib/qubes/appvms/blaVM/private.img
> Traceback (most recent call last):
>
> File "/usr/bin/qvm-block", line 151, in <module>
>
> 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
> 429, in block_attach
> vm.libvirt_domain.attachDevice(etree.tostring(disk, encoding='utf-8'))
> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 530, in
> attachDevice
> if ret == -1: raise libvirtError ('virDomainAttachDevice() failed',
> dom=self)
> libvirt.libvirtError: internal error: libxenlight failed to attach disk
> 'xvdi'
>
> Strangely enough, xvdi still appears in fooVM and can be mounted.
> Attempting to attach another file to fooVM however fails with the same
> error and xvdj does not appear.
>
> More stranegely, it works perfectly on another Qubes machine (same
> kernel, same Xen version, no in-place-upgrade though) I got.
Found a stupid workaround:
losetup -f /var/lib/qubes/appvms/blaVM/private.img
qvm-block -A fooVM dom0:loop[justCreated]
works - even for multiple calls.
Funnily enough, qvm-block -a does not work contrary to its description
@qvm-block -h. Looks like dom0 is some special case which is not handled
100% correctly (it's a loop _device_ and not a file anymore, isn't it?).
> Possibly related: I also noticed that netvm and firewallVM don't always
> start with the 4.4.14-11 kernel on boot anymore; thus I'm currently
> testing 4.1.13-9.
4.1.13-9 shows the same issue, but the netvm & firewallvm start via
qvm-start. By right-clicking on the VM in the Qubes manager and starting
the VMs they don't start though. Not sure what's the difference...
Still interested...
> Kind Regards
> David
>