[libvirt-users] Error when compiling libvirt 1.2.7 on CentOS 6.4
by Hongbin Lu
Hi,
I was trying to follow this guide (http://libvirt.org/compiling.html) to
compile libvirt1.2.7 on CentOS6.4. There is an error on executing "make".
Below is the steps to reproduce and the error messages. Any help is
appreciated. Thanks.
$ sudo yum install gcc make gnutls-devel device-mapper-devel \
python-devel libnl-devel yajl-devel \
libxml2-devel libpciaccess-devel
$ wget ftp://libvirt.org/libvirt/libvirt-1.2.7.tar.gz
$ gunzip -c libvirt-1.2.7.tar.gz | tar xvf -
$ cd libvirt-1.2.7/
$ ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
--with-openvz=yes
$ make
.....
Making all in src
make[2]: Entering directory `/home/ec2-user/libvirt-1.2.7/src'
GEN libvirt_access.xml
/bin/sh: -w: command not found
make[2]: *** [libvirt_access.xml] Error 127
make[2]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7'
make: *** [all] Error 2
$ make V=1
..........
/usr/bin/ld:libvirt.syms:3220: syntax error in VERSION script
collect2: ld returned 1 exit status
make[3]: *** [libvirt.la] Error 1
make[3]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ec2-user/libvirt-1.2.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ec2-user/libvirt-1.2.7'
make: *** [all] Error 2
10 years, 3 months
[libvirt-users] Support live migration of OpenVZ container
by Hongbin Lu
Hi libvirt team,
I was trying to migrate an OpenVZ domain from one host to another host. It
seems that the live migration of OpenVZ container is there (
https://openvz.org/Migration_from_one_HN_to_another), but it haven't been
integrated to libvirt yet. In particular, I ran the following commands and
it failed:
$ sudo virsh migrate --live --verbose --undefinesource 101 openvz+ssh://
root(a)10.12.1.39/system
error: this function is not supported by the connection driver:
virDomainMigrate3
Could anyone confirm if libvirt supports live migration of OpenVZ domain.
If yes, please let me know the correct way to do that. If no, I would like
to know if there is a plan to add support for that. I don't mind to submit
a patch if your team likes to review it. Please let me know. Thanks.
Best regards,
Hongbin
10 years, 3 months
[libvirt-users] how virt-manager gets CPU usage of Guest
by Restituto Marcus Arevalo
Hi,
Does anybody know how virt-manager is getting the CPU usage of the guests? I need to know how to get the CPU usage of the guests and this is the only way I can think of. In other words, how does virt-manager produce the graph of the CPU usage of EACH guest in KVM? I don't actually need the graph, I just need to get the percentage(%) since I'm trying to create a Java program to get the CPU usage of each guest in KVM.
Thanks!
regards,
Marco
10 years, 3 months
[libvirt-users] Does libvirt have API to detect image format
by Jianfeng Tang
>
I am using backing store when I create my volume. However, the backing
store file is from another team, which can be either in raw or in qcow2
format.
Is there a libvirt API to detect image format by given an image file? Or I
have to run qemu-img?
>
10 years, 3 months
[libvirt-users] [qemu-kvm] Network bandwidth limits via libvirt
by Romain Hardouin
Hi all,
I try to understand why the interface bandwidth limits are not applied to my Ubuntu 12.04 VM (qemu-kvm driver) and I would need some insights.
I spawn my VM with OpenStack and when I issue a dumpxml on my domain, I can see that bandwidth limits are set:
<interface type='ethernet'>
<mac address='02:68:b5:c6:fa:a5'/>
<bandwidth>
<inbound average='500' peak='500' burst='1000'/>
<outbound average='500' peak='500'/>
</bandwidth>
<script path=''/>
<target dev='tap68b5c6fa-a5'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
However when I send a big file with scp I don't see any limits applied to the transfer rate.
I've checked the domain log and I didn't see any qemu command line argument related to bandwidth limits.
Should I expect to see a specific argument like "bps_wr" for IO limits?
Also, should I expect to see something in particular under the cgroup directory for the qemu instance? Or do network limits are managed in another way than with cgroups?
Below some information about my hypervisor:
% virsh -V
Virsh command line tool of libvirt 1.2.2
See web site at http://libvirt.org/
Compiled with support for:
Hypervisors: QEMU/KVM LXC UML Xen LibXL OpenVZ VMWare VirtualBox Test
Networking: Remote Network Bridging Interface netcf Nwfilter VirtualPort
Storage: Dir Disk Filesystem SCSI Multipath iSCSI LVM RBD Sheepdog
Miscellaneous: Daemon Nodedev AppArmor Secrets Debug Readline Modular
qemu-kvm: 2.0.0
Kernel: 3.2.0-64-generic
Any hints will be appreciated :)
Thanks,
Romain
10 years, 3 months
[libvirt-users] Passing literal -cpu model string to qemu
by Richard W.M. Jones
On aarch64 with -M virt, the default CPU model is cortex-a15 (a 32 bit
CPU). This is IMHO a stupid default, but there we are. Therefore
most users will need to pass the `-cpu cortex-a53' or `-cpu cortex-a57'
flag to qemu, depending on a complex formula of their host CPU and if
they are using TCG or not.
However I cannot work out how to pass this through libvirt.
The obvious one would be:
<cpu><model>cortex-a57</model></cpu>
This passes `-cpu host' which is both wrong and likely to be a bug.
I tried adding various flags and studying the source, but it's
extremely non-obvious how to do this. Also adding the following into
cpu_map.xml didn't make any difference:
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -626,6 +626,11 @@
<vendor name='IBM'/>
<pvr value='0x004b0100'/>
</model>
+ </arch>
+ <!-- ARM, 64 bit -->
+ <arch name='aarch64'>
+ <model name='cortex-a53'/>
+ <model name='cortex-a57'/>
</arch>
</cpus>
Ideas here?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
10 years, 3 months
[libvirt-users] Windows 8 virtualized on a Linux host
by arnaud gaboury
I plan to dual boot w8 and Archlinux, and virtualize the same w8
machine with libvirt qemu/kvm.
I already did the dual boot. I am now starting the virtualization.
My plan was to use the w8 partition as a Disk volume pool [1].
Unfortunately, I didn't noticed only FAT32 was a valid format when I
installed w8 on NTFS.
I need to change my whole setup, but beforethat, I want to be sure
libvirt does not accept NTFS. So please, can you confirm?
Then, it seems I am in trouble as my readings let me think w8 will not
install on FAT32. Am I correct?
Now it sounds to me I am in a dead end. Does anyone have any hint to
achieve my plan?
Thank you for any suggestions.
[1]http://libvirt.org/storage.html
10 years, 3 months
[libvirt-users] Live blockcopy onto storage pool that is an NFS mount?
by Andrew Martin
Hello,
I am running qemu-kvm 1.4.0 and libvirt 1.0.2 on Ubuntu 12.04. I have two NFS
mountpoints configured as two separate pools in virsh:
<pool type='dir'>
<name>nfs1</name>
<uuid>419d799c-2493-6ebc-6848-53b0919e7bad</uuid>
<capacity unit='bytes'>6836057014272</capacity>
<allocation unit='bytes'>0</allocation>
<available unit='bytes'>6836057014272</available>
<source>
</source>
<target>
<path>/var/lib/libvirt/images/nfs1</path>
<permissions>
<mode>0711</mode>
<owner>0</owner>
<group>0</group>
</permissions>
</target>
</pool>
The XML for the nfs2 pool is similar, with the mountpoint being
/var/lib/libvirt/images/nfs2.
I would like to be able to move the VM disk from one of the NFS mountpoints to
another (nfs1 --> nfs2) live. I followed the instructions here:
http://thr3ads.net/libvirt-users/2013/02/2174486-Migrate-VMs-to-different...
However when I attempt the blockcopy command, I receive this error:
Failed to create file '/var/lib/libvirt/images/nfs2/vm.qcow2': Operation not permitted
Is it not possible to blockcopy in this way to an NFS mount?
Thanks,
Andrew
10 years, 3 months