Kernel-Based Virtual Machine Ported To ARM64 58
hypnosec writes "Linux KVM has been ported to ARM64 just ahead of the release of the architecture, it has been revealed. Just last year ARM KVM virtualization support for Cortex-A15 32bit ARM processor was published. Marc Zyngier of ARM released a set of 29 patches that contained the implementation of KVM for ARM that depends on the pre-arm64 rework as well as tiny perf patch published earlier. Some of the newly released port are support for 4k and 64k pages and 32-bit as well as 64-bit guests."
Re: (Score:3)
One word: emulator.
Re:So is this a case of "it compiled, ship it!" (Score:5, Funny)
The US Government have had 64 bit Risc systems running Lisp based OSs since Roswell, but they've been gradually leaking out the technology so as to avoid temporal anomalies the sort of alien attack that wiped out the dinosaurs. The reason for that attack is that velociraptor sapiens had discovered a language very similar to Smalltalk which meant their embedded systems (e.g. spaceprobes) didn't crash and burn with kernel panics and null pointer exceptions when things got a bit tricky. Also they knew that the galaxy is full of life and all of it was made out of meat. Other, older, civilisations felt this was a bad combination.
Re: (Score:1)
welcome to slashdot, alex jones
So what's KVM got over other virt tech? (Score:2)
What's the raison detre for KVM?
Granted VirtualBox's slot is open-source end-user virt.
But how about KVM vs. other server-oriented virtualization solutions? Like VMWare, Xen, and OpenVZ?
What's worked best for you (stability, memory, resources, separation, ease of use, $$), and what plays well with the latest Ubuntu Server LTS?
Re: (Score:2)
Solaris or illumos Zones on ZFS is what you want then.
Even better is SmartOS (http://smartos.org/)! It's OpenSolaris/Illumos *and* makes use of KVM and Zones (with Copy-On-Write help from ZFS). Yes, they actually ported KVM to the illumos (OpenSolaris) kernel.
No idea if it works on SPARC... but I suspect not. Maybe it will eventually?
-Cameron
Linux equivalent (Score:2)
And the Linux equivalent would be using Linux Containers (LXC) [sourceforge.net] over Btrfs. [kernel.org]
(The parent poster mentionned OpenVZ, although that one is living out of tree and thus still stuck at the 2.6 generation of kernels, whereas LXC is in mainline kernel).
Re: (Score:1)
I'm using KVM beacause it's open source (unlike VMWare) and when I was setting up a CentOS based cluster it seemed to have the best support for what I wanted to do.
So far, I'm happy with my choice, but I'm far from an expert.
Re: (Score:3)
I wanted to ditch VirtualBox in favor of KVM, but ran into a huge stumbling block. I wanted to virtualize my servers, so I need to have KVM's network adapter in bridge mode.
After following the KVM instructions, which had me manually changing many kernel settings, and a lot of trial and error for several days, I threw my hands up and went back to VirtualBox. I reverted all the kernel settings back to stock values, and I had VirtualBox bridging the network adapters in just a few seconds.
Getting KVM set up a
Re: (Score:2)
I can't comment on other distros, but setting up a bridge under Centos is very easy. virt-manager even has support built-in to perform this task. You don't need to change anything kernel related (the scripts that manage the interfa
Re: (Score:2)
virt-manager even has support built-in to perform this task.
I tried virt-manager under Kubuntu, but it kept dying after just a few mouse clicks. I've since moved all of my virtualization to 64-bit Debian (under VirtualBox), but didn't think to try virt-manager there. When I get some time, I'll try it. Thanks.
Re: (Score:2)
Re:So what's KVM got over other virt tech? (Score:5, Informative)
VMware is not open-source, and is pretty expensive if you need more than the basics. However it's well-supported in most circles, and its paid-license-support gets it past the PHB hurdle.
Xen is a beast. The time investment alone to get it to work puts it out of reach for even mid-level Linux admins. Plus it requires extra help to run non-Xen guest OSes.
OpenVZ isn't real virtualization. It's OS-level containment and pseudo-virtualization, which can be good for some things.
KVM has real steam behind it. It's already in the mainline kernel, it supports real virtualization (I've been able to get all modern Linux distros running as KVM guests as well as WinXP - WIn8 preview), but can get almost as fast as Xen's para-virtualization with some guest-OS drivers installed. There have been new features added to the Linux kernel to help it (Kernel Same-page Merging is one example). It's not that difficult to get working, especially if you use something like libVirt to do the heavy lifting for you.
I'm not an Ubuntu user, so I can't give first-hand experience using KVM on LTS, but a quick google search turned up this this HOWTOforge article on the latest LTS [howtoforge.com] and from my reading, it seems pretty straight forward.
Re: (Score:1)
"VMware is not open-source, and is pretty expensive if you need more than the basics. However it's well-supported in most circles, and its paid-license-support gets it past the PHB hurdle."
KVM is to VMware what Sendmail is to Exchange, not a drop in replacement in 99% of what people are expecting out a VM product.
Xen is tainted by its association with Citrix to me, but I wish there would be more support for Virtualbox (also tainted by corporate association, of course) since that is the most n00b friendly vi
basic open-source solution (Score:2)
KVM was introduced as a simpler solution based on leveraging the virtualization hardware in newer x86 hardware. Because it's hardware-only it doesn't have to do as much fixing-up of things behind the scenes, which meant that the code was a lot simpler.
Because it's open-source it's useful as an initial target for virtualization work within the kernel. The other virtualization solutions can build on a lot of the same kernel functionality but it's harder to see what they're doing because it tends to be more
Re:So what's KVM got over other virt tech? (Score:4, Informative)
Well, it depends.
All of the virtualization platforms out there are essentially based on QEMU. All of them read the QCOW file format. All of them have their own implementation and direction of that initial vision.
My experience with KVM is that it is focused on Linux and Windows support. There may be less you can configure under the hood with KVM than with Xen, but if you are a windows and linux shop, or just a linux shop, KVM is awesome. KVM is also the ONLY solution I would try to deploy under RHEL or derivatives, as they dropped Xen support in 6.x. Xen support will be back in 7.x, but that is because RHEL's dropping of support for Xen open source pissed off people on the kernel dev team, so they decided to add it to the kernel directly.
My experience with Xen is that it has a much broader focus, and is more component accessible. The virtual machine hardware and the management tool sets can be easily swapped out for custom ones. I have a number of virtual machine BIOS to pick from if I run into a BIOS bug. I can support BSD and other systems that KVM doesn't, or doesn't do as well. We use Xen as our go to platform, but deployment of KVM would have been faster in some aspects if we didn't need multi-platform support. Xen documentation I've found is also more mature. AFAIK, Xen is the basis for the Amazon EC2 cloud platform (I could be wrong about that). Ubuntu and debian have good support for Xen, but documentation of, say, building a multiple vlan 802.1q networked solution is a situation of YMMV.
My experience with VMWare is that it is a great pay virtualization environment, provided you are willing to shell out for their recommended hardware as well. Setting up things like live migration and cloning are easier with their GUI and step by step instructions. If your company is going to pay for all of that, then it is definitely something worth taking advantage of, as the learning curve is much more accessible (but, it also means you can shoot yourself in the foot faster as well). But the moving target of licensing and hardware requirements are an issue, and my workplace is migrating away from VMWare to Xen because of those issues. Again, if the will to spend is there, it is just fine. I would only use the free solution as something to learn on.
Jails and chroots are nice in a single platform environment, because why waste time on overhead? But the downside is that it is single platform. I'd go more into that, but it isn't really relevant to this discussion. What I would really love to see is something new under the BSD's that offered multi-platform guest support as a host.
All of the the three big players- KVM, XEN, and VMWare are part of OpenStack, so you can use the OpenStack API. If you are ever going to migrate, or have to have cross-compatibility with other virtualization platforms (business parternships can warrant this), then having OpenStack tools available can be really helpful if you want to write the code for it. All three are also supported by OpenNebula, which is an open source pointy clicky interface that can manage all three platforms- provided you can code in your customizations, which could include live migration, etc.
Certification and education are another factor. VMWare wins that one hands down, as they have web accessible training and an easy certification path. The only way you can easily certify on Xen is to get LPIC-3 certified, which will also certify for KVM. The other option is to take the RHEL series (woah, big dollars!), and get certified at the RH Architect level in KVM. The LPIC route actually costs less than the other two, but there are no classes available at that level. Most businesses are familiar only with the VMWare cert path. Also, most companies that have a strong need for someone to fix their problems don't really care which virt solution one has experience with- they care about having an understanding about how all of them work under the hood so that their structural issues are addressed.
Re:So what's KVM got over other virt tech? (Score:4, Interesting)
Re: (Score:1)
KVM is bundled with your kernel and is plug-and-play.
The only comparable open-source alternative is Xen, which has slightly more advanced features but is also very less stable.
Re: (Score:2)
apt-get install kvm is a pretty nice start.
The virt-manager isn't bad either even if it does still have a few limitations, so apt-get install virt-manager
Very nice, straightforward, easily added to any modern server (after the fact if needed). It also works nicely on a good desktop machine.
Re: (Score:2)
I used virt-manager for quite a while to hold my hand when making and administering guests, but I've always found it a little buggy, and now pretty much work exclusively out of virsh itself. Maybe some day I'll get up the guts to go straight to using kvm itself.
Re: (Score:2)
I like Virt-manager for it's at-a-glance view of multiple servers and it's handy for quickly popping a console open.
Re: (Score:2)
Everybody just says "Raspberry Pi FTW!", but I don't want a tinkering ultra-small device. I want a board with standard size, standard ports and slots, and a ARM processor.
(In other words: I want a goddamn SATA port with my Pi!)
Why is that so hard? Or why is that so commercially inviable? And why there hasn't been a Kickstarter project like this before?
I'm not a hardware/architecture/manufacturer guy, so I have no clue whatsoever.
Re: (Score:2)
Why is that so hard? Or why is that so commercially inviable? And why there hasn't been a Kickstarter project like this before?
It isn't, and it isn't, and because there's no need for one.
You're not getting a board with standard slots. The SoCs don't have a bus controller that will let you have those. They could be hacked on, but they would suck.
Now go forth and look at VIA's APC platform (check newegg, they had them in stock last I checked) and the cubieboard (which was out of stock last I checked). If you just want a server, and don't need video, you should go forth and read up on the pogoplug. I suggest reading the stuff on them
Re: (Score:2, Informative)
ask and ye shall receive
http://cubieboard.org/
Re: (Score:2)
I guess you'll have to wait for ARMv8 server hardware. Else there are 17W Celeron motherboards such as the Gigabyte GA-C847N, it's not really low power but may come close enough and has a fuck ton of connectors. (dual ethernet, e-sata, rs232, lpt header, IDE, one PCI etc.)
Re: (Score:3)
Your options are... limited.
The people who make 'ARM-based server motherboards' generally bundle them with cases and sell them as network attached storage devices. (Anything mentioned on the Debian on Orion [cyrius.com] or Debian on Kirkwood [cyrius.com] pages will be discussing ARM 'servers' based on those Marvel SoCs, some of which have a reasonable number of drive bays).
Some ARM dev boards will also break out an SATA port; but generally only one, (something like Freescale's i.MX53 [freescale.com] dev board) as they usually focus on being dev boa
Re: (Score:2)
Re: (Score:2)
Re: (Score:1)
Xen ARM64 (Score:2)
Re: (Score:1)
I'm pretty sure ARM64 KVM is for running ARM64 and ARM32 guests, not x86 or anything.
I haven't read the article, though.