Help for attaching block device as cdrom in qubes

Hi,

When I attach a block device or an ISO file to a qube using the command `qvm-start --drive", I don’t know where to go find the block device in the qube. It works fine when I attach the block device as a hard disk by specifying “hd”, so that the block device is not attached by default as a CD/DVD

can anyone help me find out where to access the attached block device in the qube please?

When I type in “lsblk”, it doens’t show up in there by the way

thank you

Looks like qvm-start --drive=cdrom:... is just broken, maybe related to

If you don’t need boot from the drive, you could run

sudo losetup --find --show --read-only --sector-size=2048 your.iso

inside the qube that’s storing your .iso file, and then attach to resulting loop device through the device widget or through qvm-block. That will make it available as /dev/xvdi (or if already used: /dev/xvdj, …)

thank you for the reply rustybird

im going to have to learn what are loops devices and how to use losetup

what is the expected behavior when you attach as a CDROM a hard disk like an nvme using the command qvm-start --drive=cdrom:dom0:nvme.... qubeName?

when I attach it as a hard disk with the command qvm-start --drive=hd:dom0:nvme.... qubeName, I can access the attached partition in the qube using “/dev/xvdi”, “/dev/xvdj”, etc…

if attaching as a cdrom is working correctly for you or anyone else, would you mind telling me how you can interact with it please, since mine is bugged?

thank you

No, qvm-start --drive=cdrom:... doesn’t do anything for me either. I’m not sure how it’s supposed to behave.