quickemu icon indicating copy to clipboard operation
quickemu copied to clipboard

feat: add an option to pass an entire raw disk

Open dsancheznet opened this issue 11 months ago • 2 comments

I'd like to pass an entire hard disk to a Sonoma virtual machine. In virtual-machine-manager I use the following code:

<disk type='block' device='disk'>
  <driver name='qemu' type='raw' cache='none'/>
  <source dev='/dev/disk/by-partuuid/d8b63353-34n6-6587-ac07-810mdf36d544'/>
  <target dev='vdb' bus='virtio'/>
  <boot order='2'/>
  <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
</disk>

How could I accomplish that with quickemu?

Best regards D.Sánchez

dsancheznet avatar Mar 06 '24 18:03 dsancheznet

Isn't this same as #726?

zen0bit avatar May 01 '24 05:05 zen0bit

No, I did not explain correctly, I'm afraid.

I don't want to use a qcow2 disk but a raw device ( a passthrough ) such as /dev/sda or /dev/sdb... As if the device were connected bare metal.

Best regards

dsancheznet avatar May 04 '24 20:05 dsancheznet

Sadly, this is not in scope for Quickemu as it is designed to be run by unprivileged users. Connecting to block devices of attached disks requires privileged access.

flexiondotorg avatar May 10 '24 00:05 flexiondotorg