Avatar of projects
projects
 asked on

Centos7 - KVM manager with X11

On production servers, I don't want to install X11 but sometimes, we need to give admins a GUI. Some admins are simply better with GUIs while others are better at CLI.

Searching the net for a solution isn't leading me to anything which seems all that simple to install and use so thought I would ask here as I am sure there are others who want a low resource cost GUI solution to manage VMs.
VirtualizationCloud ComputingLinux

Avatar of undefined
Last Comment
Duncan Roe

8/22/2022 - Mon
Duncan Roe

Providing the network is up, you can use an xterm on a node that doesn't have an X server and specify the DISPLAY to be on a node that does (maybe the VM host). I do this from my firewall and also from  my cygwin installation on a Windows laptop.
I leave xauth enabled on the target display and use an expect script to authorise the system I'm using - can post if you would be interested (it uses rsh but I guess ssh should work)

As well as xterm, you could use any installed X application - I guess that's what your admins want to do?
projects

ASKER
By node, you mean one of the vms running on the host? Installing X11 on that and using it to manage the vms? The overhead of a vm running X11 would probably end up being even more load on the server than simply installing X on the host?
Duncan Roe

No I meant install X on the server (what I called the VM host).
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
projects

ASKER
I'm confused. I'm trying to avoid installing X on a production host, looking for something lighter.
projects

ASKER
Duncan Roe

If your admins need a GUI, you will have to install X somewhere. Anywhere will do - a laptop for instance. You just need to ensure that the node running X is visible from all nodes that want to access it.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
projects

ASKER
The host is in a remote data center to us, no local access.
Duncan Roe

I don't understand why that is a problem. By visible, I meant visible over the network. It would be preferable to have network speed better than dial-up, although dial-up will work.
projects

ASKER
I didn't say it was a problem, I'm just letting you know that. You said install X anywhere but that doesn't make any sense to me because I don't want X on the host. That is the point of the post, wanting something VERY light on the host to manage vms in a graphical manner.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Duncan Roe

You have the graphical management software (whatever it is) on the host but you set its DISPLAY environment to point to your laptop (or wherever you have an X server running). There have to be enough X libraries installed on the host to support the GUI: I don't count that as "installing X" - do you?
projects

ASKER
So you're saying you don't need to run X on the host, just the libraries?
That's an interesting idea. In all the stuff I've read, I've not come across anything like that.
Can you provide any more information?
Duncan Roe

Nothing to it really. Just ... do it

You could try ldd on the GUI in a regular X environment to see what libraries it needs
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
projects

ASKER
Sorry, you're talking in riddles to me. Can you give me a little more details please, this isn't something I've done before. 'try ldd'? Do you mean try running ldd from the command line on a server which has X installed? I don't have one. I've never used gui.
projects

ASKER
It makes no sense to me. If Linux wants to offer virtualization and give an alternative to VMWare, there must be a tiny footprint, low resource use graphical interface as well as cli methods.

I can't imagine people are installing the whole X11 package just for that. There must be something out there, LAMP based even.

http://www.ovirt.org/Home - Overkill?
Duncan Roe

Now you've confused me.
You said in the original Q: "sometimes, we need to give admins a GUI". So ... just what do they want to use?
And on which system(s)?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
projects

ASKER
If you are familiar with VMWares ESX web based interface, then that is what I mean. That interface is a small footprint, low resource use tool to manage the host.

I am trying to find something similar for Centos kvm management. There are lots of tools but most seem to require X11 to be installed.
Duncan Roe

I only ever used the full VMWare workstation GUI.
The X11-dependent tools clearly require (some of) X11 to be installed. On my Slackware systems, X11 Server is a different package from X11 libraries, so on e.g. the router I only install the latter.
By "small footprint", do you mean disk space used (by installed X11 or other packages) or RAM/CPU used by running them?
Even if you had no objection to doing it, how would it help to run an X server on your server that is miles away? You want to run an X server on the PC in front of you. Then you need to do 2 things

1. Tell the remotely running GUI app what is its display server

Either set the DISPLAY environment variable, or include a --display argument on the command line that starts the app

2. Ensure the X server will accept requests from the remote system

xhost + will do it (it disables access control) but you wouldn't want to do that on a system connected to the Internet unless there's a firewall
Or you can use a script like I do that sets up xauth authorization on the remote host
projects

ASKER
Small footprint meaning low resource (RAM/CPU) use. Disk space is never an issue these days.

Your points 1 and 2 sound like you are saying I don't need to run full X on the host, that I would run X on a local system, connecting to the KVM host. Is this right?

Yes, of course there's a firewall :). I can't imagine putting anything on the net without one, ever.

So yes, the KVM host/server would allow only source IP/s to connect and use the GUI manager.

I've never done this however so if you have any leads, links, information on how to go about it, this is sounding interesting.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Duncan Roe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.