LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-05-2022, 03:41 AM   #1
tosaikiran
LQ Newbie
 
Registered: Nov 2021
Posts: 20

Rep: Reputation: Disabled
Install virt manager in LFS


Hi,

I have completed LFS-11.0. I have installed qemu, from BLFS. I would like to know how to install virt manager in LFS, so that I can have a GUI to create VMs. I have looked at several posts on the internet. But I am not able to find a solution for that. Could someone help me out here.

Thanks in advance for your time and help.

Regards,
Sai Kiran.
 
Old 02-05-2022, 09:56 PM   #2
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 54

Rep: Reputation: 37
qemu is only an emulation layer, you need to install KVM to use libvirt and you have to have the kernel extension modules running for it to work.

Did you build your own kernel, and if you did, did you enable KVM ?

https://www.linux.com/training-tutor...-virt-manager/
 
Old 02-06-2022, 10:54 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by Fearless Fred View Post
qemu is only an emulation layer, you need to install KVM to use libvirt and you have to have the kernel extension modules running for it to work.

Did you build your own kernel, and if you did, did you enable KVM ?

https://www.linux.com/training-tutor...-virt-manager/
This has nothing to do with the OP the OP is asking about a GUI to manage virtual machines NOT infor on qemu etc, please take the time to read the posts properly before replying.

Try this:
https://virt-manager.org/
 
Old 02-06-2022, 07:12 PM   #4
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 54

Rep: Reputation: 37
I did read it, and without the first step of having libvirt already installed and working, installing virt-manger would do nothing..
 
Old 02-06-2022, 08:42 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
The dependencies listed at slackbuilds.org may help in what is required.
https://slackbuilds.org/repository/1.../virt-manager/
 
Old 02-07-2022, 04:37 AM   #6
tosaikiran
LQ Newbie
 
Registered: Nov 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for your help. I looked at the dependencies and I am right now building all those dependencies from source on LFS. It will take time as there are other dependencies for libvirt dependencies. I will install them all and hopefully I will be able to install virt manager. I will update the same here.

Regards,
Sai Kiran.
 
Old 02-09-2022, 03:39 AM   #7
tosaikiran
LQ Newbie
 
Registered: Nov 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
Hi Keith,


I have installed the dependencies for virt manager in my LFS system. So far so good. But I get the following error, when I start the virt-manager. "Namespace GTK not available". GTK is present in the system. One of the forums online suggested to install gir-gtk software. I have tried to find the source code for it but I am not able to find it. Could you please let me know if that's the packaage needed to fix the error? If yes, could you point me to the source code.

Thanks,
Sai Kiran.
 
Old 02-09-2022, 04:02 AM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
gir is is gobject introspection here:
https://www.linuxfromscratch.org/blf...ospection.html
 
Old 02-09-2022, 04:29 AM   #9
tosaikiran
LQ Newbie
 
Registered: Nov 2021
Posts: 20

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks Keith.

I have installed it. But it is in /usr/lib folder. But the python script is looking for it in /usr/lib64 folder. I am able to get around that issue. virt-manager is coming up . I see the GUI. But it says that I need to install libvirtd service. Do I have to compile libvirtd service or is it part of some other software?

Thanks,
Sai Kiran.
 
Old 02-09-2022, 05:16 AM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
that sound like a systemd thing, sorry can't help you there, if you are using systemd have you compiled virt-manager for systemd some apps need slightly different compile options.

as for the folder thing just check that /etc/ld.so.config includes both /usr/lib and /usr/lib64 ( i personally sym link /lib and /usr/lib to /lib64 and /usr/lib64 respectavly )
 
  


Reply

Tags
lfs, qemu kvm, 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 > Linux From Scratch

All times are GMT -5. The time now is 09:36 AM.

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