Questions tagged [kvm-virtualization]

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.

Filter by
Sorted by
Tagged with
12
votes
5answers
5k views

what cluster management software to use for linux?

I have found the following cluster management software tools: pacemaker (clusterlabs.org), - original a Heartbeat project, focus for high-availability, will be in the next debian version openqrm (...
11
votes
2answers
5k views

kvm to vmware migration - lvm based guest + multipathing

What is recommended way of migrate from kvm to vmware in case of lvm based guest with multipathing? I found that similar questions were already asked few years ago: How to migrate KVM based VMs ...
11
votes
4answers
36k views

How to mount virtual machine's LVM partition on KVM host?

If I trying to do following on KVM host: # kpartx -av /dev/VolGroup00/kvm101_img add map kvm101_img1 : 0 208782 linear /dev/VolGroup00/kvm101_img 63 add map kvm101_img2 : 0 125612235 linear /dev/...
11
votes
8answers
21k views

Get list of DHCP clients with KVM+libvirt?

I have several VMs running on Ubuntu 9.10 via KVM+libvirt. I want to be able to find out the IP address that has been assigned to each host without physically opening a physical "console" to each ...
11
votes
2answers
6k views

How to quit QEMU monitor?

I launched KVM VM with this command: kvm /kvm/hdd/v1/v1-1.raw -m 512 -daemonize -smp 2 -nographic -net nic,model=virtio,macaddr=aa:aa:aa:aa:aa:01 -net tap,ifname=tap0 -monitor telnet:localhost:7001,...
11
votes
3answers
24k views

What KVM disk type to use?

I'm setting up a few KVM virtual guests and I'm debating which disk type to use. I haven't been able to find a good resource online that runs down the pros and cons of each. Can you help me create a ...
11
votes
2answers
7k views

KVM on Illumos (OpenIndiana vs. SmartOS)

I'm considering virtualizing a number of guests onto a single server running a recent port of KVM to Illumos. It sounds like my two primary options will be OpenIndiana and SmartOS. The distribution ...
11
votes
1answer
8k views

Delete “orphan” libvirt snapshot

I am trying to live-snapshot using KVM as per this procedure. I must have messed up at some point because I'm in a state I don't understand. My VM is called prod. It was created in file /srv/vm/prod....
11
votes
5answers
8k views

libvirt: Change dhcp-setup without restarting

I'm using libvirt and kvm to virtualize my server. I configured libvirt to start a dhcp-server on the bridge-network-interface to give the vm's their ips. Every VM's gets always the same ip based on ...
11
votes
4answers
48k views

How to decrease the size of a KVM virtual machine disk image?

How do you decrease or shrink the size of a KVM virtual machine disk? I allocated a virtual disk of 500GB (stored at /var/lib/libvirt/images/vm1.img), and I'm finding that overkill, so now I'd like ...
11
votes
3answers
7k views

virsh console and tty size

I have a virtualization server to which I connect over ssh. If I now change the size of the window it will automatically propagate to the server. It's most easily seen using stty -a, checking the ...
11
votes
2answers
11k views

Jumbo frames between KVM guest and host?

I am trying to implement a 9000 byte MTU for storage communication between KVM guests and the host system. The host has a bridge (br1) with a 9000 byte MTU: host# ip link show br1 8: br1: <...
10
votes
6answers
20k views

Convert directory to QEMU/KVM virtual disk image

I have a directory filled with data at /var/backups/disk1 that I want to convert into a virtual disk image which I'll then be able to boot using QEMU or KVM (the directory contains the file system for ...
10
votes
7answers
34k views

Is there a way to determine which virtual interface belongs to a virtual machine in a kvm host?

I'm using qemu/kvm whith bridged networking. In the host machine there are several "vnetX" network interfaces without IP. I'm looking for a way to know which vnetX belong to a virtual machine. I ...
10
votes
5answers
9k views

how to find out if running inside KVM guest

Is there a way to find out if OS(linux) is running inside KVM guest..
10
votes
4answers
35k views

Best way to share a folder between KVM host and guest

I'd like to share a folder between a KVM guest and host. I want the data to be stored only on the host. What's the best solution for that? thanks mat
10
votes
2answers
16k views

Access KVM virtual machines over VNC without port forwarding with SSH

Is it possible to access the VMs without having to forward the remote port and VNC to the localhost? I'd like to be able to VNC into the KVM server and see the VMs display.
10
votes
9answers
6k views

Is anyone using KVM in production?

I've been trying to set up a pair of servers utilising KVM on Ubuntu 9.10 to host 8 virtual machines between them and ended up with various issues from the VMs freezing, to not powering on. I had one ...
10
votes
1answer
477 views

Configuring 1:1 Nat using Firewalld for VM's

I've setup 2 vm's within my server and I'm trying to setup a 1:1 NAT for them with firewalld on CentOS 7. Currently both vm's are behind a virtual bridge (virbr0, vnet0, vnet1) and I've made copies of ...
10
votes
1answer
11k views

What is fastest way to copy a sparse file? What method results in the smallest file?

BACKGROUND: I'm copying a sparse qcow2 VM image that is 200GB in size, but has 16GB of allocated blocks. I've tried various methods to copy this sparse file within the same server and have some ...
9
votes
6answers
36k views

How to automatically start VM created by virt-manager?

I have created a virtual machine with virt-manager that runs on kvm/qemu. The machine works well when started through virt-manager. However, I would like to be able to start and stop the VM through ...
9
votes
3answers
24k views

libvirt: how can I make a domain start when the host starts?

I would like some of my domains to start automatically when my host starts (I'm using libvirt+KVM on ubuntu). I guess I could put some "virsh start..." statements in rc.local, but is there a way to ...
9
votes
2answers
36k views

What is bridge_fd?

I'm creating bridge network on Ubuntu 9.04(server) I set up following configuration file /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet manual auto br0 iface br0 ...
9
votes
8answers
2k views

Virtualization: Guest in guest?

Does it make any sense to run a virtual machine with a "master" guest, and in that master guest run many other guests? Has anyone tested this? Is it even possible? Are there better ways to accomplish ...
9
votes
2answers
29k views

Any way to release focus on a KVM guest in virt-manager without having to click Ctrl_L + Alt_L?

Is there a way to move my mouse in and out of a KVM guest in virt-manager without having to click to gain focus of the window and release focus by pressing Ctrl_L+ Alt_L? BACKGROUND I typically ...
9
votes
3answers
7k views

use LXC under heavier virtualization (Xen, KVM,Hyper-V,VMVare)

Is it possible to use LXC under heavier virtualization (Xen DomU, KVM, Hyper-V, VMVare) ? I would like to use it as security (isolation) tool, the ability to limit resource consumption is not priority ...
9
votes
3answers
34k views

KVM and virtual to physical CPU mapping

I'm a relative late comer to the virtualistion party, so you'll have to forgive me if this seems like an obvious question. If I have a server with 12 cores available, does each KVM guest have access ...
9
votes
1answer
2k views

KVM/Qemu, Ubuntu: Why do more guests CPUs enhance Disk-I/O rapidly?

We have an Heartbeat/DRBD/Pacemaker/KVM/Qemu/libvirt cluster consisting of two nodes. Each node runs Ubuntu 12.04 64 Bit with the following packages/versions: Kernel 3.2.0-32-generic #51-Ubuntu SMP ...
9
votes
1answer
25k views

Mapping USB drive direct to libvirt KVM virtual machine?

I am searching for information on mapping an existing drive (USB drive) to a KVM virtual machine using libvirt. I have been going over http://libvirt.org/formatstorage.html#StoragePoolTarget. But I ...
8
votes
3answers
30k views

Exporting libvirt+KVM virtual machines to files

I am going to retire an old libvirt + KVM server, but I need to preserve the VMs. Unfortunately, the network is down and I cannot create connections to the system. Is there any way to export the VMs ...
8
votes
4answers
22k views

Virtualized CPU cores vs. threads

We've got a KVM host system on Ubuntu 9.10 with a newer Quad-core Xeon CPU with hyperthreading. As detailed on Intel's product page, the processor has 4 cores but 8 threads. /proc/cpuinfo and htop ...
8
votes
2answers
507 views

QEMU - incorrect real disk size of a virtual drive

df and ls report different sizes on my host machine because of the difference between the allocated size and the amount of space that's actually used in the EXT4 filesystem. The problem is that both ...
8
votes
2answers
13k views

Backup of running KVM qcow2 VPS

I want a robust method of taking backup of KVM VPS of qcow2 file, while running. After searching for a long time I found that we can use rsync for live backup. I used following command for rsync: ...
8
votes
1answer
7k views

windows server 2012 resolution woes with vga

I have two windows vms, windows server 2012 and windows server 2008. Both use kvm and libvirt. I recently decided I wanted to increase my screen resolution options, which required changing from the ...
8
votes
2answers
312 views

Can i pause VM's while power-cycling iscsi storage array

Unfortunately I may have to power-cycle my storage array. In the context of using KVM with libvirt managing the Virtual Machines where i need to power-cycle the storage array, is it possible or even ...
8
votes
2answers
29k views

Changing boot device for a QEMU-KVM virtual machine

I am trying to change the boot device for a VM. I go to the VM's XML file in /etc/libvirt/qemu and set <boot dev='cdrom' />. Still, it attempts to boot from the harddrive instead of the cdrom. ...
8
votes
1answer
13k views

QEMU multiple port forwarding

I would like to forward more than one port. This command run my VM and forwards RDP port successfully: qemu-system-i386 -net nic,model=rtl8139 -net user,hostfwd=tcp::3389-:3389 -m 512M -localtime -...
8
votes
2answers
3k views

mount qcow2 snapshots

I'm running some Xen-servers and started migrating to KVM. Currently my guests are either running on raw-images or LVMs. I found libvirt providing some very nice snapshot features (virsh snapshot-...
8
votes
1answer
2k views

kvm, vlans, how to simulate a 'mirror' port

I'm working with kvm 0.14.1 on an ubuntu lucid x64 box. I've got 3 vlans configured, one that is a bridge to the host's eth1. The others are host only. I want to start playing with snort. Is there ...
8
votes
2answers
5k views

KVM to Xen migration

I've recently been appointed to create some VMs for production use, and went gung ho into making a KVM based VM instead of finding out what our production server uses. I've only recently found out ...
8
votes
3answers
10k views

set tap0 using virt-manager for bridged wireless

After 3 days I finally have kvm guests working on the network via wireless (link below - thanks!): My network is 192.168.1.0/24 on the host: sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" ...
8
votes
0answers
8k views

How do you autostart a KVM VM with virt-manager? [duplicate]

I have some VMs that I need to be started when the host system is started. How do I set them to autostart?
7
votes
6answers
34k views

libvirt network error - no 'default' network device found

My original purpose is to create centos image for openstack. Although I did directly with kvm, still wondering about error. Was using this manual for my task. After this command: # virt-install --...
7
votes
3answers
50k views

virsh: VM console does not show any output

I have a VM which I can start with virsh. According to virsh dumpxml VM1, this is the allocated pty: <serial type='pty'> <source path='/dev/pts/6'/> <target port='0'/> <...
7
votes
3answers
20k views

How to find which screen (and thus port) the VNC UI for a kvm guest has? Or how to assign it

Is there a straightforward way to find the VNC screen (i.e. port number minus 5900) onto which a KVM guest is bound? My guests are all configured to run with VNC enabled, but the order in which they ...
7
votes
3answers
15k views

How to run fsck on guest VMs from KVM

I have a KVM server and one of my guest machine is crashed and prompting form fsck check. Now I dont have console access or dont have the root access of the guest VM. Is there any way that I can ...
7
votes
3answers
29k views

Install windows 2012 R2 over KVM-virtualizaton

I'm trying to install Windows Server 2012 R2 over linux KVM-virtualization. The installation process stops and requires drivers to continue. I'm trying with virtio drivers from fedora but doesn't ...
7
votes
5answers
1k views

KVM+DRBD replicated between two active-passive servers with manual switching

I need to build 2-node cluster(-like?) solution in active-passive mode, that is, one server is active while the other is passive (standby) that continuously gets the data replicated from active. KVM-...
7
votes
3answers
4k views

Optimize SSD storage on Centos 6.6 - KVM

I have a Dell R610 with hardware: H700 raid card 4xMicron MX100 512GB -> configured raid 10 I have installed Centos 6.6 on this server and configured: KVM virtualization Volume Group for raid 10 ...
7
votes
3answers
12k views

attaching usb dongle to KVM VM

I'm struggling to connect a usb device, that gets detected correctly by the host, to a kvm vm. I have a freshly installed Ubuntu Server 14.10 as KVM/QEMU host. I set up an Ubuntu vm using this ...

1
2
3 4 5
41