Drive Passthrough not functioning correctly.

40 views
Skip to first unread message

Drew White

unread,
Jan 18, 2017, 7:48:17 PM1/18/17
to qubes-users
Hi folks,

Here is what I was trying to do..
Pass the drive to the guest.


[{user}@dom0 {folder}]$ qvm-block -a {vmname} dom0:/dev/sdc
Usage: qvm-block -l [options]
usage: qvm-block -a [options] <vm-name> <device-vm-name>:<device>
usage: qvm-block -A [options] <vm-name> <file-vm-name>:<file>
usage: qvm-block -d [options] <device-vm-name>:<device>
usage: qvm-block -d [options] <vm-name>
List/set VM block devices.

qvm-block: error: Invalid device name: dom0:/dev/sdc

Why does it say that it's invalid device?

Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors

The device is there, so what's happenned?

Hope someone can help please.

Sincerely,
Drew.

01v3g4n10

unread,
Jan 18, 2017, 8:05:07 PM1/18/17
to qubes-users
Try removing /dev/ from /dev/sdc and instead use dom0:sdc
qvm-block -a {vmname} dom0:sdc
https://www.qubes-os.org/doc/usb/

Drew White

unread,
Jan 18, 2017, 8:22:01 PM1/18/17
to qubes-users

Same thing, just doesn't have the "/dev/" in the text...

Thanks for the link... Aparently.
root@dom0 {folder}]$ xl block-attach {VMNAME} phy:/dev/sdc xvdr

I had to use that.

So that worked, but qvm-block doesn't.

Is this a bug in qvm-block?

Unman

unread,
Jan 19, 2017, 5:58:45 PM1/19/17
to Drew White, qubes-users
Hi Drew

Are you sure that sdc isn't already in use in dom0?
Those are the cases where I have been able to attach using xl but not
with qvm-block, and where qvm-block reports an invalid device name.

What's the output of qvm-block -l ?

unman

Drew White

unread,
Jan 19, 2017, 7:23:32 PM1/19/17
to qubes-users, drew....@gmail.com, un...@thirdeyesecurity.org


Dom0: detects drive, but no partitions are on the drive it can read or use so the system does nothing with it.

fdisk sees the drive and partitions.

So it wasn't in use at all in Dom0.

That's changed since then. I'll have to get the drive and let you know that detail.

Reply all
Reply to author
Forward
0 new messages