Re: [libvirt-users] getting oriented/networking [some success]
by Boylan, Ross
I seem to have run into https://bugzilla.redhat.com/show_bug.cgi?id=855640, because when I tried the fix/work-around at the end (comment 11), ethtool -K eth0 gro off, my download speed by speedtest went from undetectable to ~150Mb/s. However, it was not able to connect for the upload test, and so something may still be off. Non-virtual machines can do the upload test, so it's not just a firewall issue.
The comment refers to another source for more info, but it seems to be behind a Redhat paywall.
Ross
________________________________________
From: Boylan, Ross
Sent: Friday, March 20, 2015 11:01 AM
To: Dominique Ramaekers; libvirt-users(a)redhat.com
Subject: RE: [libvirt-users] getting oriented/networking
Thanks very much. Unfortunately, networking is currently so slow as to be non-functional (most operations time out). It's also erratic: I had 2 VM that were close to identical--they were both based on the same disk image--and even when I set the networking the same one was fine and one was very slow. Today I started up the VM that had good networking, and it now has bad networking.
Here's one of the network specifications:
<interface type='direct'>
<mac address='52:54:00:61:7c:dc'/>
<source dev='eth1' mode='vepa'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
The one that was originally fast also had a NAT network, and the one that was originally slow was mode bridge before I changed it to vepa, which didn't help.
The drivers came from http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/virtio-win-... in the 32 bit windows 7 directory of the iso (host is 64 bit, as is the emulated machine; Windows 7 is 32 bit). I've tried shutting down, removing and reinstalling the network adaptor, and various other things.
Ross
________________________________________
From: Dominique Ramaekers [dominique.ramaekers(a)cometal.be]
Sent: Thursday, March 19, 2015 11:21 PM
To: Boylan, Ross; libvirt-users(a)redhat.com
Subject: RE: [libvirt-users] getting oriented/networking
Dear Boyland,
In collaboration with some of this mailing list users, I had put some effort in optimising the guest settings in function of a windows guest. The libvirt-gui doesn't include these options. You'll have to edit the XML in virsh. This was my conclusion on 15-03-2015 but I added the hugepages tip in this list today. As for networking, I only use or bridged or the default virtual network (NAT), so can't help you more here.
Here below, a summary of tips:
- Setting video to QXL and the display channel to Spice
<video>
<model type='qxl' ram='65536' vram='65536' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
- Using HyperV enlightenemt timer
<features>
<hyperv>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='8191'/>
</hyperv>
<features/>
<clock ...>
<timer name='hypervclock' present='yes'/>
</clock>
- Delete the tablet entry in the input section or set the USB-bus to USB2 or USB3
- Use hugepages
<memoryBacking>
<hugepages/>
</memoryBacking>
Again thanks Daniel and Andrey.
Hope this helps.
Grts, Dominique.
-----Oorspronkelijk bericht-----
Van: Boylan, Ross [mailto:Ross.Boylan@ucsf.edu]
Verzonden: vrijdag 20 maart 2015 1:52
Aan: libvirt-users(a)redhat.com
Onderwerp: [libvirt-users] getting oriented/networking
I've been using virt-manager and kvm with a disk image (as in the raw bits) from a physical windows 7 machine. Initial performance was dreadful, but improved as I switched to virtio and spice. I've been running linux VM's somewhat longer (much longer if you count kvm without libvirt).
There are lots of choices exposed by virt-manager. How do I find out what the choices mean, and which are good ones? This was true for the video (resolved by following instructions for spice, though I still wonder what the other settings are for), disks and the network.
In particular, I have a choice of lots of interfaces for my network; I picked eth1:macvtap because I wanted to bridge eth1. But there is a "Source Mode" which I left at VEPA, even though Bridged was another choice. But the bridge would already seem implicit in picking a source device of eth1:macvtap. I don't know what "source mode" means. The choices in the GUI seem like some of the options listed under forward on http://libvirt.org/formatnetwork.html; is that a good place to look for clarification.
I started a 2nd VM that also used eth1:macvtap (with virtio) and it had almost no network throughput. So maybe I should use some other method? I notice the network manager connection gui allows creation of bridges on the network; should I be using that?
I have been reading documentation, but I haven't found either a task-oriented discussion ("to get a windows machine working well, use these options" or "follow these steps") or an easy way to go from the choices in the GUI to a discussion of their meaning.
Thanks for any help you can offer.
Ross Boylan
_______________________________________________
libvirt-users mailing list
libvirt-users(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users
9 years, 9 months
[libvirt-users] still possible to use traditional bridge network setup ?
by Lentes, Bernd
Hi,
i'm currently installing a SLES 12 64bit system. libvirt-client-1.2.5-13.3.x86_64 and libvirt-daemon-1.2.5-13.3.x86_64.
Formerly I created my vm's (KVM) using a traditional bridge in my host systems, mostly SLES 11 SP3.
But with SLES 12 I don't succeed. I can use the macvtap device in the host, but I like to be able to communicate between host and guest.
Is the traditional bridge setup not any longer available ?
Bernd
--
Bernd Lentes
Systemadministration
Institut für Entwicklungsgenetik
Gebäude 35.34 - Raum 208
HelmholtzZentrum münchen
bernd.lentes(a)helmholtz-muenchen.de
phone: +49 89 3187 1241
fax: +49 89 3187 2294
http://www.helmholtz-muenchen.de/idg
Je suis Charlie
Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht München HRB 6466
USt-IdNr: DE 129521671
9 years, 9 months
[libvirt-users] KVM live migration i/o error
by Francesc Guasch
Hi.
I have three Ubuntu Server 14.04 trusty with KVM. Two of
them are HP servers and one is Dell. Both brands run fine
the KVM virtual servers, and I can do live migration between
the HPs. But I get I/O errors in the vda when I migrate to
or from the Dell server.
I have shared storage with NFS, mounted the same way in all
of them:
nfs.sever:/kvm /var/lib/libvirt/images nfs auto,vers=3
I checked the version of all the packages to make sure are
the same. I got:
kernel: 3.13.0-43-generic #72-Ubuntu SMP x86_64 libvirt:
libvirt: 1.2.2-0ubuntu13.1.9
qemu-utils: 2.0.0+dfsg-2ubuntu1.10
qemu-kvm: 2.0.0+dfsg-2ubuntu1.10
I made sure the Cache in the Storage is set to None.
Disk bus: virtio Cache mode: none IO mode: default
I run this to do live migration:
virsh migrate --live virtual qemu+ssh://dellserver/system
I open two consoles with virt-manager, one in the origin host
and another one in the destination.
As soon as it starts in the origin console I spot I/O error
messages, when it finishes I got them in the console in the
destination server. The file system is read only and I have to
shut it down hard.
end request I/O error, /dev/vda, sector 8790327
When I migrate to the other HP server the process runs fine.
I don't know what else to check, I wonder if such different
hardware could be a problem.
These are the CPU flags in the HP server:
fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
pbe syscall nx rdtscp lm c onstant_tsc arch_perfmon pebs bts
rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64
monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1
sse4_2 po pcnt lahf_lm dtherm tpr_shadow vnmi flexpriority
ept vpid
And those in the Dell server:
fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
pbe syscall nx lm constant _tsc pebs bts nopl pni dtes64
monitor ds_cpl vmx est cid cx16 xtpr pdcm lahf_lm tpr_shadow
I tried to check the log files in /var/log/libvirt but I
can't see any different message when I migrate from HP to HP
than when I do from HP to Dell.
I think I found something checking SELinux. ls -Z and getfattr
return nothing. But ps -eZ showed something very different
in the Dell server.
This is in the HP server:
/usr/sbin/libvirtd 1034 ? 11:51:44 libvirtd
libvirt-09540b5d-82 701 ? 05:28:40 qemu-system-x86
unconfined 1 ? 00:01:00 init
In the Dell server init is confined in lxc and there are also
lxc-start processes.
/usr/sbin/libvirtd 1622 ? 05:07:07 libvirtd
libvirt-8a0f9087-32d... 29926 ? 00:00:01 qemu-system-x86
lxc-container-default 1774 ? 00:00:00 init
/usr/bin/lxc-start 1763 ? 00:00:00 lxc-start
There is also LXC installed in that server ! Maybe that is messing
with kvm. The qemu processes look fine to me but there is a chance
the problem comes from there.
I could move the LXC somewhere else or I can keep it there to
try to fix this issue. What do you advice I should do now ?
9 years, 9 months
[libvirt-users] kvm/vmware side-by-side?
by Boylan, Ross
http://libvirt.org/drvvmware.html says "The libvirt VMware driver should be able to manage any Workstation, Player, Fusion version supported by the VMware VIX API."
1. Does this mean it supports the vmware hypervisor, or just that it understands the disk images and perhaps other cotnrol file info?
2. If it supports the hypervisor, does this mean that kvm and vmware hypervisors can be running on the same host? I've read statements elsewhere that they are incompatible.
I'd probably be running VMWare Workstation 11, though I could get Player or vCenter Server if it mattered.
Thanks.
Ross Boylan
9 years, 9 months
[libvirt-users] getting oriented/networking
by Boylan, Ross
I've been using virt-manager and kvm with a disk image (as in the raw bits) from a physical windows 7 machine. Initial performance was dreadful, but improved as I switched to virtio and spice. I've been running linux VM's somewhat longer (much longer if you count kvm without libvirt).
There are lots of choices exposed by virt-manager. How do I find out what the choices mean, and which are good ones? This was true for the video (resolved by following instructions for spice, though I still wonder what the other settings are for), disks and the network.
In particular, I have a choice of lots of interfaces for my network; I picked eth1:macvtap because I wanted to bridge eth1. But there is a "Source Mode" which I left at VEPA, even though Bridged was another choice. But the bridge would already seem implicit in picking a source device of eth1:macvtap. I don't know what "source mode" means. The choices in the GUI seem like some of the options listed under forward on http://libvirt.org/formatnetwork.html; is that a good place to look for clarification.
I started a 2nd VM that also used eth1:macvtap (with virtio) and it had almost no network throughput. So maybe I should use some other method? I notice the network manager connection gui allows creation of bridges on the network; should I be using that?
I have been reading documentation, but I haven't found either a task-oriented discussion ("to get a windows machine working well, use these options" or "follow these steps") or an easy way to go from the choices in the GUI to a discussion of their meaning.
Thanks for any help you can offer.
Ross Boylan
9 years, 9 months
[libvirt-users] libvirt-python Segfaults
by Harish Vishwanath
Hello
I am trying to get libvirt-python working in Ubuntu 14.04 64 bit system. I
tried installing the binaries from the repo itself:
1.
root@test-vm8-109:/home/test# libvirtd --version
libvirtd (libvirt) 1.2.2
root@test-vm8-109:/home/test# python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libvirt
>>> libvirt.__file__
'/usr/lib/python2.7/dist-packages/libvirt.pyc'
>>> c = libvirt.virConnect("lxc:///")
>>> c.listAllDomains()
Segmentation fault (core dumped)
2. Installing the latest libvirt-python from pypi (1.2.13) also has the
same issue.
This is the gdb bt of the core:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `python test.py'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fd8d91b19a9 in virObjectIsClass () from /usr/lib/libvirt.so.0
(gdb) bt
#0 0x00007fd8d91b19a9 in virObjectIsClass () from /usr/lib/libvirt.so.0
#1 0x00007fd8d9268d02 in virConnectListAllDomains () from
/usr/lib/libvirt.so.0
#2 0x00007fd8d964db96 in libvirt_virConnectListAllDomains (self=<optimized
out>, args=<optimized out>)
at libvirt-override.c:2470
#3 0x000000000052c6d5 in PyEval_EvalFrameEx ()
#4 0x000000000055c594 in PyEval_EvalCodeEx ()
#5 0x000000000052ca8d in PyEval_EvalFrameEx ()
#6 0x000000000055c594 in PyEval_EvalCodeEx ()
#7 0x00000000005b7392 in PyEval_EvalCode ()
#8 0x0000000000469663 in ?? ()
#9 0x00000000004699e3 in PyRun_FileExFlags ()
#10 0x0000000000469f1c in PyRun_SimpleFileExFlags ()
#11 0x000000000046ab81 in Py_Main ()
#12 0x00007fd8da894ec5 in __libc_start_main (main=0x46ac3f <main>, argc=2,
argv=0x7fff0fcbd218,
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
stack_end=0x7fff0fcbd208)
at libc-start.c:287
#13 0x000000000057497e in _start ()
Am I missing something?
Regards,
Harish
9 years, 9 months
[libvirt-users] Building libvirt 1.2.13 from source
by Harish Vishwanath
Hello
I am trying to build libvirt 1.2.13 (latest) from source on a Ubuntu 14.04
64 bit box. After installing all the dependencies (libyajl, libdevmapper,
libpciaccess, libnl), I could finish the build and install. However,
invoking libvirtd throws this:
root@ubuntu:/home/hvishwanath/Downloads/libvirt-1.2.13# libvirtd
libvirtd: /usr/lib/libvirt-qemu.so.0: version `LIBVIRT_QEMU_1.2.3' not
found (required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.9' not found
(required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.3' not found
(required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.11' not found
(required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.7' not found
(required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.12' not found
(required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.5' not found
(required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.6' not found
(required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.8' not found
(required by libvirtd)
libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_1.2.13' not found
(required by libvirtd)
Any help is much appreciated.
Regards,
Harish
9 years, 9 months
[libvirt-users] Development of application on using the libvirt API(s)
by Parvathi
Hi,
I am developing an application that would essentially control/run VMs on a
X86_64 host machine. The existing OS is 32 bit based so the application
needs to be 32bit too. KVM/QEMU are 64 bit so that guests could be either
be 32 or 64 bit. Does using libvirt as 32bit library on a 64bit host
(capable of hosting 32 and 64 bit guests) pose any problems? Will it even
work?
Thanks,
Parvathi
9 years, 9 months
[libvirt-users] Regarding save and restore in libvirt 1.2.2
by cool dharma06
hi all,
i am exploring openstack. By the openstack i experimented the resizing
instance its working fine.
But from virsh i tried save and redstore VM its not working properly.
i put GDB on libvirtd process also its not showing anything. its running
perfectly.
while virsh save vm id filename -> saving the VM and get into shutdown
state.
then i tried to restore by virsh restore filename --running -> its showing
as running then its getting destroyed automatically. I cant able find the
issue.
I grepped the logs also its not showing anything related to errors.
2. By virsh save-image-edit filename
i tried to edit the vCPUs number but i am not able to edit and save the
file. Its showing the following error -> "error: unsupported
configuration: Target domain vCPU count 2 does not match source 1"
Give some suggestions to resolve the issue.
Thanks & regrads,
cooldharma06 .. :)
9 years, 9 months