Install Virt-Manager 3.2 |Trisquel 9 | Qemu | Qemu-Kvm|

28 respostas [Última entrada]
Gnu-Bro
Desconectado
Joined: 12/12/2020

Hello everyone !

I would like to share my experience with you installing the new version of Virt-Manager 3.2, maybe it will be useful for someone!

I prefer to use a proven and stable applications from the repository Trisquel ! At the moment it is Vrt1.5.1-0ubuntu1.2 but I wanted to test the new features of this version .

I installed on kernel 5.10.14-gnu and 4.15 generic.

My goal was to install and check that virt-manager works, during the installation process I found different errors that prevented the installation. Below I listed the errors and their solutions ! I will specially write in detail, so that it is understandable.

I downloaded the file here https://virt-manager.org/ ( GNU GPL v3+ ) or here https://github.com/virt-manager/virt-manager ( sudo git clone https://github.com/virt-manager/virt-manager.git )

Install the software into /usr/local (usually), you can do. I installed it into C/Downloads

2. Unpack sudo tar xf virt-manager-3.2.0.tar.gz in the directory you downloaded it to. After unpacking you will have >> virt-manager-3.2.0 directory.

Install it additionally for correct work of the program, maybe you have already installed :

sudo apt install qemu qemu-kvm libvirt-daemon-system python3-docutils python3-distutils gir1.2-libvirt-glib-1.0 libosinfo-1.0-dev python3-libvirt python3-libxml2 gir1.2-gtk-vnc-2.0 gir1.2-spiceclientgtk-3.0

3. Go to the directory virt-manager-3.2.0 and install sudo ./setup.py install ( not recommended to use sudo python3 ./setup.py install )

Errors and solutions .

1. Error No module named'docutils .command sudo apt install python3-docutils

2. Error No module named 'distutils .command' sudo apt-get install python3-distutils

3. Error Namespace LibvirtGLib not available sudo apt install gir1.2-libvirt-glib-1.0

4. Error Namespace Libosinfo not available sudo apt install libosinfo-1.0-dev

5. Error No module named 'libvirt sudo apt install python3-libvirt

6 Error No module named 'libxml2' sudo apt install python3-libxml2

7. Error Namespace GtkVnc navailable sudo apt install gir1.2-gtk-vnc-2.0

8. Error opening Spice console, SpiceClientGtk missing sudo apt install gir1.2-spiceclientgtk-3.0

9. Error --location URL, --cdrom CD/ISO, --pxe, --import, --boot hd|cdrom|… sudo apt purge Libvirt-bin

10. Error TypeError: Argument 1 does not allow None as a value cd /usr/share/virt-manager/virtManager/device , then change the addstorage.py file . Find the line (313) removable = disk.removable and change it to removable = bool(disk.removable) Read more about this error here https://github.com/virt-manager/virt-manager/issues/188

Hope this helps someone !

Remove all the distributions, leave only Trisquel and you will be under the protection of the Celtic gods.)))

nadebula.1984
Desconectado
Joined: 05/01/2018

You may need latest pipenv, but it's not available in Trisquel.

You may also try Debian testing to support latest packages. Avoid enabling contrib/non-free repository and installing non-free firmware and your system should be free/libre.

Gnu-Bro
Desconectado
Joined: 12/12/2020

Hello dear nadebula.1984

Thank you for your response.
All of the above programs except virt-manager 3.2 were downloaded from the Trisquel repository .

If everything is installed as I wrote, it will work! This instruction works !!!

Globally I agree with you and I wrote that it is better and more correct to use virt-manager from the repository.

The new version of Virt-manager 3.2 has a lot of useful features, let's wait for the updated version 3.2 to appear in the Trisquel repository!

nadebula.1984
Desconectado
Joined: 05/01/2018

I've been using virt-manager 3.2 for a long time, as soon as it became available in Debian sid (unstable).

If you want to wait it to be included in Trisquel, you may still need to wait for 4-5 years, if Trisquel is still based on Ubuntu LTS, and if it is still developed so slowly.

virt-manager 3.2 is currently in Debian testing, which will be included in Debian 11. Therefore it will be included in Ubuntu 22.04 LTS. Therefore it will be included in Trisquel 11.

Gnu-Bro
Desconectado
Joined: 12/12/2020

Hi dear nadebula.1984

I posted the instructions for those users who will be faced with bugs, and do not want to look for answers in other forums, to waste their time. I hope it helps them.)

The topic of virtual machines is very interesting and extensive and popular. I think that if each of us contribute according to his abilities, Trisquel will become more popular! I like Trisquel.)

@nadebula.1984 if you are also an experienced virtual machine user, you can post information about your experiences (if you like) A topic like: VPN + TOR + Virt-Manager or something that you yourself think will be useful to the user.

Magic Banana

I am a member!

Desconectado
Joined: 07/24/2010

Notice the existence of https://trisquel.info/wiki where your instructions would remain more visible after the forum buries this thread. For a better presentation, please see https://trisquel.info/en/filter/tips

Gnu-Bro
Desconectado
Joined: 12/12/2020

Hello dear Magic Banana.

Please tell me if I understand correctly that you are asking me to revise the manual based on these rules >> https://trisquel.info/en/filter/tips ?

If you mean it, how to edit my post? I did not find this button?

like this?

Trisquel GNU/Linux

Magic Banana

I am a member!

Desconectado
Joined: 07/24/2010

What I am suggesting, before all, is that you contribute to Trisquel's documentation. It is a wiki: you can edit it. And, yes, https://trisquel.info/en/filter/tips explains how to get a nice presentation, both in the wiki and in the forum.

Gnu-Bro
Desconectado
Joined: 12/12/2020

Dear Magic Banana

I understand you, I am ready to do it again, please tell me how to edit my post (if possible)? Or where to write it again? Please give me a link.

Trisquel GNU/Linux

Magic Banana

I am a member!

Desconectado
Joined: 07/24/2010

I gave it to you: https://trisquel.info/wiki

https://trisquel.info/en/wiki/all-manuals lists all manuals. https://trisquel.info/en/wiki/virtualization-using-kvm is listed there and it looks appropriate to edit that page and not to create a new manual. Nevertheless, I am not knowledgeable when it comes to virtualization: I may be wrong.

panties
Desconectado
Joined: 02/02/2021

I have just installed virt-manager. But it was not 3.2, but 1.5.1. How can I upgrade it to 3.2? Thanks very much.

nadebula.1984
Desconectado
Joined: 05/01/2018

Switch a (semi-)rolling distribution like Debian testing/unstable and you always have latest packages.

Don't load non-free firmware and don't enable contrib/non-free repository and your system should be free/libre.

panties
Desconectado
Joined: 02/02/2021

I see. Thank you.
But my boss force us to use Trisquel, unfortunately. Because we don't have confidence that we keep our systems free. I mean, perhaps someday, some of us will eventually enable that contrib/non-free repository by accident or error or something if we used Debian. No, I have not confidence. I must install something non-free... someday. And I don't trust github. OK, so there is no way to install 3.2 from Trisquel repository. OK.

nadebula.1984
Desconectado
Joined: 05/01/2018

Even if you use Trisquel, it is still quite possible to install non-free software on it. A free/libre distribution should always respect users' Freedom Zero.

Here is a contradiction. If you always want latest packages, then a fixed-releasing distribution is not suitable, especially LTS distribution. However, I don't see many (semi-)rolling free/libre (i.e. FSF-endorsed) distribution. Hyperbola/Parabola seems to be based on certain snapshots of Arch, so it's no longer rolling.

panties
Desconectado
Joined: 02/02/2021

> Even if you use Trisquel, it is still quite possible to install non-free software on it. A free/libre distribution should always respect users' Freedom Zero.

It seems so. Dropbox was installed on our Trisquel systems.

> If you always want latest packages,

I don't really mind using old packages but secrity-wise, is it OK? including about old kernels.

Magic Banana

I am a member!

Desconectado
Joined: 07/24/2010

Security fixes are backported. They are most of the regular updates you get. The last number in linux-image-4.15.0-134-generic, 134, is incremented after each such update of Trisquel 9's default kernel. So there has already been 134 updates since Ubuntu 18.04's original kernel (Trisquel 9 is based on Ubuntu 18.04). As long as you switch to Trisquel 10 before Trisquel 9 reaches its end of support, in April 2023, you should be fine security-wise.

panties
Desconectado
Joined: 02/02/2021

Oh, that's what you call backporting. I see. Shit, so I have to keep updating linux-libre. OK, than you.

Gnu-Bro
Desconectado
Joined: 12/12/2020

Hello Panties

I agree with nadebula.1984 that you should use the Virt-Manager from the Trisquel repository, but if you need Virt-manager 3.2 for some reason you can use my instructions. If you don't trust GitHub you can download the new version here >> Virt-Manager

sudo apt install virt-manager

Trisquel.png
panties
Desconectado
Joined: 02/02/2021

Hello Gnu-Bro

> I agree with nadebula.1984 that you should use the Virt-Manager from the Trisquel repository,

But my understanding is there is no 3.2 in the Trisquel repository, right?

> you can download the new version here >> Virt-Manager

While I was trying to copy this above your sentence from your post, I accidentally clicked that Github link and Tor Browser quickly opened the link. It was really quicker than the usual latency of this browser. I could not stop it. This is a good example. Like this, someday some of us must install something non-free if we used Debian. I think there is no necessity that you make the link on the word Github. It could be acknowledged as an ad.

However, I think that I might be able to trust Virt-manager.org. I will ask my boss about whether we should install it from their website. My opinion and his usually differ. And it always depends on his decision, not mine. I am merely an adviser. Anyway thank you very much. Have a good day.

Malsasa
Desconectado
Joined: 12/01/2016

Hi Gnubro, thanks for sharing. I can confirm to you that AQEMU works too on Trisquel and it is even more easier to use than Virtmanager. And thanks for sharing my table above!

Gnu-Bro
Desconectado
Joined: 12/12/2020

Hello Malsasa

Glad we met at last)) I just wanted to say thank you so much for your beautiful blog and populating Trisquel ! Writing articles is not as easy as it seems at first glance !) Many interesting and useful articles on your blog!
The topic of virtual machines is very interesting and popular. for example on GitHub there is an interesting configurator https://github.com/doomedraven/Tools/blob/master/Virtualization/kvm-qemu.sh , which allows you to create a virtual machine and hide it using another configuration.

Hello @Panties Virt-Manager in the Trisquel repository has Version 1:1.5.1-0ubuntu1.2 works fine ! You can also use @Malsasa's advice !
You can create XML files with VIRSH ! More info here >> https://libvirt.org/formatdomain.html

panties
Desconectado
Joined: 02/02/2021

For your instance, my boss decided to install Dropbox. I think he meant VirtualBox though, we didn't have good words not to injure his reputation. He has a bit quick temper. I just advised him that it might be proprietary. But he strongly believes it is free software because it is GPLed. I am not sure if it is free or non-free. But anyway Dropbox will be installed on our machines in the near future.

nadebula.1984
Desconectado
Joined: 05/01/2018

Since your boss decides to force you to install non-free software, you needn't to obey whatever s/he says, either. Just use whatever is suitable. For example, you can install Debian testing with MATE, but try to migrate Trisquel's visualization customization to it so it just looks like Trisquel.

panties
Desconectado
Joined: 02/02/2021

No, my boss ordered my colleague to install Dropbox, who is our sysadmin. We are not allowed to install anything on our Trisquel systems. Only the sysadmin is allowed to install something on those systems and our boss ordered him to install Dropbox. I am just an adviser. Yeah... So I did not install the non-free software, but my colleague did. The sysadmin asked my advice which software he should install, Dropbox, or VirtualBox. I advised him to install VirtualBox, but he decided to install Dropbox. That is understandable. He could be fired if he installed VirtualBox instead of Dropbox. Yeah, I hate my job but here is my working place.

> Since your boss decides to force you to install non-free software, you needn't to obey whatever s/he says, either. Just use whatever is suitable. For example, you can install Debian testing with MATE, but try to migrate Trisquel's visualization customization to it so it just looks like Trisquel.

I don't understand what you want to say. If I did not obey him, I would be fired. Why I needn't to obey what our boss says because our boss forces us to install non-free software? Or do you mean that we should disguise Dropbox with something?

Magic Banana

I am a member!

Desconectado
Joined: 07/24/2010

VirtualBox instead of Dropbox

That makes no sense. Besides having names ending with "box", those programs have nothing to do with each other. They fill entirely different purposes.

panties
Desconectado
Joined: 02/02/2021

Do you mean that I should have advised the sysadmin to install Dropbox instead of VirtualBox?

Magic Banana

I am a member!

Desconectado
Joined: 07/24/2010

I mean that whatever the need, if a file hosting service (such as Dropbox) fulfills it, then x86 virtualization (such as provided by VirtualBox) does not, and reciprocally. From a freedom point of view, none of those two programs should be installed.

panties
Desconectado
Joined: 02/02/2021

The thread of the story is getting hard to understand.

lutes
Desconectado
Joined: 09/04/2020

> Glad we met at last))

How cute. A mating dance in the main forum.

> and populating Trisquel !

Now that's fast forward.