Questions tagged [libvirt]

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt runs on Linux, Solaris and Windows.

libvirt supports the following hypervisors: KVM/QEMU, Hyper-V, VMware, Xen, VirtualBox, OpenVZ, LXC, User Mode Linux, and others.

libvirt suports the following storage: local file images, raw disk storage, LVM, FibreChannel, iSCSI, NFS.

650 questions
3
votes
1 answer

libvirt: set hostname using dhcp in virtual network

I've configured a host-only (aka private) network for a group of VMs on a CentOS 7 host. I've created static leases in the DHCP section for the virtual network. The IP address is getting set correctly, but the hostname is ignored. Instead, it's…
orodbhen
  • 181
  • 9
3
votes
4 answers

iptables / KVM forward port

I have a server with one external IP address (e.g. 1.2.3.4). On that server I use libvirt to run virtual machines. Now I want to access a virtual server on my host via ssh (port 1234) from the outside. On my host system I got a network interface…
Flatron
  • 318
  • 2
  • 5
  • 19
3
votes
1 answer

Clone KVM virtual machine with snapshots

I've created a virtual machine using virt-manager and saved a snapshot of it's current state. Now I'd like to create an exact duplicate machine with all snapshots from the first machine. How could I accomplish that?
michaelr524
  • 139
  • 1
  • 4
3
votes
1 answer

Install virt-sysprep on Ubuntu 14.04

I'm using vagrant with vagrant-libvirt and I want to create a package via the command-line: vagrant package --output ubuntu14-base.box I've got an error around virt-sysprep being absent (confirm after a search in the system). I tried install those…
3
votes
1 answer

How to create a new domain from an existing base image in virsh

Is there a way of creating a domain with virsh from a base image? I have looked around and found that it is possible using virt-install, however I would prefer it if this was done purely through virsh, as I am using libvirt language bindings just to…
brti
  • 31
  • 1
  • 3
3
votes
1 answer

Best options for KVM/qemu/libvirt VM migrations without shared storage

My team has recently been tasked with improving the virtualization infrastructure at the company and one thing we're looking into doing is speeding up migrations. We use local storage only on all VM Hosts. One challenge is that we have thousands…
seajoshc
  • 61
  • 1
  • 5
3
votes
1 answer

XFS/EXT4: Why is actual file size on disk larger than apparent size? Clarification

On a CentOS 7.1.1503 (3.10.0-229.el7.x86_64) system running KVM/qemu on an XFS filesystem, I'm attempting to work out what specifically is adding additional space to a VM diskimage file. $ ls -ls --block-size=1k 15728648 -rw-------. 1 qemu qemu…
Chrisxb
  • 31
  • 3
3
votes
2 answers

Qemu+libvirt+kvm significant performance lag in VM's

I am troubleshooting poor performance on our new VM host machine which is a Dell PowerEdge R415 with hardware RAID. We've got about 20 VM's running like this: qemu-system-x86_64 \ -enable-kvm \ -name rc.stb.mezzanine -S \ -machine…
3
votes
5 answers

KVM virt-clone while the VM is running

Is it possible to clone a running kvm machine without tools like virt-clone? They already have the original vm in production, I cannot shut it down. If I don't care about temporary data corruption (what an initial fsck can fix) on the clone, can I…
zino
  • 61
  • 1
  • 5
3
votes
2 answers

Installing a Windows guest with virtio in a single step (Debian)

I am trying to create a Windows 7 (32bits) with virtio disk and network in a single step using virt-manager. I've been trying to follow the step-by-step procedure here. However there is no such thing as the following on Debian: # yum install…
malat
  • 196
  • 2
  • 11
3
votes
1 answer

How to disable lbvirt network DNS

Is there a way to disable DNS in libvirt network? I want to have custom configured dnsmasq for local DNS caching but libvirt's dnsmasq holds 53 port.
insider
  • 211
  • 2
  • 7
3
votes
1 answer

Restarting the networking on the HOST makes GUEST lose connection

I am probably missing something but have a KVM virtualized HOST/GUEST setup. The GUEST is using a bridge (br0) on the HOST for internet connectivity. When I make a "/etc/init.d/networking stop ; sleep 5 ; /etc/init.d/networking start" on the HOST…
Onitlikesonic
  • 1,201
  • 5
  • 17
  • 24
3
votes
2 answers

Cut'n'paste between X11 Desktop and the virt-manager VNC graphical console of a Win7 VM guest on a Server

I have a licensed copy of MicroSoft Windows 7 professional installed and running as guest on my Linux server running qemu-kvm. This works just fine. But I was unable to figure out how to Cut'n'paste text selections from a window of the Win7 VM…
pefu
  • 679
  • 1
  • 6
  • 24
3
votes
1 answer

Windows guest on KVM/Qemu suffers horrible key lag

Host OS is Arch Linux with the following versions:- qemu 2.1.0-2 libvirt 1.2.7-1 linux 3.15.8-1 Guest OS is Windows 7 64-bit. This problem did not exist when I first created this VM and started using it, but rather appeared at some point. I can't…
JohnCC
  • 292
  • 1
  • 6
  • 14
3
votes
3 answers

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 on their function. I normally use…
Anonymouslemming
  • 891
  • 4
  • 15
  • 26