Browsing articles tagged with "libvirt - Admins Goodies"
Dec 25, 2012
tom

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 DRBD 8.3.11 qemu-kvm 1.0+noroms-0ubuntu14.3 libvirt 0.9.13 pacemaker 1.1.7 heartbeat 3.0.5 The virtual guests are running Ubuntu 10.04 64 Bit and Ubuntu 12.04 64 Bit. We use a libvirt feature to pass the capabilities of the host CPUs to the virtual guests in order to achieve best CPU performance. Now here is [...]

Continue Reading »
Jun 3, 2012
tom

KVM slow guest i/o

Host: Debian 6.0 (squeeze) with qemu-kvm and libvirt from squeeze-backports ii qemu-kvm 1.0+dfsg-8~bpo60+1 ii libvirt-bin 0.9.8-2~bpo60+2 Has 3TB sata drives with software raid and lvm. It has a sequential write speed of ~140MB/s measured with dd bs=1M count=512 if=/dev/zero of=test conv=fdatasync Elevator set to cfq Guest Debian 6.0 (squeeze) Uses LVM as storage. Drivers are virtio and cache=’none’ Sequential write speed is considerably slower with only 25-50MB/s Elevator set to noop I’m kind of running [...]

Continue Reading »
Apr 10, 2012
tom

Routing table with two NIC adapters in libvirt/KVM

I created a virtual NAT network (192.168.100.0/24 network) in my libvirt and new guest with two interfaces – one in this network, one as bridged (10.34.1.0/24 network) to the local LAN. The reason for that is I need to have my own virtual network for my DHCP/TFTP/DNS testing and still want to access my guest externally from my LAN. On both networks I have working DHCP, both giving them IP addresses. When I setup NAT [...]

Continue Reading »
Mar 14, 2012
tom

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 advisable to : pause the VM’s flush and turn off multipath log out of iSCSI sessions update and power-cycle storage array. then follow the reverse course of re-establish iISCSI sessions restore multipathing resume VM’s Any advice is welcome. Asked by janos [...]

Continue Reading »
Feb 24, 2012
tom

Undefine all inactive domains

I have multiple inactive domains in libvirt and I want to delete them all: # virsh list –inactive Id Name State ———————————- – instance-0000000c shut off – instance-0000000f shut off – instance-00000010 shut off Is there a simple way to tell libvirt to delete all inactive domains, or do I have to manually do: # virsh undefine instance-0000000c # virsh undefine … Asked by Lorin Hochstein Something like this should work: $ virsh list –inactive [...]

Continue Reading »
Feb 23, 2012
tom

libvirtError that domain already exists, but virsh list doesn’t show it

When I try to launch an instance with OpenStack, I get the following error in nova-compute.log: (nova.rpc): TRACE: libvirtError: operation failed: domain ‘instance-0000000a’ already exists with uuid 5f81a7d2-1b0f-8c72-4e1e-377c275e9289 However, virsh doesn’t show any domains: $ sudo virsh list Id Name State ———————————- Why isn’t that domain showing up in virsh if it’s there? Asked by Lorin Hochstein Your domain may be shut down. Run virsh list –all to see all domains. Answered by daff Check [...]

Continue Reading »
Feb 9, 2012
tom

error: internal error process exited while connecting to monitor: Supported machines are:

I’m moving Ubuntu Server guest machines from an Ubuntu Server Host to a CentOS 6 Host machine. My intent is to keep the guests as Ubuntu Servers and just change the OS of the Host. I’ve moved the logical volume and virsh XML definitions to the new host machine. When I first tried to use virsh define ldap, I got the error: error: Failed to define domain from ldap.xml error: Cannot find QEMU binary /usr/bin/kvm: [...]

Continue Reading »
Jan 17, 2012
tom

Can’t connect to remote Xen libvirt with ssh, using virsh or virt-manager

I’m running Xen 4 on a Debian server running Squeeze (stable). I want to connect remotely over ssh using virt-manager or virsh, because I can do that on a Lenny server (oldstable). Xen is installed correctly, booted, I can do # xm list and see which domU are booted. Libvirt-bin is installed, and running, with /etc/libvirt/libvirtd.conf changed as following listen_tls = 0 listen_tcp = 1 tcp_port = “8000″ listen_addr = “127.0.0.1″ netstat -tpln confirms that [...]

Continue Reading »
Jan 11, 2012
tom

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 don’t quite understand what options are needed to expose an existing device to the VM (or if it is even possible). From what I am reading, the target element is expecting a path element to a folder on the machine to store a file based image. Can the [...]

Continue Reading »
Dec 2, 2011
tom

Libvirt: Cannot access CA certificate ‘/etc/pki/CA/cacert.pem’: No such file or directory

Debian 6, all libvirt packages are installed. The /etc/pki/ directory is missing. What package is responsible for it? Not sure on Debian, but on Amazon Linux (CentOS): rpm -q –whatprovides /etc/pki/CA openssl-1.0.0e-2.16.amzn1.x86_64 openssl-1.0.0e-2.16.amzn1.i686 You could also look into a package called ‘ca-certificates’ Edit: Following up on your error from the command, it looks like you’ll have to follow the steps here Check more discussion of this question. Bookmark on Delicious Digg this post Recommend on [...]

Continue Reading »
Pages:1234»