LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-26-2015, 08:58 PM   #1
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What are the benefits for running kvm instead of virtualbox


What are the benefits for running kvm instead of virtualbox?
Most of the threads that I've read said that using kvm affects performance. So whaat are the benefits
 
Old 05-27-2015, 02:22 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
They are always in a close race but I'd still think that KVM is a bit faster. http://www.phoronix.com/scan.php?pag...4_kvmbox&num=1

That assumes fully supported host OS and hardware. As hardware and vm technology improves they get to claim better speeds, more features and ease of use, better admin features too.

You can't go wrong with either choice I'd think. For server farm you may be better off with kvm but that is only a guess.

Last edited by jefro; 05-27-2015 at 02:25 PM.
 
Old 05-27-2015, 02:52 PM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
try to manage a large number of hosts and a very large number of VMs and you won't be asking this question.
 
Old 05-27-2015, 04:05 PM   #4
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Rep: Reputation: 38
Quote:
Originally Posted by dyasny View Post
try to manage a large number of hosts and a very large number of VMs and you won't be asking this question.
you wanted to say that, compared to VMware, Virtualbox is more like VMware Workstation and KVM more like ESXI?
 
Old 05-27-2015, 06:31 PM   #5
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by dt64 View Post
you wanted to say that, compared to VMware, Virtualbox is more like VMware Workstation and KVM more like ESXI?
if you want an exact comparison, kvm, the linux kernel, libvirt and virt tools are like ESXi, kvm on it's own is closer to vmkernel only. As for myself, I have said what I wanted to say.
 
Old 05-28-2015, 10:35 AM   #6
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Unlike ESXi, you don't need to connect remotely to access the VMs with KVM. VirtualBox is very easy to use, seems to be between VMware Player and Studio in it's functionality. VirtualBox is also a rather high level application compared to KVM. This can mean a great deal in performance.

If you want something easy to use, use VirtualBox.
If you're willing to learn how to use it, KVM can leave VirtualBox in the dust.

VirtualBox also has some interesting features like being able to record the VM's screen, even when the resolution changes. I know first hand how hard it is to record VMs without that. VirtualBox also allows you to resize the guest display by resizing the window itself.
And another cool feature of VirtualBox:
http://www.howtogeek.com/171145/use-...rtual-machine/
 
1 members found this post helpful.
Old 05-28-2015, 03:49 PM   #7
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
> VirtualBox also allows you to resize the guest display by resizing the window itself.

Also possible with KVM and Spice
 
Old 05-29-2015, 03:54 AM   #8
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Ihatewindows522 View Post
And another cool feature of VirtualBox:
http://www.howtogeek.com/171145/use-...rtual-machine/
been doing this for years with X-Windows. oh wait ... some people call that "remote" so i guess it doesn't count.
 
Old 05-29-2015, 03:15 PM   #9
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Let's not forget that VirtualBox is an Oracle product - the Oracle corporation could decide anytime to stop support/development of VirtualBox and at that point you would have to hope that somebody forks it in some intelligent way, or otherwise you would have to re-implement everything.

We had & have a similar situation with MySQL:
MySQL was bought by Oracle and the original MySQL was forked into MariaDB => people are migrating to MariaDB.
I am one of those that is migrating and I do enjoy the additional functionalities of MariaDB and so far I did not have any problems.

Quote:
Most of the threads that I've read said that using kvm affects performance.
Well, independently if you use KVM or VirtualBox, you're adding at least an additional layer between your HW and SW - impossible that this does not affect negatively the performance.

One thing that you should definitely investigate, if you need it, is the area of rendering/graphics/3Dgraphics running within the VM.
I don't have experience with it, but it could be that VirtualBox performs much better than KVM in this area.
 
Old 05-29-2015, 03:53 PM   #10
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Rep: Reputation: 38
Quote:
Originally Posted by Pearlseattle View Post
Well, independently if you use KVM or VirtualBox, you're adding at least an additional layer between your HW and SW - impossible that this does not affect negatively the performance.

One thing that you should definitely investigate, if you need it, is the area of rendering/graphics/3Dgraphics running within the VM.
I don't have experience with it, but it could be that VirtualBox performs much better than KVM in this area.
not necessarily, since KVM can use para-virtualized drivers if available, giving the guest direct access to the hardware. If you can set up your guest with these, it is about as quick as on native hardware. I'm not sure if VB can do this.
 
1 members found this post helpful.
Old 05-29-2015, 04:38 PM   #11
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
@dt64

If you're referring to PCI-passthrough:
you need a GPU allocated uniquely to that specific VM + the PCI-bus of the GPU not being used for anything else (reserved during kernel boot through parameters) + VTx enabled on the CPU and BIOS + VTd enabled on the motherboard and BIOS => I've done it once and it does work but it's a lot of work and ends up being a very specific setup that you cannot just fire up spontaneously for any VM.
 
Old 05-29-2015, 05:35 PM   #12
Samsonite2010
Member
 
Registered: Apr 2015
Distribution: Debian
Posts: 267
Blog Entries: 1

Rep: Reputation: 117Reputation: 117
Contrary to popular belief of VirtualBox having some kind of performance impediment - it has far better guest hardware support than anything else so (and I have checked myself) you should find if you configure the extras that VirtualBox has available, it will be hard to beat (I have run benchmarks on the guest OS). That is if you care about the actual performance of the VM itself. There is a lot of acceleration available and I have found nothing that can match it from a "logging into the VM and using it" point of view. That being said, it depends on what you use the VMs for.

One caveat is that this is probably more true if you run Windows operating systems on the VMs (I use Linux as host and run my Windows machines as VMs within).
 
1 members found this post helpful.
Old 05-29-2015, 08:28 PM   #13
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by dt64 View Post
not necessarily, since KVM can use para-virtualized drivers if available, giving the guest direct access to the hardware. If you can set up your guest with these, it is about as quick as on native hardware. I'm not sure if VB can do this.
PV is great, but it also doesn't lack some overhead. The general idea really is that the existing hardware is way too powerful for a single workload, and VMs allow us to safely exploit the hardware to the fullest, even if some of the performance is lost on the way.
 
Old 05-29-2015, 08:30 PM   #14
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by Pearlseattle View Post
you need a GPU allocated uniquely to that specific VM + the PCI-bus of the GPU not being used for anything else (reserved during kernel boot through parameters) + VTx enabled on the CPU and BIOS + VTd enabled on the motherboard and BIOS => I've done it once and it does work but it's a lot of work and ends up being a very specific setup that you cannot just fire up spontaneously for any VM.
This isn't PCI passthrough, this is GPU passthrough, and it's quite simple with vfio. Regular PCI passthrough is even simpler, no rocket science there
 
1 members found this post helpful.
Old 05-29-2015, 08:32 PM   #15
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by Samsonite2010 View Post
Contrary to popular belief of VirtualBox having some kind of performance impediment - it has far better guest hardware support than anything else
can you please be more specific? better guest hardware support - what does that mean?

Quote:
so (and I have checked myself) you should find if you configure the extras that VirtualBox has available, it will be hard to beat (I have run benchmarks on the guest OS).
So have I, there is a reason KVM is at the top of specvirt every year since 2009.


Quote:
There is a lot of acceleration available and I have found nothing that can match it from a "logging into the VM and using it" point of view. That being said, it depends on what you use the VMs for.
more specifics please

Quote:
One caveat is that this is probably more true if you run Windows operating systems on the VMs (I use Linux as host and run my Windows machines as VMs within).
This should not matter. KVM was developed with windows in mind
 
  


Reply



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
LXer: VirtualBox Is Still Running Slower Than QEMU-KVM LXer Syndicated Linux News 0 01-09-2014 11:42 PM
KVM vs VirtualBox Robynsveil Linux - Virtualization and Cloud 4 05-06-2013 01:42 AM
Moving Windows XP from VirtualBox to KVM -- and crashing KenJackson Linux - Virtualization and Cloud 1 12-20-2011 05:19 PM
VirtualBox + KVM + Intel virtualization? How? concoran Linux - Virtualization and Cloud 1 12-30-2009 10:12 AM

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

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