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

learn more… | top users | synonyms

11
votes
2answers
1k views

Weight-based block IO control for VMs

I use KVM to manage my virtual machines. I am trying to limit the resources provided for VMs. I am able to limit the CPU and memory allocated for VMs using libvirt/cgroups. Now I want to control the ...
10
votes
3answers
3k views

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? ...
9
votes
2answers
2k views

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 ...
7
votes
4answers
9k views

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 ...
6
votes
7answers
6k views

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. ...
6
votes
1answer
2k views

Linux - LXC; deploying images with tiniest possible X11

is it currently possible to setup LXC containers with X11 capabilities? I'm looking forward for the lightest available X11 container (memory-wise), hardware acceleration a plus but not essential. If ...
6
votes
3answers
5k views

How do I connect a serial terminal to a KVM instance?

Perhaps I'm misunderstanding what KVM is capable of, but the ability to add/remove hardware on the VM seems to imply I can add a serial port that then acts as a terminal. So, my questions are: ...
5
votes
2answers
692 views

Good tutorial for setting up a KVM/Xen box and advice on which would be better

I've got a dual xeon, 2GB, 75GB hd server that I'd like to turn into my dedicated virtual environment. Currently I'm using VirtualBox locally to run a mock cluster for Cassandra and Nginx/Haproxy, ...
5
votes
2answers
4k views

GPGPU/CUDA in KVM or Xen

We would like to enable direct access to CUDA-enabled GPUs within either KVM or Xen (or Citrix Xenserver). Specifically, we want to use PCI passthrough to access an NVIDIA Tesla S2050 unit, which is ...
5
votes
3answers
608 views

Is it possible to run KVM over a qemu emulated powerpc architecture

I understand that qemu uses binary translation to emulate machines, so irrespective of the underlying architecture, it can provide emulation. And, KVM uses Hardware Virtualization technique to make ...
5
votes
1answer
428 views

Linux process scheduling - Cap/Weight based?

I am just trying to understand the basics of Linux scheduler. Is Linux scheduler a Cap based or weight based scheduler? I was previously using Xen. Now I am moving from Xen to KVM. I read VMs are ...
4
votes
3answers
2k views

Host CPU does not scale frequency when KVM guest needs it

I have asked this question on serverfault, but it could also have been posted here. I will synchronise the answers if one is found. Observation: I have an HP server with an AMD dual core CPU (Turion ...
4
votes
3answers
549 views

Debian + KVM: Which version to use? Stable or “new”?

I have Debian 6.0.4 (Squeeze) x64. Nowadays I use KVM stable package from apt-get. Could you recommend me using a compiled newest or newer version instead of using the old one KVM package from Debian ...
4
votes
3answers
532 views

Error when try to install KVM on CentOS

I am trying to install KVM from Installation doc. When I run the command modprobe kvm-intel I get the error FATAL: Error inserting kvm_intel ...
4
votes
2answers
842 views

How to use a 64-bit CPU in KVM?

According to tests the Mac Mini 3,1 CPU is 64-bit (grep -q "^flags.*\blm\b" /proc/cpuinfo) and supports Intel virtualization extensions (grep -q "^flags.*\bvmx\b" /proc/cpuinfo). However, after ...
4
votes
1answer
2k views

How to connect a KVM guest to the internet with wireless

Because my wireless network adapter does not support bridging, it is really difficult to get the guest VM to connect to the open internet and have an IP address in the same network as the host. I am ...
4
votes
2answers
210 views

Copying large file causes excessive swap

On a mid-class CentOS 6.4/64 server with 32 GB RAM, 3 TB free disk space, operating as KVM hypervisor, I start copying a 200 GB file to a destination in the same local filesystem. In fact, this file ...
4
votes
1answer
3k views

QEMU-KVM and internal DHCP server

I have set up a few soon-to-be production VMs running on QEMU-KVM on Ubuntu 10.04 LTS. As for networking, I chose the "NAT" option in Virt-Manager and each VM now gets an IP address 192.168.122.x ...
4
votes
2answers
4k views

bridged networking with kvm

I'm trying to get a guest virtual machine connected to my network using bridging. I've come across a couple of resources online, but they seem to be out of date, deal with xen or Ubuntu or don't seem ...
4
votes
2answers
1k views

CPU usage of KVM

I have a linux host with 4 KVM linux guests. All the guest are pretty much idle, having a load of <0.1 inside the guest. Now, if I do a top on the host, each KVM process is using something about ...
4
votes
2answers
2k views

How can I restore default window size in KVM/QEMU

In KVM/QEMU machine window size by default matches guest OS resolution. But if I resize windows (accidently) how to restore default size?
4
votes
1answer
350 views

SELinux interfering with host/guest file sharing using KVM

I'm running Fedora 17 with KVM and the virtual machine runs okay. I tried to follow this to get access to a file on the host system but SELinux prevents the VM from accessing any files other than ...
4
votes
3answers
123 views

What is contained in these addresses?

I am working on MUlti-processor record-replay feature of a virtual machine. I have a log of non-deterministic memory access done in the virtual machine by virtual CPUs. A very high proportion of these ...
4
votes
3answers
2k views

How do I send a shutdown event to a QEMU guest (OpenBSD)?

I'm using virtualisation solely to install OpenBSD onto the bare hardware, and during the installation, the redirection to the serial port didn't get configured, so, I ended up with the system ...
4
votes
1answer
1k views

kvm doesn't load Windows 8

I'm launching kvm with the following parameter: kvm -m 2g -smp ncores=2 -hda disk.img -cdrom win8.iso My CPU has VT support and enabled, EDIT I seems to have limited emulate type: pc ...
4
votes
2answers
1k views

Clipboard doesn't work in KVM.

I have a RHEL 6 Desktop with a windows KVM. How could I get the clipboard working, just as there is a solution in VirtualBox to share the clipboard between host and guest?
4
votes
0answers
160 views

Socksifying a qemu-kvm using tsocks

I'm trying to socksify a qemu-kvm using tsocks, but I have no success. I don't know if qemu access directly the hardware, skipping the OS or something like that, but I wasn't able to do this feat. ...
3
votes
2answers
659 views

How to Add Extra Disks on KVM based VM

I installed Redhat 6.4 on KVM Server. Right Now there is only One Disk /dev/vda. Now I need to add extra Disk like /dev/vdb I tried adding New Volume but it is not showing when I do fdisk -l How to ...
3
votes
3answers
6k views

How to create a dupe of a KVM/libvirt/virt-manager VM?

I'm a bit lost with virt-manager / libvirt / KVM. I've got a working KVM VM (Windows XP) which works nicely. The VM is backed by a 4GB file or so (a .img). Now I want to do something very simple: I ...
3
votes
1answer
6k views

How to install KVM on CentOS 6

I can't install kvm on CentOS. I got these errors: [root@localhost etc]# yum groupinstall kvm -y Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * base: ...
3
votes
2answers
102 views

How long could I work with stable release after it is no more supported?

I'm still working on Debian squeeze which will be supported for only about 1 more year (it is server with KVM). How long is it possible to work on an old version of Debian (after Debian gets old) when ...
3
votes
2answers
4k views

How to copy qemu raw images?

I want to backup kvm virtual machines and copy machine's images another path or usb disk? How to copy " qemu raw images"?
3
votes
1answer
388 views

Which user group can use the 'tap' net device?

I use the 'tap' net device with KVM to get my vm connect to the Internet. But I have to be root, or use 'sudo', which is inconvenient. I think I can put my user account into some group so I can access ...
3
votes
2answers
4k views

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 ...
3
votes
3answers
2k views

Installing centos and freebsd with serial console

I am trying to install Centos 5.7 and FreeBSD 8.2 on KVM with serial console access. This is what I used: sudo virt-install -n freebsd -r 1024 --vcpus=2 --os-type unix --accelerate -v --disk ...
3
votes
1answer
682 views

Install grub on LV container for VM

I'm having difficult time installing grub in LVM LV container for a VM. This is the partition table: # parted /dev/mgtvg/linux2os print Model: Linux device-mapper (linear) (dm) Disk /dev/dm-7: 129GB ...
3
votes
2answers
1k views

How to know if a process is attached to a tap interface?

I sometimes come upon machine with tap interfaces (eg, when KVM is running). How can i know which process is attached to the tap interface ?
3
votes
1answer
477 views

What happens if you add a vlan-device to an interface that already is a vlan device?

When configuring an application that creates vlans by using vconfig add, I discovered that it was adding a vlan device to something that was already a vlan device. Effectively, what happened was: # ...
3
votes
2answers
2k views

Mouting a kvm qemu disk image with multiple partitions

I am trying to mount a KVM-qemu disk image with this command: sudo mount -o loop,offset=32256 centos6.img /mnt/centos6. But it shows this error: you must specify filesystem type. As I have more ...
3
votes
2answers
1k views

How to install kvm in Debian (Lenny) over powerpc

I am emulating powerpc using qemu-system-ppc on top of x86, and running debian-lenny-ppc with it. I want to install kvm inside that debian. I have learned that the kvm and qemu-kvm packages are not ...
3
votes
0answers
203 views

VGA passthrough - Code 43 with KVM and libvirt on all AMD hardware

I've set up a system with an R9-270 and an ATI Rage (PCI graphics card, doesn't use radeon driver) on an FX-8320 and an ASRock 970 Extreme3 R2.0 motherboard with the intention of running Debian Wheezy ...
3
votes
2answers
143 views

How to report back system installation progress

I'd like to do some reporting from the system setup progress for virtualised (libvirt/kvm) Ubuntu servers. I expected some kind of such system to already exist out there, but couldn't find anything. ...
3
votes
1answer
1k views

qemu - two clients (tap0 & tap1) via br0 can't ping eachother but server pings ok

I've got: A host system running Ubuntu with KVM (functional) Two clients, one Ubuntu and one Windows 7, nothing fancy. I've also setup (see below) a bridge via br0 for the clients: br0: ...
3
votes
0answers
164 views

Setup Cloudmin on Centos installed in LVM

I installed CentOS 6 with default LVM partition pattern. according to this pattern Can I use Cloudmin and store KVM Disks in LVM as Logical Volume? I think Cloudmin requires creating new logical ...
2
votes
2answers
82 views

Why do I see more processes in KVM than in OpenVZ?

I've got a 512mb Centos 6 VPS running on KVM. Now another VPS from a org. I manage is running on OVZ. When I type top on the KVM one, I get a whole list of all sort off processes. But when I do this ...
2
votes
3answers
561 views

How do I prevent time drift in a Debian guest on a CentOS KVM host?

I know I can install ntp in the guest, but my confused understanding of what I've Googled so far suggests this shouldn't be necessary. The Host is CentOS 6.3 and guest is Debian Wheezy, which seems ...
2
votes
2answers
1k views

Installing Freebsd as guest OS on kvm without using VNC

I want to run Freebsd as a guest OS on kVM running on Ubuntu server 10.04. All howtos mention VNC as a necessity to start and finish the installation process. Can I install freebsd on kVM without ...
2
votes
4answers
1k views

Run if statement on remote machine

I'm trying to run a set of commands on a remote machine, that includes an if statement. I'm using this to shutdown a list of kvm instances. The first line should be fine, but could be prettier, rest ...
2
votes
1answer
838 views

What is a framebuffer device and is it required to obtain a higher resolution?

I am running a gentoo guest OS on qemu-kvm. I can only get resolution of 800x600 in it. I want to be able to get a higher screen resolution. xrandr gives the following output : xrandr: Failed too ...
2
votes
2answers
178 views

Resizing LVM within a in KVM-based VPS

I have a VPS (based on KVM, not sure which storage technology) for about two years now. It's mainly a learning machine, a utility proxy, or a seldom-used VPN gate, or whatever--no real work, no ...