[libvirt-users] Sluggish performance with virtio and Win10
by John Obaterspok
Hello,
I'm using virt-manager on my F23 box to run a Windows 10 image but the
performance is so bad it's killing me.
I have "vmx" flag in /proc/cpuinfo
# lsmod |grep kvm
kvm_intel 167936 6
kvm 503808 1 kvm_intel
virtio-win-0.1.112-1.noarch
But no virtio modules loaded. Should they be loaded nowadays?
The disk format used is vmdk with no caching and native mode.
The io is 100% in windows task manager performing less than 1MB/s
Any clues?
/usr/bin/qemu-system-x86_64 -machine accel=kvm -name win10-box -S -machine
pc-i440fx-2.4,accel=kvm,usb=off,vmport=off -cpu
SandyBridge,+osxsave,+pcid,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff,kvm=off
-m 4096 -realtime mlock=off -smp 4,sockets=4,cores=1,threads=1 -uuid
d4a67adb-5d30-42f8-b8c6-d3c4598700f2 -no-user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/win10-box.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc
base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=discard
-no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global
PIIX4_PM.disable_s4=1 -boot strict=on -device
ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device
ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6
-device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1
-device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2
-device ahci,id=sata0,bus=pci.0,addr=0x8 -device
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive
file=/usr/share/virtio-win/virtio-win.iso,if=none,id=drive-ide0-0-0,readonly=on,format=raw
-device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive
if=none,id=drive-ide0-0-1,readonly=on,format=raw -device
ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
file=/vm/storage/win10-box.img,if=none,id=drive-virtio-disk0,format=vmdk,cache=none,aio=native
-device
virtio-blk-pci,scsi=off,bus=pci.0,addr=0xa,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
-netdev tap,fd=27,id=hostnet0,vhost=on,vhostfd=28 -device
virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:cc:f0:31,bus=pci.0,addr=0x3
-chardev pty,id=charserial0 -device
isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0
-spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on
-device VGA,id=video0,vgamem_mb=16,bus=pci.0,addr=0x2 -device
intel-hda,id=sound0,bus=pci.0,addr=0x4 -device
hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
8 years, 10 months
[libvirt-users] About the vfio error when using SR-IOV
by Xiao Ma (xima2)
Hi, All
I want to use the SR-IOV of intel 82576 NIC.
I enabled IOMMU and VT-d and SR-IOV in BIOS.
And enabled VT-d in kernel.
The OS information is bellow:
[root@host3 nova]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@host3 nova]# uname -an
Linux host3.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@host3 nova]# rpm -qa|grep qemu
libvirt-daemon-driver-qemu-1.2.8-16.el7.x86_64
qemu-kvm-1.5.3-86.el7.x86_64
qemu-kvm-common-1.5.3-86.el7.x86_64
ipxe-roms-qemu-20130517-6.gitc4bce43.el7.noarch
qemu-img-1.5.3-86.el7.x86_64
[root@host3 nova]# rpm -qa|grep libvirt
libvirt-daemon-1.2.8-16.el7.x86_64
libvirt-daemon-driver-nwfilter-1.2.8-16.el7.x86_64
libvirt-python-1.2.8-7.el7.x86_64
libvirt-daemon-driver-storage-1.2.8-16.el7.x86_64
libvirt-daemon-driver-qemu-1.2.8-16.el7.x86_64
libvirt-daemon-config-nwfilter-1.2.8-16.el7.x86_64
libvirt-daemon-driver-secret-1.2.8-16.el7.x86_64
libvirt-daemon-driver-interface-1.2.8-16.el7.x86_64
libvirt-client-1.2.8-16.el7.x86_64
libvirt-glib-0.1.7-3.el7.x86_64
libvirt-daemon-driver-network-1.2.8-16.el7.x86_64
libvirt-daemon-driver-nodedev-1.2.8-16.el7.x86_64
libvirt-daemon-kvm-1.2.8-16.el7.x86_64
And I can see the vf of the NIC after ‘ echo '7' > /sys/class/net/ens1f1/device/sriov_numvfs '
[root@host3 VTS2.1-demo]# lspci |grep -i ethernet
08:00.0 Ethernet controller: QLogic Corp. 10GbE Converged Network Adapter (TCP/IP Networking) (rev 02)
08:00.1 Ethernet controller: QLogic Corp. 10GbE Converged Network Adapter (TCP/IP Networking) (rev 02)
0f:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
0f:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
10:10.1 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
10:10.3 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
10:10.5 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
10:10.7 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
10:11.1 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
10:11.3 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
10:11.5 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
I configured the interface as bellow in XML:
<interface type="hostdev" managed="yes">
<mac address="fa:16:3e:f7:57:5f"/>
<source>
<address type="pci" domain="0x0000" bus="0x10" slot="0x10" function="0x3"/>
</source>
<vlan>
<tag id="1000"/>
</vlan>
</interface>
But the error output when I boot one vm:
[root@host3 VTS2.1-demo]# virsh create vtc.demo.xml
error: Failed to create domain from vtc.demo.xml
error: internal error: early end of file from monitor: possible problem:
2016-02-22T07:38:42.169035Z qemu-kvm: -device vfio-pci,host=10:10.3,id=hostdev0,bus=pci.0,addr=0x3: vfio: error, group 17 is not viable, please ensure all devices within the iommu_group are bound to their vfio bus driver.
2016-02-22T07:38:42.169215Z qemu-kvm: -device vfio-pci,host=10:10.3,id=hostdev0,bus=pci.0,addr=0x3: vfio: failed to get group 17
2016-02-22T07:38:42.169233Z qemu-kvm: -device vfio-pci,host=10:10.3,id=hostdev0,bus=pci.0,addr=0x3: Device initialization failed.
2016-02-22T07:38:42.169248Z qemu-kvm: -device vfio-pci,host=10:10.3,id=hostdev0,bus=pci.0,addr=0x3: Device 'vfio-pci' could not be initialized
Could you please help to solve it?
Looking forward for your reply.
Thanks.
8 years, 10 months
[libvirt-users] UserID Permissions: Virtual Machine Manager vs virsh and Python
by David Ashley
I have added a user to the libvirt group on my CentOS 7.2 server and
that user can successfully access the Virtual Machine Manager without
authenticating as expected. This allows the user to perform all
functions in the VMS as if they were root. This is acceptable as this is
a private server with no outside access so security is not a real issue.
But when that same user tries to perform functions with virsh or using a
Python script that uses the libvirt module, the connection is just
read-only.
Why are the permissions different for these environments and what must I
do to give the user r/w access in virsh or the Python script?
David Ashley
8 years, 10 months
[libvirt-users] VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON meaning
by Jean-Pierre Ribeauville
Hi,
I'm wondering what means the VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON value .
On a Windows Guest , rammap tool gives me following information :
Driver Locked size 6.6 Giga
This value is relevant with virsh dominfo of this Guest (equal to Max memory - Used memory):
Max memory: 8704000 KiB
Used memory: 2097152 KiB
>From libvirt API , VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON value is :
active_balloon (2048000.000000)
Could you give me some light ?
Thx .
Regards,
J.P. Ribeauville
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
jpribeauville(a)axway.com<mailto:jpribeauville@axway.com>
http://www.axway.com<http://www.axway.com/>
P Pensez à l'environnement avant d'imprimer.
8 years, 10 months
[libvirt-users] Amount CPU's
by Dominique Ramaekers
Quick question.
In my host, I've got two processors with each 6 cores and each core has two threads.
I use iometer to do some testings on hard drive performance.
I get the idea that using more cores give me better results in iometer. (if it will improve the speed of my guest is an other question...)
For a Windows 2012 R2 server guest, can I just give the guest 24 cores? Just to make shure the os has all the possibilities to run as quickly as possible?
Thanks in advance.
Dominique.
8 years, 10 months
[libvirt-users] query regarding domstats option with virsh
by Jain, Manish (HP Software)
Hi,
I am looking for the information w.r.t domstats command line option of virsh tool.
1> This command line option is available with which version of libvirt.
2> How to get Guest's disk related information in case storage pool does not exist on host.
Thanks and Regards,
Manish
8 years, 10 months
[libvirt-users] bug in Libvirt(-python)?
by Dennis Jacobfeuerborn
Hi,
I've noticed that the capacity of the disk in one of my VMs is
completely wrongly reported by the python api. The image was transfered
using scp but the transfer was aborted and now the api show a strange value:
[root@virt83 ~]# du -h /var/lib/libvirt/images/test-disk1
706M /var/lib/libvirt/images/test-disk1
[root@virt83 ~]# ls -lh /var/lib/libvirt/images/test-disk1
-rw-r--r--. 1 root root 706M 3. Nov 20:03
/var/lib/libvirt/images/test-disk1
[root@virt83 ~]# qemu-img info /var/lib/libvirt/images/test-disk1
image: /var/lib/libvirt/images/test-disk1
file format: raw
virtual size: 705M (739573760 bytes)
disk size: 705M
Notice how that raw image is seen with a size of 705M by ls, du and
qemu-img however when I get a blockinfo using libvirt-python using the
blockInfo() call I get this:
{'source': '/var/lib/libvirt/images/test-disk1', 'target': 'vda'}
[2423276348619671841L, 739577856L, 739577856L]
Obviously the first value (capacity) is way too large to be correct.
Any ideas if this is a bug or if there is something else going on?
This is a CentOS 7 system with the following versions:
[root@virt83 ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@virt83 ~]# rpm -q libvirt
libvirt-1.2.8-16.el7_1.4.x86_64
[root@virt83 ~]# rpm -q libvirt-python
libvirt-python-1.2.8-7.el7_1.1.x86_64
Regards,
Dennis
8 years, 10 months
[libvirt-users] glib2 head file error when build libvirt with wireshark support
by Han Han
I compile the latest libvirt from fedora rawhide, but failed.
The version of my software:
wireshark-devel-2.0.1-2.fc24.x86_64
glib2-2.47.5-2.fc24.x86_64
gcc-5.1.1-4.fc23.x86_64
binutils-2.26-10.fc24.x86_64
The error as following:
# ./autogen.sh --prefix=/usr && make
.....
wireshark/src/plugin.c:5:21: fatal error: gmodule.h: No such file or directory
compilation terminated.
Makefile:2442: recipe for target 'wireshark/src/wireshark_src_libvirt_la-plugin.lo' failed
make[3]: *** [wireshark/src/wireshark_src_libvirt_la-plugin.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from wireshark/src/packet-libvirt.c:27:0:
/usr/include/wireshark/epan/proto.h:40:18: fatal error: glib.h: No such file or directory
compilation terminated.
Makefile:2435: recipe for target 'wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo' failed
make[3]: *** [wireshark/src/wireshark_src_libvirt_la-packet-libvirt.lo] Error 1
make[3]: Leaving directory '/root/libvirt/tools'
Makefile:2104: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/root/libvirt/tools'
Makefile:2002: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/libvirt'
Makefile:1897: recipe for target 'all' failed
make: *** [all] Error 2
When I disable wireshark support, make successfully.
# ./configure --without-wireshark-dissector && make
But the file gmodule.h and glib.h exist on my system:
# locate gmodule.h
/usr/include/glib-2.0/gmodule.h
# locate glib.h
/usr/include/glib-2.0/glib.h
/usr/share/gtk-doc/html/glib/glib.html
/usr/src/kernels/4.5.0-0.rc0.git1.1.fc24.x86_64/include/config/blk/dev/bsglib.h
/usr/src/kernels/4.5.0-0.rc3.git3.1.fc24.x86_64/include/config/blk/dev/bsglib.h
8 years, 10 months