![]() |
I did "sudo virt-manager"- help needed - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20) +--- Thread: I did "sudo virt-manager"- help needed (/showthread.php?tid=8663) |
I did "sudo virt-manager"- help needed - Rosika - 01-20-2023 Hi all, oh dear, oh dear. I might have done something stupid and need your help and opinions :dft001:. After my fresh install of Linux Lite 6.2. I wanted to get my virtual machines running again. The images are still present on my third partition and yesterday I installed qemu-system and virt-manager . After that: Code: sudo usermod -aG libvirt rosika (to add myself to the user group libvirt). After that I rebooted the system. Now I wanted to create a new vm by importing the respective img-file, e.g. virtualdebian.img for my Debian vm. For this I employed virt-manager. Yet I couldn´t import the img-file as virt-manager complained about not being allowed to do so. In order to rectify the situation virt-manager offered me to do just that. Yet it still wouldn´t work. It didn´t have the respective rights. :023: So I looked around on the web and found here: https://askubuntu.com/questions/722034/permission-error-in-virtual-machine-manager : Quote:I had the same issue as well. I fixed it by doing the following: Hmm, I followed the instructions without doing any thinking beforehand. Such a beginner´s mistake. :dft002: I should´ve know better. There´s a rule saying not to use sudo with a gui app. But virt-manager is a gui app. For what ist´s worth the method described worked and my Debian vm could be imported and run. BUT: here are my questions: - by having run Code: sudo virt-manager - is there a way of finding out if something is amiss? - haven´t got a clonezilla backup available yet, just a timeshift backup. So I could go back in time a few days if need be... for the root partition... - ... but I would lose a lot of programmes I installed in the meantime. Any ideas or suggestions of what I should do? Many thanks for your help in advance. Many greetings Rosika :wave Re: I did "sudo virt-manager"- help needed - firenice03 - 01-20-2023 [member=49917]Rosika[/member] you did exactly as admin would want... Running a command/application with elevated access = sudo... -- I can' t think of why sudo w/ a GUI app would be an issue - one can launch a GUI with admin rights - same/same As you didn't have permissions to run prior.... Now I'd look to confirm why adding the libvirt group didnt allow those permissions - perhaps not the correct group? may be the files (img) are owned by root.. Re: I did "sudo virt-manager"- help needed - Rosika - 01-21-2023 [member=5414]firenice03[/member]: Thanks for your help. Quote:I can' t think of why sudo w/ a GUI app would be an issueThat´s good to know. :045: Well, Debian in a virtual machine now works and it can be accessed by the vm. The rights are thus now: Code: ll virtualdebian.img Curious though: somehow group isn´t displayed, it seems, just owner… ??? Thanks a lot and many greetings. Rosika :wave UPDATE: I just noticed group and owner are displayed. Couldn´t make sense of the 32768 entry, therefore the confusuion. |