[libvirt-users] Odd Virsh Capabilities response
by W Kern
Tried to migrate a few VMs from existing system to an older host that we
threw in the rack to facilitate some server reshuffling.
Migration complained about lack of capabilities (which I expected its an
older server) but when I looked at what I should throw into the xml file
I got a core2duo when it should have been at least Penryn or something
(Xeon E5345)
Of course the VMs work fine with that cpu def so its not a bit deal at
the moment, but I am still curious
Is it some sort of lookup table bug or is the server BIOS wonky?
-----------------------------------------------------------
OS: Up to date U16 Xenial on an HP DL380 server.
Stock libraries for that distro
libvirt0/xenial-updates,now 1.3.1-1ubuntu10.8 amd64 [installed,automatic]
qemu-kvm/xenial-updates,xenial-security,now 1:2.5+dfsg-5ubuntu10.14
amd64 [installed,automatic]
QEMU Full virtualization
cat /proc/cpu shows
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz
stepping : 11
microcode : 0xb4
cpu MHz : 2333.361
# virsh capabilities
<capabilities>
<host>
<uuid>33393138-3335-5553-4538-31324e39414b</uuid>
<cpu>
<arch>x86_64</arch>
<model>core2duo</model>
<vendor>Intel</vendor>
<topology sockets='2' cores='4' threads='1'/>
<feature name='lahf_lm'/>
<feature name='dca'/>
<feature name='pdcm'/>
<feature name='xtpr'/>
<feature name='cx16'/>
<feature name='tm2'/>
<feature name='est'/>
<feature name='vmx'/>
<feature name='ds_cpl'/>
<feature name='dtes64'/>
<feature name='pbe'/>
<feature name='tm'/>
<feature name='ht'/>
<feature name='ss'/>
<feature name='acpi'/>
<feature name='ds'/>
<pages unit='KiB' size='4'/>
<pages unit='KiB' size='2048'/>
</cpu>
<power_management>
<suspend_mem/>
<suspend_disk/>
<suspend_hybrid/>
</power_management>
<migration_features>
<live/>
<uri_transports>
<uri_transport>tcp</uri_transport>
<uri_transport>rdma</uri_transport>
</uri_transports>
</migration_features>
<topology>
<cells num='1'>
<cell id='0'>
<memory unit='KiB'>32945368</memory>
<pages unit='KiB' size='4'>8236342</pages>
<pages unit='KiB' size='2048'>0</pages>
<distances>
<sibling id='0' value='10'/>
</distances>
<cpus num='8'>
<cpu id='0' socket_id='0' core_id='0' siblings='0'/>
<cpu id='1' socket_id='1' core_id='0' siblings='1'/>
<cpu id='2' socket_id='0' core_id='2' siblings='2'/>
<cpu id='3' socket_id='1' core_id='2' siblings='3'/>
<cpu id='4' socket_id='0' core_id='1' siblings='4'/>
<cpu id='5' socket_id='1' core_id='1' siblings='5'/>
<cpu id='6' socket_id='0' core_id='3' siblings='6'/>
<cpu id='7' socket_id='1' core_id='3' siblings='7'/>
</cpus>
</cell>
</cells>
</topology>
7 years, 3 months
[libvirt-users] error message
by Eric Blake
[moderator note: re-posting to list with screenshot deleted, in order to
meet list policy size constraints]
hello,
i am trying to install libvirt but getting some error . even though i am
folowing your instructions and steps
please help me out this
7 years, 3 months
[libvirt-users] live migration
by Hossein Azizabadi
I’m interested with the modifications of live migration with all storage on
KVM .
I intend to ask, modification performed on which part of KVM?
Do storage blocks migrate sequentialy? I need information about it
7 years, 3 months
[libvirt-users] disabling dnsmasq
by Michael Ströder
HI!
I have some virtual networks (not only bridged) in my libvirt 3.3.0 installation and
therefore libvirt always starts dnsmasq. But I want to use my own DHCP and DNS servers
which are correctly working for this VM infrastructure.
How to completely disable dnsmasq in libvirt?
Ciao, Michael.
7 years, 3 months
[libvirt-users] <source mode='private'> for PPPoE?
by Michael Ströder
HI!
I'm currently reviewing my (functional) setup with one physical ethernet interface eth1
of the host system being connected to a VDSL modem (not router!). A fully virtualized
guest acts as router with this source mode:
<source dev='eth1' mode='bridge'/>
Reading the docs [1] I'm thinking whether mode='private' would be a better choice because
the network packets are supposed to be sent exclusively to the VDSL modem and received
from there.
Any thoughts?
Ciao, Michael.
[1] https://libvirt.org/formatdomain.html#elementsNICSDirect
7 years, 3 months
[libvirt-users] Duplicate reboot events
by Innus, Martins
Hi,
Running on:
$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
And:
$ rpm -qa |grep libvirt
libvirt-daemon-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-qemu-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-secret-2.0.0-10.el7_3.5.x86_64
libvirt-client-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-network-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-storage-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-config-nwfilter-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-config-network-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-nodedev-2.0.0-10.el7_3.5.x86_64
libvirt-2.0.0-10.el7_3.5.x86_64
libvirt-python-2.0.0-2.el7.x86_64
libvirt-daemon-driver-nwfilter-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-lxc-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-interface-2.0.0-10.el7_3.5.x86_64
I’m seeing duplicated reboot events when using the python event api. Use is simplified down to the simple test case attached. Running with that results in:
$ sudo ./libvirt_events_single.py
Reboot: Domain i-06945b37(21)
1494958504.72
Reboot: Domain i-06945b37(21)
1494958504.74
This is reproducible 100% of the time by doing /sbin/reboot from within a VM started with qemu-kvm. Any ideas on whats going on?
Let me know if any other information would be useful.
Thanks
Martins
7 years, 3 months
[libvirt-users] Callback re-registration after libvirtd restart
by Daniel Kučera
Hi all,
I'm using libvirt-go and I following code to listen for lifecycle events:
func event_listen() {
log.Printf("event_listen %s", conf.Libvirt.LocalUrl)
hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl)
lifecycleCallback := func(c *libvirt.Connect, d *libvirt.Domain, event
*libvirt.DomainEventLifecycle) {
event_message(c, d, "lifecycle", event)
}
_, err = hv.DomainEventLifecycleRegister(nil, lifecycleCallback)
if err != nil {
log.Printf("unable to register event callback")
return
}
log.Printf("Libvirt event listener started")
go func() {
for err == nil {
err = libvirt.EventRunDefaultImpl()
log.Printf("EventRunDefaultImpl err: %+v", err)
}
time.Sleep(time.Second)
event_listen()
}()
}
It works ok until I restart libvirtd (service libvirtd restart). After
that, the inner go func waits some time and continues without error. But
the callback is not working anymore.
My question is, how can I detect hv reconnect (I guess it's happening in
background) so I know when to reinitialize callbacks?
Thanks.
BR
Daniel Kucera.
7 years, 3 months
[libvirt-users] Poor network performance
by Sławomir Kapłoński
Hello,
I have some problem with poor network performance on libvirt with qemu and openvswitch.
I’m using libvirt 1.3.1, qemu 2.5 and openvswitch 2.6.0 on Ubuntu 16.04 currently.
My connection diagram looks like below:
+---------------------------+
+---------------------------+ | Net namespace |
+------------------+ | OVS bridge | | |
| | | | | |
| VM | | | | |
| | +----+---+ +----+-----+ +----+---+ |
| +------+tap dev | | veth A +---------+ veth B | |
| | +--------+ +----------+ +--------+ |
| iperf -s<---------------------------------------------------------------------------+iperf -c |
| | | | | |
+------------------+ | | | |
| | | |
+---------------------------+ +---------------------------+
I haven’t got any QoS in tc configured on any interface. When I do this iperf test I have something about 150Mbps only. IMHO it should be something about 20-30 Gbps there.
Other strange thing is that if I made more such VMS (each connected in same way, with own OVS bridge and own namespace) bandwidth is lower for each of them and it looks for me that summarize bandwidth is then something about 1Gbps (30 VMs - each got something about 30Mbps in such test).
When I removed VM and added „tap dev” as internal port in OVS and made same test, then I had result about 30 Gbps.
I have no idea what can be wrong there. Maybe someone of You had such problems earlier?
One more thing, on different host with Ubuntu 14.04, OVS 2.0.2, Libvirt 1.3.1 and qemu 2.3 I don’t have this problem.
Kernel on both hosts is 4.4.0 (from Ubuntu repo).
Pozdrawiam / Best regards
Sławek Kapłoński
slawek(a)kaplonski.pl
7 years, 3 months
[libvirt-users] strange error while trying to start ~60 domains
by Vasiliy Tolstov
Hi! I'm using latest libvirt release under debian jessie (kernel 4.4.x LTS)
And after i'm try to start 65 domains i get 19 errors like:
May 07 22:32:28 cn17 libvirtd[13836]: 2017-05-07 19:32:28.188+0000:
13839: error : virDBusCall:1570 : error from service: CreateMachine:
Message did not receive a reply (timeout by message bus)
I'm use qcow2 file as vm images on ssd disk with dir storage pool
(local ssd disks).
--
Vasiliy Tolstov,
e-mail: v.tolstov(a)selfip.ru
7 years, 4 months