oh and add yourself to libvirt and kvm groups
I donāt have any games on Steam. The two games are old BF2 mods that are now standalone games free and Fall out 4 and Il2. I was playing this game with Native linux support, but the back ported it to Open GL 3 from 4 for MAC and it has sucked ever since. They had a experimental Vulkan client that was pretty good up until they added this ray tracing scheme that you canāt turn off and now my RTX 2080 canāt handle it any more. I was thinking about getting an auxillary HBM2 device to help it, but havenāt. Iāll try this in the mean time on Microsoft once I get Linux Nvidia proprietary driver reinstalled for 3d hardware acceleration.
It didnāt work until I ran VMM with root privilages. It has to use these auxillary drives. That is why I donāt use STEAM becasue I donāt have room for that on / or /home for it and I canāt put it anywhere else.
But now I have a 222GB MS partition.
Okay. I hope you can get it working as you want. Just be aware of the limitations.
Well yeah. I havenāt tried anything like this, but thisāll be awesome if it works out, but for now I am stuck because current nvidia drive is broke with current kernel. Iāll have to wait for next kernel or nvidia driver.
Well yeah. I havenāt tried anything like this, but thisāll be awesome if it works out, but for now I am stuck because current nvidia drive is broke with current kernel. Iāll have to wait for next kernel or nvidia driver.
And then there is the Xeon phi and the fact that ms vmm only uses 4 threads, but mostly that wonāt be a problem just annoying.
Sorry. I missed how you actually fixed the permission issue.
If you do not mind to shareā¦
I entered sudo virt-manager
I let that run for like a day before I shut down and attempted to install Nvidia driver 450.57. It didnāt work and I am still on open source. Microsoft nor Linux is able to use rtx 2080.
I then added my user to kvm group via sudo usermod -G kvm -a $USER sudo usermod -G libvirt -a $USER
Now I am unable to turn it back on. With or w/o root permissions. Using file manger I learn that groups donāt have read/write privileges to the storage device⦠So I have to Google how to do that with command line. Hopefully that will work.
I entered sudo virt-manager
I let that run for like a day before I shut down and attempted to install Nvidia driver 450.57. It didnāt work and I am still on open source. Microsoft nor Linux is able to use rtx 2080. In MS things will run, but at 15 fps, and not in Linux. I am able to watch videos surf the web and navigate just fine though. Same game, two different clients.
I then added my user to kvm group via sudo usermod -G kvm -a $USER sudo usermod -G libvirt -a $USER
Now I am unable to turn it back on. With or w/o root permissions. Using file manger I learn that groups donāt have read/write privileges to the storage device⦠So I have to Google how to do that with command line. Hopefully that will work. I saw something with --> chmod +rwx
Append āāno-cc-version-checkā to the installer option should work now.
Iāll try it when I get home, but when I follow the prompts when installing I always hit ignore. The problem I am having is dkms module fails to build. I havenāt looked at logs yet. So it installs with out dkms, but crashes. I have to uninstall and go back to Nouveau.
I tried yesterday it worked with dkms.
It came on after second successful attempt. Crashed the first time.
I ended up deleting it and Iāll try to get one going w/o using root permissions, but it just wonāt let me despite having ownership of the file system despite adding my username to kvm & libvirt group.
Have this a read:
,but I am having difficulties here.
ryan@R-BP-CL-GLBWRMRSCCNTR/ $ sudo chown -hR ryan /run
chown: cannot access ā/run/user/1000/gvfsā: Permission denied
In that directory is the āStorageā drive I am working on so if this doesnāt do it. IDK That thing at the end is negligible, but from here I can make sure everything is part of kvm and libvirt group.
It still return permission Denyed.
root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage # chgrp libvirt win10.img root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage # chgrp kvm win10.img root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage # chgrp qemu win10.img root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage # chgrp ryan win10.img root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage # chown qemu win10.img root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage #
nothing doesnāt work. Permission Denied
more.
root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage # chmod ug+wx win10.img root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage # chown ryan win10.img
Even this doesnāt work.
root@R-BP-CL-GLBWRMRSCCNTR/run/media/ryan/Storage # chmod ugo+wx win10.img
Now what I donāt get is: How did I create something, that canāt be used. And if this software is available to use. How do I use it?
sudo usermod -aG kvm $USER && sudo usermod -aG libvirt $USER
sudo umount run/user/[your user id]/gvfs/[drive name here]
Or
sudo umount run/media/[ryan]/[Storage]
Or graphically applications>utilities>disks
find the drive and unmout. I think it is square for STOP but double check that so you donāt erase it!
Then in terminal run lsblk
and find your drive name
Then
sudo mkdir /mnt/mypool
sudo mount /dev/[mydrivename] /mnt/mypool
sudo chown -R ${USER}:kvm /mnt/mypool
You should also be able to add some home directories in virt-manager now without any further changes, and without sudo! (such as ~/Downloads for easily finding isos)
Oh and remove old pool in virtmanager and re add as /mnt/mypool
Drives automounted in gnome do not give system and block access bits that are needed for execution and/or qemu/kvm!
Sorry for revisiting this thread. I tried kvm virt-manager for the same type VM install and I getting the same errors as Ryan, running as user, not sudo and trying to install, dedicating a partition formatted as ext4 as storage pool.
Would you be so kind as to tell what exactly all these instructions are to add user (myself) to these groups?
Also, since kvm was installed what caused the user was not added to these groups as part of kvm install⦠Just to understand all thisā¦
Thanks and Regardsā¦
sudo swupd bundle-add kvm-host \
&& for group in kvm libvirt; do sudo usermod -G ${group} -a $USER; done \
&& sudo mkdir -p /etc/profile.d/ \
&& echo 'export LIBVIRT_DEFAULT_URI="qemu:///system"' | sudo tee /etc/profile.d/libvirt.conf \
&& sudo systemctl enable libvirtd --now \
&& reboot
Not every use case is graphical desktop usage and linux package install scripts almost never assume the user installing the package is supposed to be the one using the package. For instance, If I install this on 50 separate hosts using ansible I may want a different user for each machine applied to the group, or in some cases I may only want to allow root or superuser to access.
I see. Thanks again.
Greatly appreciated.
Great stuff again, Kevin.
Thanks a lot!