1 |
Regarding devices which devices qemu-kvm supports, just take a look at |
2 |
following commands: |
3 |
Available net devices: |
4 |
qemu-system-x86_64 -net nic,model=? |
5 |
Available cpu's: |
6 |
qemu-system-x86_64 -cpu ? |
7 |
Available machines (if needed) |
8 |
qemu-system-x86_64 -machine ? |
9 |
General list of available devices: |
10 |
qemu-system-x86_64 -device ? |
11 |
|
12 |
Depending on your arch it might differ.. |
13 |
|
14 |
Regarding virito devices: |
15 |
I highly recommend using those drivers. For my gentoo guests i always use |
16 |
virtio drivers for network devices (with vhost=on) and harddisks. (on |
17 |
windows guests only virito-net drivers) The performance gain is incredible. |
18 |
However, especially for the virtio harddisk driver, make sure you change |
19 |
fstab entries, because harddisk names change from sda to vda (or just |
20 |
use them from the beginning. |
21 |
|
22 |
If you going to try out desktop vm's too i also recommend qxl with spice. |
23 |
It's really fast and it also supports copy/paste (however you need an |
24 |
service for copy/paste on linux "app-emulation/spice-vdagent") and window |
25 |
resizing. Those features also work on windows. |
26 |
|
27 |
Regarding libvirt my experience is actually very low since i setup my vms |
28 |
with an custom init script. You can take a look on it here: |
29 |
https://github.com/mm1ke/qemu-init/tree/devel |
30 |
|
31 |
I can also provide a basic kernel .config for the latest stable kernel on x64 |
32 |
and x86 if you are interrested. |
33 |
|
34 |
mike |
35 |
|
36 |
|
37 |
On Monday 22 April 2013 08:31:39 Michael Mol wrote: |
38 |
> On 04/22/2013 05:40 AM, Michael Hampicke wrote: |
39 |
> > Am 22.04.2013 03:06, schrieb Michael Mol: |
40 |
> >> So, I'm setting up number of kvm guests running Gentoo. KVM |
41 |
guests have |
42 |
> >> a pretty limited set of device drivers they need to support. |
43 |
> >> |
44 |
> >> Is there a relatively up-to-date list of kernel configuration options? |
45 |
> >> I.e. the list of NIC drivers, video drivers, I/O drivers... |
46 |
> > |
47 |
> > For net and io I always go with the virtio drivers [1]. For video: I |
48 |
> > don't care, my VMs are all headless, but when creating a desktop VM I |
49 |
> > suggest looking to vmvga or qxl. |
50 |
> > |
51 |
> > [1] http://wiki.libvirt.org/page/Virtio |
52 |
> |
53 |
> For video, I tend to use Cirrus. (I'll get the serial console stuff |
54 |
> figured out eventually; I know how that works in the guest, but haven't |
55 |
> prodded it in the host.) I didn't see a guest-side driver for vmvga, and |
56 |
> I have no idea what qxl is. (I didn't hit search engines for it, I was |
57 |
> merely searching around via menuconfig's / search.) |
58 |
> |
59 |
> Virtio drivers are awesome, of course. |
60 |
> |
61 |
> What I'm really looking for, though, is a list of all the devices the |
62 |
> qemu/kvm host can emulate, and the most-specific guest driver. I.e. If I |
63 |
> wanted to make a generic kernel configuration that contained the |
64 |
optimum |
65 |
> drivers for all possible qemu/kvm configurations, what would be the |
66 |
> minimum feature set? |
67 |
> |
68 |
> While I'm on the subject...menuconfig's search functionality indicated |
69 |
> there was a vmguest-targeted CPU accounting in the kernel, but I |
70 |
> couldn't get the HAVE_VIRTUAL_CPU_ACCOUNTING dependency flag set, |
71 |
and |
72 |
> couldn't figure out what set it. Any ideas there? |