LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-14-2014, 06:09 PM   #1
lupe
Member
 
Registered: Dec 2008
Distribution: Slackware, FreeBSD, NetBSD, Haiku
Posts: 60

Rep: Reputation: 2
Slackware as host, Ubuntu as guest - advice needed


Hi,

I'm thinking about the possibility of buying a 4+ core computer, with 8+ GB of RAM, so that two (or more) people could use the same machine at the same time, instead of using separate computers as right now. I could use some kind of KVM switch to be able to connect two or more keyboards, mouses and monitors.

But, what about the OSes? I want Slackware as the host system and the next Ubuntu 14.04 as the guest, and I'd like to avoid full virtualization solutions. Vmware and VirtualBox are out of question.

For the 'light' virtualization solutions, I've read that the kernel of the host should match the kernel of the guest, what seems very difficult to attain when considering Slackware and Ubuntu.

As there are some experts on this virtualization area at this forum, and there are a bunch of technologies available (KVM, OpenVZ, LXC, heroku, docker, coreos, lmctfy, zerovm) I'd like to know if such a solution is somehow possible.
 
Old 03-14-2014, 09:11 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Quote:
Originally Posted by lupe View Post
I'm thinking about the possibility of buying a 4+ core computer, with 8+ GB of RAM, so that two (or more) people could use the same machine at the same time, instead of using separate computers as right now. I could use some kind of KVM switch to be able to connect two or more keyboards, mouses and monitors.
Let me stop you right there, because that's not going to work. Short of patching the kernel or using custom-made drivers, there's (currently) no (good) way to tie an input device and a monitor to a session.

You could set up a server and have the users connect over the network, of course. Then several users could use the same system simultaneously, but they'd need some sort of local client, like a PC or a thin client.
Quote:
Originally Posted by lupe View Post
But, what about the OSes? I want Slackware as the host system and the next Ubuntu 14.04 as the guest, and I'd like to avoid full virtualization solutions. Vmware and VirtualBox are out of question.
Why would you want to avoid the fastest and most secure virtualization solutions on the market? With the introduction of CPU extensions for hardware-accelerated virtualization, performance is better than ever. You can further improve on that by using paravirtualized device drivers for disk and network access.

Quote:
Originally Posted by lupe View Post
For the 'light' virtualization solutions, I've read that the kernel of the host should match the kernel of the guest, what seems very difficult to attain when considering Slackware and Ubuntu.
That's the whole deal with containers (which is what you're talking about); they run under the same kernel, one that supports namespaces to keep containerized userspace processes segregated.

Ubuntu uses a patched kernel, but I don't know to which extent it actually requires those patches in order to run. Some of the patches relate to hardware drivers, and in a containerized environment, drivers are a non-issue.
Quote:
Originally Posted by lupe View Post
As there are some experts on this virtualization area at this forum, and there are a bunch of technologies available (KVM, OpenVZ, LXC, heroku, docker, coreos, lmctfy, zerovm) I'd like to know if such a solution is somehow possible.
I've been configuring, installing and using hypervisors and VM systems on the x86 platform since the early VMware days back in the late 90s (and had to listen to the SunOS/Solaris guys telling us just how far behind we were), but I'm certainly no expert.

I can recommend KVM, as it's a fast, robust and fully-featured hypervisor. Add libvirt, and you've got a system that's quite easy to manage. On the container side I've only ever really used LXC, but it certainly seems to work well enough and doesn't require kernel patches (which turned out to be a problem the last time I made a serious attempt to evaluate OpenVZ, but admittedly that was a few years ago).

Last edited by Ser Olmy; 03-14-2014 at 09:13 PM.
 
Old 03-15-2014, 04:19 AM   #3
lupe
Member
 
Registered: Dec 2008
Distribution: Slackware, FreeBSD, NetBSD, Haiku
Posts: 60

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Ser Olmy View Post
Let me stop you right there, because that's not going to work. Short of patching the kernel or using custom-made drivers, there's (currently) no (good) way to tie an input device and a monitor to a session.

You could set up a server and have the users connect over the network, of course. Then several users could use the same system simultaneously, but they'd need some sort of local client, like a PC or a thin client.
Humm, I didn't try this device but it seems to enable multiuser access to the same workstation. Since Linux is also multiuser, I was hoping to be able to have more than one person connected to the computer, taking advantage of different sessions (also X sessions). One of them could be connected to the guest operating system. Or am I wrong about this kind of products?

Quote:
Originally Posted by Ser Olmy View Post
Why would you want to avoid the fastest and most secure virtualization solutions on the market? With the introduction of CPU extensions for hardware-accelerated virtualization, performance is better than ever. You can further improve on that by using paravirtualized device drivers for disk and network access.
Some time ago, I installed VirtualBox in Slackware64 and didn't like it at all, I mean the fact that it didn't have a 64 version and also the deinstallation part. I use VMPlayer in my current computer, but would like to use an open-source setup only for this system. So I guess, I have qemu as the only solution...


Quote:
Originally Posted by Ser Olmy View Post
That's the whole deal with containers (which is what you're talking about); they run under the same kernel, one that supports namespaces to keep containerized userspace processes segregated.

Ubuntu uses a patched kernel, but I don't know to which extent it actually requires those patches in order to run. Some of the patches relate to hardware drivers, and in a containerized environment, drivers are a non-issue.
Yes I know it. And besides installing the systems, keeping them updated would probably be a nightmare.


Quote:
Originally Posted by Ser Olmy View Post
I can recommend KVM, as it's a fast, robust and fully-featured hypervisor. Add libvirt, and you've got a system that's quite easy to manage. On the container side I've only ever really used LXC, but it certainly seems to work well enough and doesn't require kernel patches (which turned out to be a problem the last time I made a serious attempt to evaluate OpenVZ, but admittedly that was a few years ago).
I'll take a better look at OpenVZ.
 
Old 03-18-2014, 05:23 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Quote:
Let me stop you right there, because that's not going to work. Short of patching the kernel or using custom-made drivers, there's (currently) no (good) way to tie an input device and a monitor to a session.
Well, I'd disagree. Using KVM you can passthrough any PCI devices, including USB ports for keyboard and mice and VGA cards to support another monitor. No new hardware required, except a chair..

I am currently running Slackware 14.1 as my host and Win 7 as a VM guest; each has it's own monitor and graphics card, and its own mouse. You can also use Synergy to share a mouse and keyboard if you prefer. The more traditional VM approach is to use VNC, but separate hardware (mouse keyboard, screen) with a multiseat approach is quite feasible without any physical switches.

Although I have a Windows guest, There's absolutely no reason why you can't do the same with a linux or BSD guest; in fact it should be easier considering how persnickety Windows can be about hardware drivers.

Last edited by mostlyharmless; 03-18-2014 at 05:25 PM.
 
Old 03-18-2014, 05:34 PM   #5
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Quote:
Originally Posted by mostlyharmless View Post
Well, I'd disagree. Using KVM you can passthrough any PCI devices, including USB ports for keyboard and mice and VGA cards to support another monitor. No new hardware required, except a chair..
Yes, but that's not going to work if the OP insists on not using a hypervisor, is it?

I tried using the "passthrough" features of KVM about three years ago to make a USB plotter available to a Windows guest, but back then it was horribly unstable. The printer would work for a while, typically a few days to a week at the most, but then communication would be lost and only a reboot of the hypervisor could make it reappear.

I also tried using PCI passthrough to access a Matrox video card, but gave up after repeated kernel panics on the hypervisor. Glad to hear it's working properly now.
 
Old 03-18-2014, 05:47 PM   #6
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
True enough, OP needs to use virtualization or the whole thing doesn't make sense. Closest thing I can think of otherwise is coLinux under Windows, where the kernel runs as a service...

KVM has certainly matured tremendously in the last year; I only used VBox and VMWare a few years ago. Passthrough seems to be pretty stable for me at least, but there's no question it's still kind of a bleeding edge thing, as opposed to a click on an icon in Ubuntu thing. (Not that's there's anything wrong with that.)
 
  


Reply

Tags
slackware, ubuntu, virtual host



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
[SOLVED] Slackware 64-bit Host, Slackware 32-bit Guest, No VirutalBox Guest Additions? tronayne Slackware 4 03-24-2011 01:08 PM
New Server Build (VMWare host machine)(advice needed) ncsuapex Linux - Hardware 4 06-13-2010 12:13 AM
Vmware win2k host and slackware guest flava Linux - General 2 11-27-2003 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:50 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