01-20-2023, 02:30 PM
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:
(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/p...ne-manager :
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 have I done something VERY stupid that cannot be set straight again?
- 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
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/p...ne-manager :
Quote:I had the same issue as well. I fixed it by doing the following:
Run virt-manager with sudo:
Code:sudo virt-manager
Attempt to create your VM. When the error dialog appears, click Yes to correct the error.
What this does is change the user and group of your image file (to libvirt-qemu:libvirt-qemu if that's your virt-manager user).
When you get to the next step, cancel the creation process and close virt-manager.
Now relaunch virt-manager without sudo and attempt to create your VM again.
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