qvm-block arg err while attempting to mount private.img as vol

19 views
Skip to first unread message

Dave

unread,
Dec 7, 2019, 12:14:37 AM12/7/19
to qubes-users
I have a broken app-vm, from which I want to recover the usr home dir.
I want to mount the private.img as a vol to the new working vm using qvm-block so I can copy user files in accordance with instructions here:

It is possible to mount one VM’s private image as a volume to another AppVM. One can then run whatever malware scanner or investigative software in that other AppVM. This operation is indeed very easy to do:

[joanna@dom0 ~]$ qvm-block -A --ro admin-ir dom0:/var/lib/qubes/appvms/personal/private.img
[root@admin-ir user]# mount -o ro /dev/xvdi /mnt/personal/

However, the command returns err msg for 'admin-ir' argument:

[David@dom0 ~]$ qvm-block -A --ro admin-ir dom0:/var/lib/qubes/appvms/personal/private.img
usage: qvm-block [--verbose] [--quiet] [--help] [--list-device-classes]
                 {list,ls,l,attach,at,a,detach,d,dt} ...
qvm-block: error: argument command: invalid choice: 'admin-ir' (choose from 'list', 'ls', 'l', 'attach', 'at', 'a', 'detach', 'd', 'dt')
[David@dom0 ~]$

Please help with proper syntax so I can recover user data from an app-vm that won't boot. TIA

awokd

unread,
Dec 8, 2019, 10:14:39 AM12/8/19
to qubes...@googlegroups.com
Dave:
The article you're referring to is about Qubes 3.2, but the output from
the qvm-block command appears to be from 4.0. Probably the safest way to
accomplish the same thing is:
- Create new VM with same sized private volume as the broken one
- Shut it down
- Locate the source(broken) and target(new) private volume names with
"ls /dev/mapper" in dom0 terminal. They will end in "--private", not
--back or --snap.
- sudo cp /dev/mapper/[broken]--private /dev/mapper/[new]--private
- Power on new VM

--
- don't top post
Mailing list etiquette:
- trim quoted reply to only relevant portions
- when possible, copy and paste text instead of screenshots
Reply all
Reply to author
Forward
0 new messages