Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what's the difference between vbox-kmod and kvm?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Thu May 02, 2013 1:28 am    Post subject: what's the difference between vbox-kmod and kvm? Reply with quote

kvm is composed by 3 kernel module: kvm, kvm_intel, kvm_amd
vbox also has 3 kmod: vboxdrv, vboxnetadp, vboxnetflt

What's the difference between them in function, technical rationale and interface?
And why vbox or vmware can't use kvm directly?

As far as I know, all the virtual machine products require same kernel function.
So I think vbox should use kvm for the basic function, plus its own kmod for addtional function.

I have found some kvm doc, but can't find andy doc for vbox kmod.
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 530

PostPosted: Thu May 02, 2013 7:09 am    Post subject: Reply with quote

The kvm modules are a relatively thin layer to the hardware virtualization features. Note that kvm is not in and of itself a virtualization solution, just the kernel interface, it needs user-space host, like qemu .

The vboxdrv modules is to Virtualbox what the kvm module is to qemu. It also have several ancillary modules for networking: vboxnetadp and vboxnetflt. In theory, virtualbox COULD use KVM instead of it own module, but it doesn't (doubt it'll ever happen, but would be nice, as vboxdrv inspired a new taint flag: TAINT_OOT_MODULE)

Virtualbox is oriented toward virtualizing desktop environment as opposed to servers - but qemu/kvm has come a long way with things liek virtio, spice, and libvirt. However qemu/kvm/spice does not (yet) support host accelerated video, while VirtualBox does.
Back to top
View user's profile Send private message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Thu May 02, 2013 7:35 am    Post subject: Reply with quote

thanks for your reply.

Another question about the orientation:
I guess it is more of feature development priority, not about the design?
I hope there's nothing like "qemu's design is for server only, not appropriate for desktop, VirtualBox is specially designed for desktop usage".
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 530

PostPosted: Thu May 02, 2013 4:10 pm    Post subject: Reply with quote

There no inherent reason why virtualbox can't be used for server usage, or qemu/kvm for desktop usage. Virtualbox is developed more of a "turn-key" solution to desktop virtualization, whereas qemu is more piecewise: qemu handles instruction and hardware emulation; kvm handles the virtualization acceleration; libvirt the configuration, management and user interface; virtio provides efficient guest/host I/O; and spice the video, input and host integration.

When virtualbox was intially release, qemu-kvm was just a fork of qemu, spice didn't exist, virtio was in its infancy and libvirt was still very young.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum