Slashdot Log In
Linux Gains Two New Virtualization Solutions
Posted by
CowboyNeal
on Sat Jul 21, 2007 08:51 AM
from the almost-as-good-as-the-real-thing dept.
from the almost-as-good-as-the-real-thing dept.
An anonymous reader writes "The upcoming 2.6.23 kernel has gained two new virtualization solutions. According to KernelTrap, both Xen and lguest have been merged into the mainline kernel. These two virtualization solutions join the already merged KVM, offering Linux multiple ways to run multiple virtual machines each running their own OS."
This discussion has been archived.
No new comments can be posted.
Linux Gains Two New Virtualization Solutions
|
Log In/Create an Account
| Top
| 170 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
So, will it run Windows? (Score:2, Interesting)
(http://slashdot.org/~The_Fire_Horse/journal | Last Journal: Saturday August 04, @07:13PM)
Re:So, will it run Windows? (Score:5, Informative)
You mean Lguest? FTA:
Lguest doesn't do full virtualization: it only runs a Linux kernel with lguest support.
So the answer is no, Lguest does not run Windows. Xen runs Windows, but only if you have a VT-capable processor. Like Lguest, Xen can run Linux without a VT-capable processor.
Why? (Score:4, Interesting)
(http://datanytt.no/)
I think this will confuse users. Choice is good, yes, but 3 VMs in the kernel? Sounds like overkill.
Re:Why? (Score:5, Insightful)
(http://rtfm.insomnia.org/~qg/ | Last Journal: Wednesday November 16 2005, @07:11AM)
Don't get me started on buses.. PCI, USB, SCSI, IDE, how many do you need?!
Re:Why? (Score:5, Funny)
(http://rtfm.insomnia.org/~qg/ | Last Journal: Wednesday November 16 2005, @07:11AM)
Re:Why? (Score:4, Informative)
(http://rtfm.insomnia.org/~qg/ | Last Journal: Wednesday November 16 2005, @07:11AM)
That said, you mentioned KVM.. KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). (from here [qumranet.com]). It *is* a hardware driver.
Re:Why? (Score:4, Interesting)
(http://www.hyperlogos.org/ | Last Journal: Wednesday July 18, @08:19PM)
in this situation the analogy is clear. As time went on, people discovered new designs for virtualization and decided to implement them. Each design has strengths and weaknesses that make them appropriate for different situations. The same is true of hardware buses; older buses tend to be cheaper to implement. There are exceptions, it's probably cheaper (or will soon be cheaper due to economies of scale) to implement PCI-Express at PCI bandwidth than it is to implement PCI itself. It's certainly cheaper to implement firewire than SCSI (in spite of this, there are practically no native firewire storage devices. But anyway.) (And firewire, which goes up to 800MHz which peaks at 100MB/sec, is superior in most ways to anything up to and including LVD SCSI, including speed, simplicity of cabling, etc etc) Can you tell I have an ax to grind?
But anyway, the point is that we have UML, which runs linux as a process; we have this new lguest, which runs linux as a module; we have xen which is full virtualization without a need for VT, we have kvm which is like xen but does need VT, we have vmware which is also pretty much like xen (and doesn't need VT, although I was under the impression newer versions of vmware would take advantage of it if present, for a speed boost.)
There's some other examples too, but these are enough to talk about right now. Suffice to say that each approach has advantages and disadvantages. But they're useful for different things!
For maximum separation, for example, you could have a Linux that ran servers inside of different UML processes. While exploits in UML would still be possible, this would stop a privilege escalation bug in one server from affecting another. I envision a tool that tracks dependencies and generates the UML filesystem images automatically. Syslogging is done through the virtual network, to the syslog on the core system. Want to test a package? A command to run it in a UML might be as simple as running fakeroot. (fakelinux?) You could do all of this with this new lguest system, instead of UML.
Meanwhile, you're still going to need a full virtualization solution to run non-linux operating systems under Linux (at least until a cobsd (see "colinux") comes out - I forgot about that one for a moment) so there's still a purpose for that.
lguest doesn't need VT (Score:1)
As a cross-platform developer, I'm interested in installing Windows on a virtual machine instead of dual-booting, and the current virtualization technologies don't cut it for me; VMware player is proprietary and doesn't work with my wireless card, QEMU is just too darn slow, and everything else requires a VT CPU. I'm looking forward to trying out lguest.
Could somebody clear this up for us? (Score:5, Insightful)
(http://tribbin.nl/)
Re:Could somebody clear this up for us? (Score:4, Insightful)
(http://rtfm.insomnia.org/~qg/ | Last Journal: Wednesday November 16 2005, @07:11AM)
As long as N solutions are maintained there will be N solutions in the kernel. A solution won't be dropped because it performs worse.. or any other "technical" reason.
Re:Could somebody clear this up for us? (Score:5, Informative)
They each fill very different niches, so there are very good reasons for having all 3 in the kernel.
I RTFA twice and thought to myself... (Score:1, Flamebait)
(http://www.destination-life.com/)
Re:I RTFA twice and thought to myself... (Score:5, Funny)
(http://www.keirstead.org/)
As a testament to my lack of knowledge... (Score:2)
(http://jimk.redcolony.com/)
does anyone actually use a VM.... (Score:1, Troll)
I understand that application compatibility is a big deal but Linux has a zillion apps already.
I just don't get all the marketing surrounding it.
GPU support question (Score:5, Funny)
The only reason I currently have a windows partition at all is for gaming.
Being able to run Windows 3D games in a VM would allow me to move to a Linux-only box and also give me a nice way of:
* managing the way windows keeps grabbing diskspace
* remove the need to go through reinstalling/reactivating windows every 6 months or so
* limiting the damage Windows virusses can do
* limiting all the phone-home comms with Microsoft that windows keeps doing
Clarification of these technologies (Score:5, Informative)
(http://eric.windisch.us/)
Xen - the Linux kernel supports code allowing it to be run as a guest underneath the Xen kernel, all through software. Linux's support for Xen does not make Linux a virtualization platform, only a GUEST for the Xen kernel which sits at Ring-0. (though a "dom0" Linux system can interact intimately with the Xen kernel, it actually sits at Ring-1). I should note that the Xen kernel also supports hardware virtualized domains, though this is unrelated to the patches to Linux.
KVM - the Linux kernel supports virtualization of guests through hardware extensions, this requires supported hardware. Linux becomes the Ring-0 kernel.
lguest - (my understanding is) an unmodified Linux kernel can act as a hyper-supervisor through loading Linux kernels as modules. Linux sits as both Ring-0 (supervisor) and Ring-1 (guests). This is experimental with limited features and only supports Linux guests.
UML - the Linux kernel becomes a userspace program. This allows Linux to run as an executable application/program. With UML, Linux can be compiled for a Linux or Microsoft Windows target. The executing OS sits at Ring-0 and the UML program sits at Ring-1. This has the advantage of requiring no modifications to the host OS and is very portable (you could email an entire Linux system to a friend without requiring anything installed to their system), but the disadvantage of poor performance.
From a high-level, the products UML, Xen, and lguest are actually very similar in function. They act as architectures to which Linux can be compiled in order to make it a guest OS of another Ring-0 kernel. These architectures provide the targets of a kernel module (lguest), a userspace program (UML), or a xen-domU guest (Xen). On the other hand, KML is the only patch that is intended to add support to Linux to act as a Ring-0 kernel on behalf of guest systems -- and even then, KML can be viewed more as a hardware driver for the processor extensions.
Re:Clarification of these technologies (Score:5, Informative)
The UML program sits at ring-3 on X86 machines: it's just a normal user program using the ptrace() mechanism and extensions [except when the host has been patched with SKAS, but even here it's just a "normal user program". Rumor has it that SKAS might eventually make it into mainline, but it's time in 'real soon now' is starting to rival Duke Nukem Forever's.]. Rings 1 and 2 are odd, rarely used (IIRC there's the current virtualization craze and OS/2 as notable consumers) features of the x86, derived from MULTICS. For processors with only two (user & supervisor) modes, identify ring 0 with supervisor mode and the other rings with user mode.
It is a little odd to say that Linux "becomes" the Ring-0 kernel under KVM. It was already running in ring 0.
Re:Clarification of these technologies (Score:4, Interesting)
(http://www.dekadance.se/)
Personally I like the approach of OpenVZ [openvz.org] and VServer [linux-vserver.org] better. The main OS and the guests all share the same kernel, share the RAM and their root filesystems can be just subdirectories of the host's filesystem. When inside the virtual server you don't realize that though. You only see your own processes and everything works as if it was a dedicated server. You can run iptables, reboot and just about everything you could normally do in XEN/KVM/VMWare. Including live migration of virtual servers to other physical hosts. chroot on steroids.
I really hope OpenVZ and/or VServer will be merged at some point. VServer seem to keep up with current kernel releases so that wouldn't be too hard to merge I guess. OpenVZ usually have a lag of something like half a year.
but (Score:1)
yes!! (Score:2)
(http://www.solussd.com/)
Hardware requirements and microcode. (Score:1)
(Last Journal: Thursday July 26, @02:00AM)
Three choices, but none of them gives the optimal solution, which is unmodified guest OSs on processors lacking specific hardware support.
This is apparently hard or impossible on many i386 processors due to the difficulty of intercepting certain instructions. But since Linux updates the processor microcode at boot time, would it be possible to modify the processor microcode to change the way the offending instructions operate ?
(just invalidating them would proably be enough)
3D acceleration please (Score:1)
Anybody running OS/2 Warp 4 under linux? (Score:2)
How freakin' big is the Linux kernel now? (Score:2)
(http://www.natetech.com/)
Unless they're running a virtualized cluster of machines!
Re:Multiple ways to run Multiple OSs (Score:2)
Re:Multiple ways to run Multiple OSs (Score:4, Informative)
I used to work for a search engine company (not Google) that has thousands of linux servers. After doing a bit of research they discovered that the vast majority of these machines are idle for a good amount of time. Rather than buy new servers they simply installed Xen and intellegently divided up the physical hardware to perform their different tasks. Now instead of separate physical servers to do web spidering, data analysis, log processing, etc. they've combined these tasks onto the same physical hardware but kept them as individual virtual servers.
Re:What about kqemu? (Score:2)
(http://rtfm.insomnia.org/~qg/ | Last Journal: Wednesday November 16 2005, @07:11AM)
Solved it three different ways! (Score:2)
(http://symbolset.blogspot.com/ | Last Journal: Saturday May 26, @11:53PM)
Please review Robert Frost: "The Road Not Taken [amandashome.com]".
Re:legality (Score:1)
(http://www.throup.org.uk/)
Breach of software license? Possibly... if I recall correctly, the EULA for Vista forbids running in a virtualised environment. I believe it is perfectly legitimate to run XP this way as long as the license key has been purchased legally and is not currently in use in another installation (obviously with the exception of multi-user licenses). For other versions of Windows, it depends on the EULA but I think Vista is the only one to forbid it.
Re:Multiple ways to run Multiple OSs (Score:2)
Why what? Why multiple virtualization solutions? Because each solution has its own advantages and disadvantages. Use the solution that fits your needs best.
Re:What about kqemu? (Score:2)
Re:What about kqemu? (Score:2)
I just upgraded my wife on Debian Sarge testing with a Win4Lin 2.4-27 kernel. Web designer who demanded PhotoShop, Illustrator, Flash, and IE but the Win98 Win4Lin base and apps were getting dated. Did a dist upgrade to Etch Stable and installed XP Pro on QEMU with kqemu. Was good. The kqemu performance was very adequate, net, samba share and got her apps working.
But then I upgraded to Etch testing. First, qemu itself had changed -- blog rumor says he changed the base virtualized hardware and my XP didn't start. Downgraded and pinned that. Couldn't use the 2.6-21 kernel with nvidia. I understand it has been a function issue within the paravirtualization. Could work around that an easy way -- in which case qemu wouldn't work again. Or I understand a person can hack some source. Also, I let a bochsbios upgrade slip in. Another package that killed qemu that I had to downgrade and pin.
So I ended up with sort of a Debian Etch testing but with several packages pinned back to stable that works fine but it has been a bit of a minefield. And it is my understanding that the virtualization built into the kernel is at the heart of the problem.
Re:What about kqemu? (Score:2)
QEMU has so far been a solid foundation for a handful of other FOSS virtualisation solutions, KVM use a modified Qemu (Does anyone know if KVM support is going upstream into the next QEMU release?) and Virtualbox incorporated QEMU to establish full system emulation on top of their own hypervisor. If anything I'd like to see the Virtualbox OSE kernel module merged, which imo is far superior to raw QEMU+KQEMU at the moment.
QEMU is far from dead though, there seems to be quite a bit of activity regarding patches on the qemu-devel mailing list.