LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2022, 05:57 AM   #1
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
virt-manager - anyone got a clear and working path to this


I'm aware that getting virt-manager/kvm/qemu has been extremely difficult in recent years - especially with the difference between stable (14.2) and current, and the slackbuild support over that ever-widening gap. BUT - that was then and this is now - AND now we have a stable and current being the same (yay !!!). So I checked out ponce's git builds and did a basic install of what seemed obvious - libvirt, qemu and virt-manager. And it don't work.

But I'm not sure the programs are at fault. This is most likely a PEBKAC issue. Unfortunately there doesn't seem to be much good documentation going around. Does anyone have a nice clear recipe on how to do this, right from the first installs off a clean Slackware install ?

Last edited by Mark Pettit; 02-05-2022 at 05:58 AM.
 
Old 02-05-2022, 06:13 AM   #2
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by Mark Pettit View Post
I'm aware that getting virt-manager/kvm/qemu has been extremely difficult in recent years - especially with the difference between stable (14.2) and current, and the slackbuild support over that ever-widening gap. BUT - that was then and this is now - AND now we have a stable and current being the same (yay !!!). So I checked out ponce's git builds and did a basic install of what seemed obvious - libvirt, qemu and virt-manager. And it don't work.

But I'm not sure the programs are at fault. This is most likely a PEBKAC issue. Unfortunately there doesn't seem to be much good documentation going around. Does anyone have a nice clear recipe on how to do this, right from the first installs off a clean Slackware install ?
I'll get back to you about it, ok? I'll be doing something similar the next few days, and I'll probably try to make a docs howto about it. I'll make it for 15.0 though.

I'll be making it on (ivy??) Intel Core i5 with the correct capabilities, with a custom kernel, and possibly copy the exact same thing with an official Kernel or one based on the official with necessary (??) added Kernel options (for the howto). Not been looking at the Kernel options for this yet, but I would guess the necessary ones are included in generic and huge. Please feel free to share some info about your hardware/kernel etc too.

Perhaps we can all help each others here, and make this the kvm/qemu/libvirt thread?

If at all possible, for the purpose of a howto, it would be nice if you could do it in Slackware 15.0 instead of current. Perhaps create a dualboot for the purpose.

Edit. Strike that about custom Kernel, I'll do it from the official before I get too deeply into LSM land.

Last edited by zeebra; 02-05-2022 at 06:25 AM.
 
2 members found this post helpful.
Old 02-05-2022, 06:50 AM   #3
truepatriot76
Member
 
Registered: Apr 2014
Location: California, USA
Distribution: slackware64-current
Posts: 231

Rep: Reputation: 195Reputation: 195
https://www.linuxquestions.org/quest...7/#post6324584
 
3 members found this post helpful.
Old 02-05-2022, 07:37 AM   #4
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Code:
cat /etc/slackware-version
Slackware 15.0
Code:
uname -a
5.15.19 #1 SMP PREEMPT Wed Feb 2 01:50:51 CST 2022 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux

So, we're on generic. Checking generic config, it seems that we have all that is needed not only to get qemu-kvm running, but all components and extras working (virtio drivers etc).

We always check if virtualization is present/enabled:
Code:
lscpu | grep Virtualization
Virtualization: VT-x

..and we're ready to go..
 
Old 02-05-2022, 08:25 AM   #5
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Original Poster
Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally Posted by truepatriot76 View Post
YESSIREEEEEE ....

This works. You are a true officer and a gentleman and I thank you.


Also @zeebra - I'm sure your guide will help too - there are indeed starter steps to confirm - in my case they were already satisfied. But for others they may not be.

Last edited by Mark Pettit; 02-05-2022 at 08:28 AM.
 
Old 02-05-2022, 09:00 AM   #6
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by Mark Pettit View Post
YESSIREEEEEE ....

This works. You are a true officer and a gentleman and I thank you.


Also @zeebra - I'm sure your guide will help too - there are indeed starter steps to confirm - in my case they were already satisfied. But for others they may not be.
Indeed. I'll do it anyways, and I hope you don't mind using this thread for the purpose
 
Old 02-05-2022, 04:57 PM   #7
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Rep: Reputation: 10
Quote:
Originally Posted by zeebra View Post
Indeed. I'll do it anyways, and I hope you don't mind using this thread for the purpose

I indeed hope you do do it because though it clearly works for him, it works [the link he used], it does not for me. I have it no prob Slack 14.2 so I am clearly doing something wrong.
 
Old 02-05-2022, 05:38 PM   #8
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by BAcidEvil View Post
I indeed hope you do do it because though it clearly works for him, it works [the link he used], it does not for me. I have it no prob Slack 14.2 so I am clearly doing something wrong.
I will, and I got started, but I got a bit discouraged by the "ugly" dependencies, and with all of those it will clearly be longer (step-by-step) as well.
I'll see if I can't put together a "staged" installation, and also perhaps make the dependency stages available as slack-packages or something. But it takes a bit of time and experimentation to get that just right, although the pointer of truepatriot was extremely helpful.
 
Old 02-05-2022, 05:43 PM   #9
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Rep: Reputation: 10
Quote:
Originally Posted by zeebra View Post
I will, and I got started, but I got a bit discouraged by the "ugly" dependencies, and with all of those it will clearly be longer (step-by-step) as well.
I'll see if I can't put together a "staged" installation, and also perhaps make the dependency stages available as slack-packages or something. But it takes a bit of time and experimentation to get that just right, although the pointer of truepatriot was extremely helpful.
Trust me, you do you and we will sit back and relax and wait.

I had nothing "important" on my Slack 14.2 except the 2 VM's so I wiped it and went 15 and baaaam, I am just having dependence breakdown. Again, I know it is me but "me" needs help.

So for now, back to 14.2.
Thank you my man.
 
Old 02-06-2022, 12:42 AM   #10
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Original Poster
Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally Posted by BAcidEvil View Post
I indeed hope you do do it because though it clearly works for him, it works [the link he used], it does not for me. I have it no prob Slack 14.2 so I am clearly doing something wrong.
I would also like to see a recipe that works from a clean install. As I said, using the order and builds suggested did work for me, but this was after I had tried myself first - and thus there was already some material and packages on my box. I also recall having to fix a group in a script, changing the name to "users". The slackbuild that suggested it would do that automatically seems to have missed that particular file - I think it was /etc/libvirt/libvirtd.conf. But again, it could have been me :-)

Also, as rc scripts are added (and rc.local needs to call them), a reboot is also required at some point. I'm not in a position to try this again from scratch. I only have this one laptop available and it's my work machine. I can't imagine that doing it a VM would be useful ... can you even run a VM inside another VM ?????
 
Old 02-06-2022, 06:11 AM   #11
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by Mark Pettit View Post
I would also like to see a recipe that works from a clean install. As I said, using the order and builds suggested did work for me, but this was after I had tried myself first - and thus there was already some material and packages on my box. I also recall having to fix a group in a script, changing the name to "users". The slackbuild that suggested it would do that automatically seems to have missed that particular file - I think it was /etc/libvirt/libvirtd.conf. But again, it could have been me :-)

Also, as rc scripts are added (and rc.local needs to call them), a reboot is also required at some point. I'm not in a position to try this again from scratch. I only have this one laptop available and it's my work machine. I can't imagine that doing it a VM would be useful ... can you even run a VM inside another VM ?????
Well, that's what I'll do. Just trying to do it systematically and write it all down in the right order.

Anyways, both qemu and libvirt can be installed on Slackware 15 without further ado (but don't yet!). The main "problem" here is virt-manager which need some unsavory dependencies, and dependendencies of dependencies. Most of patriots list are those things. However, before you install qemu you have to consider to compile it with support for XYZ (./configure to have a look), but in particular spice.
Just a quick guess of that list, additional ones for qemu itself are libnfs, snappy, vde2, and virglrenderer, device-tree-compiler, usbredir, but I hate the idea of snappy, so I'll see if it's not possible to do without.
 
Old 02-06-2022, 10:46 AM   #12
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Ok, so I think I have the order of things more or less figured out for testing (the order), so long as nothing in stage2 has dependencies that we don't have it should be fine:

Edit. These stages are fine, and there is no particular order inside the stages. I do them alphabetical

Quote:
stage 1 (dependencies for stage2)
https://gitlab.com/libosinfo/libosinfo/-/tags/v1.9.0
https://gitlab.com/libosinfo/osinfo-.../-/tags/v1.9.0
https://gitlab.com/spice/spice-protocol/-/tags/v0.14.3

stage 2 (virt-manager basic dependencies, libvirt optional dependencies, qemu optional dependencies)
https://github.com/dgibson/dtc/releases/tag/v1.6.1 (can be built after qemu according to xiling and can be dropped unless you find you need it after)
https://github.com/sahlberg/libnfs/r...g/libnfs-5.0.1
https://gitlab.com/libosinfo/osinfo-db/-/tags/v20210202
https://github.com/numactl/numactl/releases/tag/v2.0.14
https://www.spice-space.org/download.../spice-server/ (indirect link)
https://www.spice-space.org/download...0.15.0.tar.bz2 (direct link)
https://gitlab.com/spice/usbredir/-/tags/usbredir-0.9.0
https://github.com/virtualsquare/vde-2 (since vde2 release is ancient, we take master from today 06-feb-2022)
https://github.com/freedesktop/virgl...ases/tag/0.9.1
https://github.com/lloyd/yajl/releases/tag/2.1.0 (it would be best to skip this, but for now we include it)

Stage 2.1 (optional)
https://github.com/google/snappy/releases/tag/1.1.8 (many problems with this, so placing it here, could also be 4.1)

Stage 3 (libvirt)
https://libvirt.org/sources/
https://libvirt.org/sources/libvirt-8.0.0.tar.xz

Stage 4 (virt-manager dependencies)
https://gitlab.com/libvirt/libvirt-glib/-/tags/v4.0.0
https://github.com/libvirt/libvirt-p...ses/tag/v8.0.0
https://download.gnome.org/sources/gtk-vnc/1.3/
https://www.spice-space.org/download/gtk/ (indirect link)
https://www.spice-space.org/download...tk-0.39.tar.xz (direct link)

Stage 5 (Qemu)
Stage 6 (virt-manager)


qemu says:
Run-time dependency libnfs found: NO / libnfs support: NO
Run-time dependency spice-protocol found: NO / spice protocol support: NO
Run-time dependency spice-server found: NO
Run-time dependency virglrenderer found: NO / virgl support: NO
vde support: NO
snappy support: NO

libvirt says:
Library numa found: NO (numactl: NO)
Run-time dependency yajl found: NO (yajl: NO)

virt-manager lists:
libvirt-python
libosinfo

Last edited by zeebra; 02-10-2022 at 02:51 PM.
 
Old 02-06-2022, 05:35 PM   #13
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by BAcidEvil View Post
I indeed hope you do do it because though it clearly works for him, it works [the link he used], it does not for me. I have it no prob Slack 14.2 so I am clearly doing something wrong.
Being a fair bit bit into the process and documenting it, that's not really surprising, considering just how many things that potentially can go wrong in that process. There are some quirky ways of doing things.

Sadly the documentation is already huge. I'm kind of wondering how I can make that clean and usable for a howto. I do hope that someone can use the documentation and put together a staged build. I'm not really much into building acceptable packages aside for my own use. But so far, being underway, I think the stages above should be fine in that order. But time will tell.
 
Old 02-07-2022, 03:02 PM   #14
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
So far so good, but the document is getting big and it's messy. Might take some time to clean that up.

Last edited by zeebra; 02-07-2022 at 10:38 PM.
 
Old 02-08-2022, 06:30 PM   #15
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
spice-protocol should be in stage 1, not stage 3 (obviously..)

Don't use these links or tags on gitlab if you want to build without trouble.
https://gitlab.com/spice/spice/-/tags/v0.15.0
https://gitlab.com/spice/spice-gtk/-/tags/v0.39

You can find the releases on the somewhat chaotic download page of:
https://www.spice-space.org/download.html

Last edited by zeebra; 02-08-2022 at 08:24 PM.
 
  


Reply

Tags
kvm, libvirt, qemu, virt-manager



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Install and Use virt-manager Virtual Machine Manager in Ubuntu and Other Linux LXer Syndicated Linux News 0 11-11-2020 10:12 PM
[SOLVED] installing virt-manager and virt-viewer on desktop for managing remote server yvesjv Slackware 4 04-24-2019 03:00 PM
Virsh/Virt-Manager/Virt-Install broken after upgrade to Xubuntu 17.10 Zabzoo Linux - Desktop 2 02-01-2018 08:05 AM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration