1
vote
2answers
19 views

Any suggestions on setting a vswitch to allow a kvm guest to pxe install from an external boot server?

Any suggestions on setting a vSwitch to allow a kvm guest to pxe install from an external boot server? I'm trying to configure a vSwitch, in Fedora 20, so that I would be able to do a net-install, of ...
1
vote
2answers
47 views

How to setup IPTables on KVM host - iptables-persistent is being ignored

I'm trying to setup some specific IPTables rules on an ubuntu 14.04.1 host that runs some KVM guests. The box has multiple NICs with multiple IP addresses and the guests use different addresses based ...
0
votes
1answer
31 views

KVM Ubuntu Guest cannot connect to the internet on bridged networking

I have Ubuntu 14.04 (64 bits) + KVM Host with 2 NICs: - eth0 connected to the "public" network - eth1 connected to the br0 bridge with a private ip address range From Host I can access internet, ...
1
vote
0answers
56 views

Poor network performance with KVM (virtio drivers) - Update: with vhost_net

I've set up several KVM based networks before, and never encountered this issue, can't for the life of me think what I'd have set up differently previously. Setup Basically, Ive got and entirely ...
-1
votes
1answer
26 views

KVM unix socket file permission for VNC

I'm using kvm-qemu/libvirtd for a bunch of kvms. I'm using vnc for the graphical interface. By default, it listens on a tcp socket. I want to have it listen on a unix socket instead. Looking at some ...
0
votes
0answers
32 views

CentOS Host KVM Virtual Machine running a Windows VM - No internet access

I've installed a KVM virtual machine on a CentOS host using libvirt. I've also set up a bridged connection from the interface en0:4 running on IP x.x.x.15 to br0. (The IP is a public one). Running ...
0
votes
1answer
32 views

EL6/KVM guest dies with “pthread_create failed: Resource temporarily unavailable”

I've got a CentOS 6.5 x86-64 KVM server with a bunch of guest VMs of different breeds, mostly EL5 and EL6. However one and only one of them keeps crashing every couple of days with: pthread_create ...
0
votes
1answer
82 views

How can I make Windows Server 2012 running on KVM boot with virtio rather than IDE?

I have Windows Server 2012 Essentials running on KVM in Ubuntu 14.04. I've had some problems detailed here Windows Server 2012 on KVM on Ubuntu 14.04. Runs well for a while and then slows down I ...
1
vote
0answers
47 views

Change sender-IP for VM in libvirt behind NAT

I have a server with my own public /28 IPv4 Network. On this server I have some vServers, done with KVM/libvirt. These vServers are connected with a virtual network, NATed to the internet. Every ...
0
votes
2answers
128 views

Force an LXC container to use its own IP address

Sorry if this question has already been asked. I could not find it, I have this setup : +---------------------------------------------------------------------------------------------+ |HOST ...
0
votes
1answer
49 views

How to start a new instance of QEMU based on the same image and snapshot?

I have a QEMU image (qcow2) with a snapshot stored in it. Right now I'm using libvirt to start it. However, I want to be able to run more than one instance of the same image+snapshot. I guess I can ...
0
votes
1answer
210 views

dnsmasq(as DHCP server) isn't working in KVM+libvirt envirmont

I'm using dnsmasq as DHCP server in VM environment. But It didn't working. I disabled basic DHCP feature in libvirt. <network> <name>default</name> ...
0
votes
1answer
95 views

check a vps guest memory usage and CPU usage

I have vps guests that are managed by KVM and libvirt. Using virt-df, I am able to check the real disk usage of each vps guest. #virt-df [--options] -d domname Is there a similar utility tool to ...
0
votes
0answers
64 views

Cannot add any virtio discs in virt-manager, how to fix?

I’ve just freshly installed virt-manager and libvirt-bin (and related packages) on a Debian sid system, and have a strange problem I’ve not yet seen on another similar installation: When creating a ...
2
votes
1answer
189 views

Persistent Network Configuration using KVM and libvirt

Our environment will have a KVM host setup dynamically using kickstart (easy enough). The hard part is dealing with network configuration and keeping VLAN configuration (and possibly bridge/host ...
1
vote
2answers
178 views

How do I configure bridged networking for VMs

I'm setting up a KVM virtualization server in CentOS 6. How do I configure bridged networking? (I think I need network interface eth0 to be accessible to VMs) I have tried to follow this guide: How ...
0
votes
1answer
59 views

How to mount a URL as a CD-ROM on QEMU?

I'm wondering if it's possible to specify a URL for the cdrom option on QEMU, and if so how would I go about doing that? Normally I'd mount an iso like this: <disk type='file' device='cdrom'> ...
-1
votes
1answer
47 views

Live migration (kvm) not working if any I/O operation is in progress [closed]

I did this experiment: on VM I started watching a video on youtube. While video was in progress I started migration. Migration did not complete until video was not finished. I did another experiment: ...
2
votes
1answer
271 views

Ubuntu/KVM Bridge Interface IP Assignment

I have a Ubuntu 12.04 LTS machine running KVM/libvirt. It has two physical ethernet interfaces. I have dedicated eth0 as the primary interface and configured bridging on eth1 for my VMs. The KVM host ...
0
votes
1answer
40 views

cpu cache size in KVM vm differs from real cpu cache size

Although I'm running KVM/qemu with the <cpu mode='host-passthrough'/> option, the guest machine has only 4096 KB of cpu cache, while the host cpu has 8192 KB (i just verified the output of ...
1
vote
2answers
70 views

KVM Disk Formats: Portability

I have recently begun experimenting with the KVM virtualization infrastructure. After deployment, I used virt-manager running on a management computer to build my first guest. I notice that, by ...
0
votes
1answer
122 views

assign public IPs to vm guests

I have a set of public IPs for virtual machines. Each unique public IP is to be assigned to a unique guest. With bridged networking I share eth0 with KVM machines. The ifcfg-eth0 file has ...
1
vote
0answers
64 views

Bridging Adapter in Ubuntu 12.04 LTS for KVM

Fresh install of Ubuntu 12.04 LTS with libvert/KVM installed. I have 2 virtual machines that I need need to be on the same LAN as the host. The host has two physical interfaces eth0 and eth1. eth1 is ...
1
vote
1answer
275 views

Why can't I shutdown running kvm instance?

I have running kvm instance: =# virsh list --all Id Name State ---------------------------------------------------- 2 debian-test running When ...
1
vote
1answer
185 views

virt-install ignoring vnc port/listen?

I'm trying to create kvm machine on remote host. The host is running debian testing. Did use this command: virt-install --name debian-test \ --os-type=linux \ --os-variant=debianwheezy \ ...
3
votes
1answer
626 views

How to replace QEMU binary with newer version for libvirt live snapshots

This is my first post, so please be gentle. :) My CentOS 6.5 box has a QEMU binary that does not support live external snapshots. This is the command I attempt on the virsh CLI, and its output: ...
2
votes
1answer
715 views

libvirt and network filtering with nat - iptables overrides

At first, I want to say: I know, it was done initially wrong and I want to avoid doing everything again from the scratch because of general downtime. I am running libvirt/KVM on RHEL. I've got VM ...
1
vote
1answer
99 views

libvirt Storage Backend

libvirt supports several storage backends[1] for hosting the image on a different server. We have 6 servers running about 40 VMs. Up to now we use local storage, but to minimize the downtime we want ...
0
votes
1answer
233 views

OpenNebula can't start vm after reboot

I installed a fresh install of Debian-7-opennebula-4.4.0-1.tar.gz on a fresh Debian and got a VM to start via sunstone. The output of libvirt was: 2013-12-26 12:48:12.919+0000: starting up LC_ALL=C ...
1
vote
1answer
863 views

Libvirt: ERROR No domains available for virt type 'hvm', arch 'x86_64', domain type 'kvm'

Installed virt-man like this $ apt-get install virt-manager $ modprobe kvm $ modprobe vhost-net Launching libvirt guest $ virt-install --virt-type kvm \ --name centos-6.5 --ram 1024 \ ...
1
vote
1answer
71 views

Prevent hijacking IPs in a bridged network (KVM/libvirt)

Is there a solution to prevent a VM user assign/use IP addresses he doesn't own but are routed over the same bridge like his own addresses? The current setup looks like this with libvirt and KVM: ...
1
vote
1answer
106 views

virt-viewer slower than virt-manager when viewing

I've got a thin client server in which I have a few VM's for users under KVM which I manage through virt-manager. What I've noticed is if I start a VM guest on a thin client using the command ...
0
votes
2answers
119 views

KVM XML config file

I have a KVM server that I expanded the LV of then rebooted. However now when booting I get the error: error: Failed to create domain from /home/kvm/kvmx/kvmx.xml error: (domain_definition):1: ...
2
votes
2answers
107 views

libvirt (KVM) inventory application?

I've got a bunch of LibVirt-managed (locally using virsh) KVM VMs on standalone Linux hosts (local KVM, local storage). Is there any web-based application out there that will track the inventory - ...
0
votes
3answers
538 views

Guests can't access KVM host server by name although nslookup and dig returns correct record

So I have a KVM host that also runs an apache server with some yum repos. The VM guests are connected to the default virtual network, which is configured to offer DHCP and forwarding with NAT on ...
0
votes
1answer
174 views

add a cgroup controller into libvirt

libvirt by default has cgroup controllers of ["cpu", "devices", "memory", "blkio", "cpuacct"] as shown in qemu.conf. I want to add one more controller of net_cls. I tried to modify the config file to ...
-1
votes
1answer
212 views

Import virtualBox appliance to KVM

Im new using KVM as a virtualization solution. Currently I'm using VirtualBox to manage my virtual machines in my personal computer, but I'm moving my virtualization to a Server, so I set up a Linux ...
1
vote
1answer
204 views

Qcow2 backing image and overlay idea

I have 2 KVM servers running Windows Guests. I want to create a Qcow2 image with Windows 7 on it, install the base software needed, and then make that a backing image, read-only, with one qcow2 ...
0
votes
1answer
71 views

Keep guest time after shutdown using KVM/libvirt

I use KVM/libvirt based virtualization. Some of vm guests have set date far in future (2-3 years, different month, day, etc) After each guest shutdown down, the date is being set to host date ...
0
votes
1answer
191 views

kvm/qemu via libvirt on CentOS - pass string or key/value or file to guest

I have a sizeable deployment of qemu/KVM VMs already, managed through libvirt. They're all CentOS 5 or 6 hosts and guests (the kernel lacks the 9p filesystem flags, so the "mount" shared filesystem ...
0
votes
0answers
118 views

qcow2 Disk size much bigger than virtual size

What would cause this? ls shows the qcow2 to be 241G, in the VM it only has ~ 160 GB drive, no unpartitioned space. Win 7 VM, Host = EXT4 2.6 Kernel virsh 0.9.10 file format: qcow2 virtual size: ...
0
votes
1answer
111 views

virsh snapshot-create persistent through reboot/ domain destroy-start

If i take a snapshot of a qcow2 image backed domain via virsh snapshot-create domainID and I shutdown the machine (and probably destroy the domain if virsh list still shows it running), will that ...
2
votes
4answers
2k 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 ...
0
votes
0answers
57 views

virsh-snapshot delete behavior in libvirt

What happens to the data after performing a virsh-snapshot delete of the most current snapshot for a domain? Does it merge the data into the existing qcow2 file? Will any new data as of the snapshot ...
0
votes
0answers
94 views

LinuxBridge Plugin configuration seems broken in my OpenStack Grizzly set-up, but how to debug it and fix it?

I used theses scripts (OpenStackGeek) to install a Single-node OpenStack Grizzly on an Ubuntu 13.04. Everything seemed to work quite fine until I tried to reach one VM. Unfortunately, no VM was ...
3
votes
1answer
200 views

KVM: Run a script when a guest is shutdown from within?

I am running KVM as virtualization engine. Is there a way to make QEMU/libvirt run a script on the host when a guest is shutdown from within (shutdown -h now)? I want to be able to run some custom ...
1
vote
0answers
234 views

nwfilter: Generated firewall rules don't make any sense

I'm trying to configure nwfilter for KVM, but so far I haven't managed to figure out a working configuration. Network setup: The dom0 (Debian 7.1, kernel 3.2.46-1, libvirt 0.9.12) is connected via ...
-2
votes
2answers
123 views

VM running perfectly when its disk image is deleted? [closed]

Does anyone has such experience that you accidentally delete the used disk image when virtual machine is running? I would expect that the virtual machine will fail immediate, but, surprisingly, it ...
2
votes
2answers
549 views

How to detect hypervisor host name/IP from inside a KVM virtual machine?

We have a small fleet of KVM/libvirt hosts with a few hundred virtual machines on it, managed by a group of sysadmins in disparate locations. I've run into a problem where I am connected to a virtual ...
1
vote
0answers
89 views

KVM .img can not boot after resized by virt-resize

I have a CentOS 6.4 image install by KVM on Ubuntu 12.04 amd64 host. Here is the disk layout of centos.img # virt-filesystems --long -h --all -a centos.img Name Type VFS ...