Link to home
Start Free TrialLog in
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.
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

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?
Avatar of projects
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?
No I meant install X on the server (what I called the VM host).
I'm confused. I'm trying to avoid installing X on a production host, looking for something lighter.
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.
The host is in a remote data center to us, no local access.
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.
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.
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?
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?
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
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.
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?
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)?
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.
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
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.
ASKER CERTIFIED SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial