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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
100 views

Sporadic routing(?) issues

We are running several virtual machines using KVM with libvirtd with a routed network (the host systems routes an extra subnet for the virtual machines). Host and Guest OS is Gentoo (host on amd64, ...
user avatar
  • 566
9 votes
2 answers
39k 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. ...
user avatar
2 votes
1 answer
736 views

can't ping/ssh new libvirt instance

I have a working virtual host that was Ubuntu-Server Lucid (10.4). I've been using it for a while and has several functional guests created on Lucid. Today I upgraded to Maverick, then to Natty (11....
user avatar
  • 131
2 votes
1 answer
1k views

kvm snapshot (libvirt)

Iam managing kvm by libvirt and using qcow2 file format. I can create snapshots of running wm with snapshot-create command, but if I transfer my qcow2 image to another host and define transfered host ...
user avatar
4 votes
2 answers
2k views

upstart pre-stop script

I have libvirt/KVM set up on my Ubuntu and before shutting down the machine I would like it to attempt shutting down the VM's using an ACPI poweroff (virsh shutdown), then I want it to stop shutdown ...
user avatar
  • 752
26 votes
1 answer
64k views

how to delete a guest after creating it with virt-install

I created a KVM guest from the command line with virt-install where I used the command line options --disk pool=vg0,size=20 and --name virt1.example.com. How can I delete this KVM guest from the ...
user avatar
3 votes
1 answer
5k views

how to install a CentOS 6.0 KVM guest on a CentOS 6.0 host server with virt-install and PXE

The host server (running CentOS 6.0) only has one public IP address and will be hosting many KVM guests so it needs to use a virtual network switch configuration in NAT mode. I have previously used ...
user avatar
5 votes
1 answer
8k views

Bandwidth monitoring on KVM

Is it possible to monitor/limit bandwidth for KVM guests? I'd like to give people VMs on my server but I want to be careful not to go over my monthly bandwidth limit. The only places I can find that ...
user avatar
  • 473
2 votes
4 answers
923 views

physical to virtual (kvm) migration with saving IP of guest and reusing it at host

I want to do a physical-to-virtual migration of BSD server, saving the IP address. The destination virtual host is Linux/KVM. The current setup: I had a BSD server with failed Hardware. I have just ...
user avatar
  • 573
13 votes
3 answers
30k 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 ...
user avatar
  • 1,350
0 votes
1 answer
3k views

Libvirt command line arguments using xml config file

I am trying something similar to http://wiki.libvirt.org/page/QEMUSwitchToLibvirt#-s . This is my xml file : <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> <...
user avatar
  • 371
2 votes
1 answer
1k views

Snapshot/rollback in Kvm using DRBD

I want to use the HA on a virtual machine on two server using KVM/libvirt. I placed the image on a partition using DRBD. I'm using the qcow2 format and i'm taking the snapshot, using virsh snapshot-...
user avatar
  • 120
0 votes
1 answer
2k views

Using qemu-kvm images with Mac OS X?

i am a big fan of qemu-kvm, i've several instances running on servers running ubuntu linux. I now wonder if it's anyhow possible to use a virtual server image on an Mac OS X machine. Either by running ...
user avatar
  • 383
4 votes
1 answer
16k views

virt-convert OVF to KVM

I use a Red Hat Enterprise Virtualization system and need to get a VM off the system an onto a standalone box running KVM. Red Hat don't seem to support a way to do this, but commented that the ...
user avatar
6 votes
3 answers
17k views

Routing networking on kvm

There are a lot of configuration used for Kvm-networking. But i'm not able to get to the guest from the host or outside. I'm working on Ubuntu 11.04. On the guest i've a WindowsXp with dhcp. I want ...
user avatar
  • 120
1 vote
3 answers
8k views

Unable to connect Xend with virt-manager

I have installed debian 6.0.1a. I have install all XEN stuff. including xen kernel, libvirtd, ... but when i want to connect xend, virt-manager shows me this: Verify that: A Xen host kernel was ...
user avatar
0 votes
1 answer
4k views

Setting up libvirt with remote access on gentoo: not listening tls port

I'm trying to set up libvirtd on my headless gentoo server. I'd like to have remote control via tls. I've followed libvirt remote access guide, but it don't work for me: client virt-manager shows ...
user avatar
  • 4,027
1 vote
1 answer
3k views

KVM and libvirt: How to configure a new disc device to an existing VM?

I've got an Ubuntu 9.04 server running two VM's. In /etc/libvirt/qemu/machine1.xml two disk devices are defined like this: <devices> <emulator>/usr/bin/kvm</emulator> <disk ...
user avatar
  • 2,195
3 votes
3 answers
1k views

libvirt + ESX (HTTP response code 400 for call to 'Login')

I'm trying to connect to a vSphere cluster using the information from the libvirt documentation. $ virsh -c "vpx://root@10.51.4.11/dc1/dc1-cluster-e01/dc1-vsphere-e04/?no_verify=1" Enter root's ...
user avatar
  • 5,937
1 vote
1 answer
902 views

Migration of Xen domains using libvirt API and perl failing

I am trying to get work offline migration using libvirt API in perl. I have 2 servers (on both is): - debian squeeze - xen-hypervisor-4.0-i386 - libvirt (1st server - 0.8.7 and 2nd server - 0.8.3) In ...
user avatar
  • 832
14 votes
4 answers
15k views

Port Forwarding from Host to Guest with libvirt 0.8.3 Using KVM on Ubuntu

The host has a single external IP available, so I set my KVM guests up with NAT. How do I set up a port forwarding to forward some of the requests from the outside to the guests? I couldn't find ...
user avatar
  • 595
3 votes
2 answers
3k views

LibVirt: Disk image has wrong size inside guest

I'm creating a new virtual disk using the following command*: $ virsh vol-create-as --format=qcow2 guest-disks disk_instid.24_diskid.30 8192M Vol disk_instid.24_diskid.30 created The "guest-disks" ...
user avatar
  • 257
3 votes
4 answers
5k views

KVM-Guest does not boot: qemudParsePCIDeviceStrs

I have a Server running Ubuntu 10.10 Server-Edition kvm, and libvirt (both ubuntu-native packages) HDD-Partitioning was done with LVM. Then I created some VMs with Virt-Manager and assigned LVM-...
user avatar
  • 185
0 votes
1 answer
408 views

Virsh: Different XML with edit than dumpxml. Why?

I'm trying to fetch the VNC access data from a virtual machine managed by libVirt. However, when I run virsh dumpxml $machine, the vnc passwd is missing: <graphics type='vnc' port='-1' autoport='...
user avatar
  • 257
27 votes
5 answers
29k views

how to rename a VM using libvirt+KVM

How can I rename a VM on KVM+libvirt? I would like it to change the name in the 'inventory' as well as change the name of the storage etc.
user avatar
1 vote
3 answers
13k views

Enable Intel-VT inside of VMware Workstation

I'm testing Nova Compute from OpenStack project inside of a VMware Workstation v7 virtual machine, and I get this error: libvirtError: internal error no supported architecture for os type 'hvm' This ...
user avatar
  • 201
0 votes
2 answers
603 views

Question about libvirt autostart and virtual manager

I'm running Ubuntu 10.04 I installed kvm and virtual manager and created a guest OS. Everything worked fine until I rebooted my pc. After reboot libvirt was not running despite of init script inside /...
user avatar
  • 755
8 votes
4 answers
3k views

Using virt-install and http preseed to do unattended ubuntu 10.04 install

The virt-install command line I used is below sudo virt-install kvm ubuntu -v sudo virt-install -v -n golden-egg -r 256 --disk path=/var/lib/libvirt/images/golden-egg.qcow2,size=5 --os-type ...
user avatar
4 votes
4 answers
7k views

Monitoring and statistics through libvirt

Is it possible to monitor and gather statistics in realtime (CPU, memory, HDD, network, ... - something like dstat) of guest systems with libvirt through console from host system (KVM based)? If yes, ...
user avatar
  • 672
2 votes
1 answer
3k views

libvirt, qemu, reboot hook

Is it possible to detect that the guest VM has rebooted and perform an action using libvirt / qemu? The hooks here only support the "start" and "stop" events. I would like to detect if my VM has ...
user avatar
44 votes
6 answers
87k views

Forwarding ports to guests in libvirt / KVM

How can I forward ports on a server running libvirt/KVM to specified ports on VM's, when using NAT? For example, the host has a public IP of 1.2.3.4. I want to forward port 80 to 10.0.0.1 and port 22 ...
user avatar
  • 443
0 votes
1 answer
253 views

Booting ubuntu with libvirt pass in custom script to be run from rc.local

I have an ubuntu image that I start under libvirt/qemu. I'd like to pass in a custom script at boot time that can be executed from rc.local. I can do this with Amazon EC2 instances via their user-data....
user avatar
5 votes
2 answers
2k views

Network freezes with KVM/libvirt and ip_forward = 1

I'm using KVM and libvirt and experience small network freezes on the host and the guests every 2-3 minutes or so. The freezes last 1-2 seconds. The used OS is Ubuntu 10 LTS server edition. I'm ...
user avatar
3 votes
2 answers
1k views

How do I run a stable Windows XP kvm guest on Ubuntu 10.04?

I have three Windows XP guests running on a recently upgraded 64-bit Ubuntu 10.04 system. Occasionally (on the order of once every few days), one of the guests will become non-responsive and the kvm ...
user avatar
2 votes
1 answer
3k views

How do I create a bridged virtual network for libvirt+KVM+ubuntu-server the easy way?

I see lots of documentation on how to manually set up a network bridge and then manually add vm's tun devices to these bridges and then write a shell script that glues it all together. lots of work, ...
user avatar
4 votes
1 answer
23k views

How to convert a raw disk image to a copy-on-write image based on another image for use with kvm and virt-manager?

I have a virtual Windows machine running on kvm. Presently it has a 90GB raw disk image. I would like to clone this VM without having to keep two copies of the 90GB raw disk image around. It seems ...
user avatar
3 votes
1 answer
1k views

Any non-custom way to manage iptables with fail2ban and libvirt+kvm?

I have an Ubuntu 9.04 server running libvirt/kvm and fail2ban (for SSH attacks). Both libvirt and fail2ban integrate with iptables in different ways. Libvirt uses (I think) some XML config and ...
user avatar
15 votes
15 answers
45k views

Web based KVM management for Ubuntu

We've got a single Ubuntu 9.10 root server on which we want to run multiple KVM virtual machines. To administer these virtual machines I'd like a web based KVM management tool, but I don't know which ...
user avatar
  • 215
3 votes
3 answers
1k views

KVM "live migration finished" detection

I'm using KVM (through libvirt actually) for a research project. We're live-migrating a virtual machine between different subnets, so after the migration the IP address and routing tables have to be ...
user avatar
3 votes
4 answers
7k views

libvirt and qemu/kvm -snapshot option

Using libvirt, I want to use QEMU's '-snapshot' option. That way, when the machine shuts down, all of the disk changes that were made get destroyed. Here is the manual for the -snapshot option: ...
user avatar
2 votes
1 answer
2k views

two physical kvm hosts with multiple guests, private network

I have two physical hosts which run debian lenny with kvm. They have one nic which connects to the internet and another nic which is a cross-link to each other, for a faster private net. On this kvm ...
user avatar
  • 413
12 votes
8 answers
27k 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 ...
user avatar
  • 1,046
11 votes
5 answers
10k 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 ...
user avatar
  • 724
3 votes
1 answer
502 views

libvirtd kvm networking on Centos5.4

I've got KVM installed on CentOS 5.4, and am attempting to set up a virtual network to allow each VM to communicate with services on the host, namely DHCP to allow PXE boot installations. I'm having ...
user avatar
  • 27.4k
0 votes
1 answer
1k views

Set host firewall so VMs obtain dynamic IP from dnsmasq

Virtual machines (KVM/libvirt) fail to obtain a dynamic IP address from the libvirt-launched dnsmasq running on a CentOS host when the firewall is running. When I turn off the firewall (CSF), the ...
user avatar
  • 131
5 votes
5 answers
2k views

Web-Based Virtual Machine Manager

I am looking for a web-based virtual machine manager, which will work on our Ubuntu server. Ideally, I need something that our team can use to create a VM, test builds and packaging and then either ...
user avatar
0 votes
2 answers
2k views

How do I extend the virsh/qemu/libvirt Timeout?

There's a known issue with starting virtual machines with large hard drive images. Apparently, the time-out is 3 seconds, but in reality, it can take up to 15 seconds for a machine to start. I've read ...
user avatar
  • 4,423
0 votes
2 answers
589 views

Strange libvirt/KVM issue, destroying instances?

I have a libvirt/KVM server running on Ubuntu 9.04 with a variety of instances I use for testing. I was destroying instances via virsh and occassionally, destroying one instance would take out another....
user avatar
  • 7,511

1
8 9 10 11
12