0

As it is on the title I want to add a physical partition to my VM without having root privilege. Is it possible from Linux and how should I do this by using only qemu-system_x86-64 ??

Dave M
  • 4,514
  • 22
  • 31
  • 30
xala
  • 1
  • 1

2 Answers2

0

Short answer: No.

Longer answer: Disks on Linux are usually (may be distro dependent) owned by the group "disk" and user root. The disks are usually set read/write by the group. So if your root user adds you to the group disk, you should be able to do it.

Unfortunately, if they do that, your user will have read/write on all disks, so it's probably not acceptable if you don't already have root access.

Gordan Bobić
  • 971
  • 4
  • 11
  • It is possible to set up udev so it will make another group-owner for the node of concrete device. So the proper answer is "yes, but tricky". – Nikita Kipriyanov May 25 '22 at 17:03
-2

You can use -hda /dev/disk/by-id/xxxxxxx to attach the Windows physical drive.

zinger
  • 97
  • 3