I'd like to use a qemu-kvm image of Slackware Linux OS, so that user data (/home) is read/written directly from a disk partition.
The command I built is (simplified):
Code:
qemu-kvm -enable-kvm -hda slack1.qcow2 -hdb slack_swap.qcow2 -drive file=/dev/sda,media=disk,index=3
But there's an error message:
Code:
could not open disk image /dev/sda: Permission denied
There are two workarounds that I could use:
- issue the qemu-kvm command as root
- add my user to the disk group
The second option seems less insecure than the first option.
Is there any other way of doing this?
In motherboards with VT-d, can this problem be solved differently?