Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqvm-block -A fails without breaking #2047
Comments
andrewdavidwong
added
bug
C: core
P: minor
labels
Jun 6, 2016
andrewdavidwong
modified the milestones:
Release 3.1,
Release 3.1 updates
Jun 6, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
GammaSQ
Jun 7, 2016
Some additional information:
The Memory-limit seems to be ~400MB maximum memory.
Valid for VMs of all sizes:
qvm-block -l does not display the expected "attached to 'vault' as 'xvdi'" information, but just:
backup:loop0 /home/user/backup.img 9 GiB
Once it's attached to one VM, it can be easily reattached to another one using the Qubes VM-Manager, and then the expected message appears:
backup:loop0 /home/user/backup.img 9 GiB (attached to 'vault' as 'xvdi')
However, the QVM-Manager fails to detach the device from the previousely attached VM.
GammaSQ
commented
Jun 7, 2016
|
Some additional information: |
andrewdavidwong
added
P: major
and removed
P: minor
labels
Nov 22, 2016
andrewdavidwong
modified the milestones:
Release 3.2 updates,
Release 3.1 updates
Nov 22, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Nov 22, 2016
Member
I can reproduce this on 3.2. It completely blocks upgrading StandaloneVMs (and, I assume, TemplateVMs) per our instructions.
|
I can reproduce this on 3.2. It completely blocks upgrading StandaloneVMs (and, I assume, TemplateVMs) per our instructions. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 23, 2016
Member
@andrewdavidwong according to the report, it affect only VMs with little memory. Is it your case, or maybe it affect also others?
|
@andrewdavidwong according to the report, it affect only VMs with little memory. Is it your case, or maybe it affect also others? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 23, 2016
Member
@andrewdavidwong ok, I reproduced it, but I think this is a different issue: qvm-block -A do attach the device (/dev/xvdi appears in the VM), but later qvm-block -l do not list it and it's impossible to detach it using standard Qubes tools. Shouldn't affect upgrade, as it rely on automatic detach on VM shutdown (which does work).
|
@andrewdavidwong ok, I reproduced it, but I think this is a different issue: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 23, 2016
Member
@GammaSQ I can't reproduce it with a VM running kernel 4.4.31. Even VM with maxmem 200M works as expected. qvm-block -l do not list such device, but as explained, it is separate issue.
|
@GammaSQ I can't reproduce it with a VM running kernel 4.4.31. Even VM with maxmem 200M works as expected. |
marmarek
referenced this issue
Nov 23, 2016
Closed
Device created with `qvm-block -A` not listed as attached #2453
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Nov 25, 2016
Member
ok, I reproduced it, but I think this is a different issue: qvm-block -A do attach the device (/dev/xvdi appears in the VM), but later qvm-block -l do not list it and it's impossible to detach it using standard Qubes tools. Shouldn't affect upgrade, as it rely on automatic detach on VM shutdown (which does work).
Yes, you're right.
Yes, you're right. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
May 1, 2017
Member
Just wanted to report that I still experience this issue (the actual one this time) once in a while. I have to restart the VM, then re-attach to get it to work correctly.
|
Just wanted to report that I still experience this issue (the actual one this time) once in a while. I have to restart the VM, then re-attach to get it to work correctly. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
taonik
commented
Sep 12, 2017
|
In R4.0 rc1 |
GammaSQ commentedJun 5, 2016
Qubes OS version
R3.1:This affects the file-mounting capabilities of qvm-block within dom0
Expected behavior:
qvm-block -A [vm] [backend]:[/path/to/file] should throw an error and exit if anything goes wrong.
Actual behavior:
qvm-block -A exits without any trouble, qvm-block -l claims the file was attached as xvd[x], though the VM does not show a corresponding /dev/xvd[x] node. This seems to happen when the VM does not have enough RAM (not sure where the threshold is, testing is quite time consuming. Failed VMs had >1GB)
qvm-block -d [vm] throws an error:
(obviously, /dev/xvdi never existed in the first place!)
Steps to reproduce the behavior:
create a virtual thumbdrive within the VM:
dd if=/dev/zero of=~/thumb.img bs=1M count=10000
losetup --partscan --find thumb.img
mkfs.ext4 /dev/loop0
(perhaps confirm that mount /dev/loop0 /mnt works, but don't forget to umount!)
in dom0, use the qvm-block cmd:
General notes:
I'm using Kernel 4.4.10-9.pvops.qubes.x86_64 from the unstable repo.
I've tried my luck with xl block-attach and block-detach, however, block-detach ALWAYS failes due to error:
which probably has something to do with this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=912488
Related issues:
probably: #2018