Questions tagged [kvm]

KVM is the Kernel Virtual Machine, a virtualization hypervisor built into the Linux kernel.

KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko. KVM also requires a modified QEMU although work is underway to get the required changes upstream.

Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc.

The kernel component of KVM is included in mainline Linux, as of 2.6.20.

KVM is open source software.

1004 questions
67
votes
7 answers

How do I get my mouse back from QEMU/KVM?

I'm running QEMU/KVM on Debian Testing x64 with this command: kvm -m 1024 -hda win7.img -cdrom win7x86.iso -boot d -net user But when I click inside the virtual machine, QEMU captures my mouse and won't let it go. I thought the key combination to…
Michael A
  • 1,501
  • 5
  • 19
  • 33
62
votes
8 answers

Should LVM partitions be used in virtual machine images?

Should LVM be used for the partitions when creating VM images (e.g., KVM images)? It seems like it adds complexity if you want to, say, mount a qcow2 image in the host if the image has LVM partitions. On the other hand, it doesn't seem like the…
Lorin Hochstein
  • 8,077
  • 17
  • 50
  • 56
56
votes
10 answers

Use virt-manager to share files between Linux host and Windows guest?

Is it possible to use "Filesystem Passthrough" virtual hardware option inside virt-manager to share a folder on my Linux host with my Windows guest? I found some tutorials for how to do this with a Linux guest, but when I try this with my Windows…
Blaker
  • 661
  • 1
  • 5
  • 3
44
votes
2 answers

How to create a VM from scratch with virsh?

It looks like that you cannot create a brand new VM with virsh unless you already have a working XML file. I have just installed all the needed bits for QEMU-KVM to work, and need now to create my very first VM. How to? Hint: I don't have graphics!
EnzoR
  • 893
  • 1
  • 7
  • 11
38
votes
1 answer

What's the difference between KVM, QEMU and libvirt?

I'm trying to understand how all the components of the VM ecosystem fit together. What's the difference between: KVM QEMU libvirt Which is controlled by virsh and virt-install? This comment says that libvirt is an abstraction ontop of QEMU, which…
falsePockets
  • 758
  • 1
  • 7
  • 13
35
votes
14 answers

How to find the IP address of a KVM Virtual Machine, that I can SSH into it?

I have follow this guide (Virtualization With KVM On Ubuntu 11.10) to setup my KVM (Virtual Machines Software) on my Ubuntu 11.10 Server. However, I didn't setup my VM's IP address when creating the VM, instead of using: vmbuilder kvm ubuntu…
Xianlin
  • 1,013
  • 5
  • 14
  • 20
29
votes
2 answers

Emulate unplugging a network cable with qemu-kvm

[Background: I'd like to actually test How to take down a static network interface when not connected? ] I'm setting up a QEMU-KVM virtual machine using libvirt (via virt-manager). I put two NICs on it (both virtio). They are bridged to a physical…
derobert
  • 107,579
  • 20
  • 231
  • 279
28
votes
1 answer

Can I pass through a USB Port via qemu Command Line?

I'm launching a VM using qemu-system-x86_64. I know two ways to pass through a USB device. Say for example, I had a mouse that showed up in lsusb like Bus 003 Device 011: ID 6ade:9582 Amazing Mouse Maker I could pass it through using -device…
DeepDeadpool
  • 1,185
  • 1
  • 12
  • 22
25
votes
4 answers

Sharing an X server (session) across computers

I have 2 computers (both running linux) and I'm currently using synergy to use them. This is great, but now I'm wondering, is there any way (is it possible? being worked on? tried and failed? definitely not possible?) to not only share a…
Falmarri
  • 12,897
  • 17
  • 58
  • 71
23
votes
6 answers

How to improve Windows perfomance when running inside KVM

I use Ubuntu 12.04 64-bit and KVM, my CPU is Core i5 3.3 GHz and I have 8 GB of DDR3 RAM. I run Windows 7 in KVM and it's extremely slow. My co-worker use Debian on the same PC configuration and can run Windows 7 extremely fast! Where can be my…
Guy Fawkes
  • 344
  • 1
  • 2
  • 10
23
votes
1 answer

how to create custom vagrant box from libvirt/kvm instance?

There are many resources on the Internet to create a custom vagrant box from a VirtualBox instance. But I want to know a direct method to create a custom vagrant box directly from a kvm/libvirt instance . Please don't suggest vagrant-mutate or any…
pl_rock
  • 779
  • 1
  • 6
  • 12
21
votes
2 answers

How can I store files in the mounted shared folder?

I am running a Fedora Workstation virtual machine on an Ubuntu host. I created a folder /home/cl/share in the guest and mounted the shared folder /media/cl/system/virtual/share as root following the instructions from linux-kvm : mount -t 9p -o…
cl-netbox
  • 871
  • 1
  • 8
  • 18
19
votes
7 answers

Install VM from command line with virt-install

Disclaimer : I now use virt-manager to create and manage my VM and it is really a life saver. It can be used remotely (from a third machine, typically your workstation) if the host does not have graphical display. The occurrences of vnc in the…
Jérôme
  • 1,898
  • 3
  • 26
  • 47
18
votes
2 answers

Faster graphics in KVM guest

Is there any way to improve the graphics performance of a KVM guest? I suspect that the question is too general, so I will give my setup and requirements. My ultimate goal is to use an Ubuntu guest as my primary OS. The only graphics-intensive…
Mike
  • 181
  • 1
  • 1
  • 4
17
votes
2 answers

How to check which hypervisor is used from my VM?

So I'm running a VM somewhere and want to know what hypervisor the host is running. Any way to check whether it's running KVM or in a container? The vm is running Ubuntu
Sam Stoelinga
  • 401
  • 2
  • 4
  • 11
1
2 3
66 67