QaidVoid / Complete-Single-GPU-Passthrough

Single GPU VFIO Passthrough Guide
779 stars 38 forks source link

For people that have permissions problems #29

Closed moacirrf closed 1 year ago

moacirrf commented 1 year ago

Thanks for you job, works very well. I'm a Manajro user, i had permission problems because some commands in start.sh and stop.sh needs to run as root.

So i need to run my VM as root but the xml configuration of VM is on normal user folder.

So when i want to enter on win10 a run on terminal:

sudo virsh create /home/normal_user_name/.config/libvirt/qemu/win10.xml

thanks

QaidVoid commented 1 year ago

As long as you're in libvirt and input group, you should be able to run the VM as normal user even if the hooks have commands that require root access.

Can you run VM without libvirt hooks as normal user?

moacirrf commented 1 year ago

As long as you're in libvirt and input group, you should be able to run the VM as normal user even if the hooks have commands that require root access.

Can you run VM without libvirt hooks as normal user?

My user is on input and libvirt groups. I can run as normal user all other VMS that i don't configure hooks, but with hooks i can't start and i receive a blackscreen, so i type CRTL+ALT+F2 and i can login again on terminal, but if i run as root passthrough works fine.

But no problem, I just decided to share this information, so people don't give up, because it could be that small detail. thanks

stale[bot] commented 1 year ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.