[libvirt-users] [virtual interface] detach interface during boot succeed with no changes
by Yalan Zhang
Hi guys,
when I detach an interface from vm during boot (vm boot not finished), it
always fail. I'm not sure if there is an existing bug. I have
confirmed with someone that for disk, there is similar behavior, if
this is also acceptable?
# virsh destroy rhel7.2; virsh start rhel7.2 ;sleep 2; virsh
detach-interface rhel7.2 network 52:54:00:98:c4:a0; sleep 2; virsh
dumpxml rhel7.2 |grep /interface -B9
Domain rhel7.2 destroyed
Domain rhel7.2 started
Interface detached successfully
<address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:98:c4:a0'/>
<source network='default' bridge='virbr0'/>
<target dev='vnet0'/>
<model type='rtl8139'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
When I detach after the vm boot, expand the sleep time to 10, it will succeed.
# virsh destroy rhel7.2; virsh start rhel7.2 ;sleep 10; virsh
detach-interface rhel7.2 network 52:54:00:98:c4:a0; sleep 2; virsh
dumpxml rhel7.2 |grep /interface -B9
Domain rhel7.2 destroyed
Domain rhel7.2 started
Interface detached successfully
-------
Best Regards,
Yalan Zhang
IRC: yalzhang
Internal phone: 8389413
2 years, 3 months
[libvirt-users] Question about disabling UFO on guest
by Bao Nguyen
Hello everyone,
I would like to ask a question regarding to disable UFO of virtio vNIC in
my guest. I have read the document at https://libvirt.org/formatdomain.html
*host*
The csum, gso, tso4, tso6, ecn and ufo attributes with possible
values on and off can be used to turn off host offloading options. By
default, the supported offloads are enabled by QEMU. *Since 1.2.9 (QEMU
only)* The mrg_rxbuf attribute can be used to control mergeable rx buffers
on the host side. Possible values are on (default) and off. *Since 1.2.13
(QEMU only)*
*guest*
The csum, tso4, tso6, ecn and ufo attributes with possible
values on and off can be used to turn off guest offloading options. By
default, the supported offloads are enabl
ed by QEMU.
*Since 1.2.9 (QEMU only)*
Then I disabled UFO on my vNIC on guest as the following configuration
<devices>
<interface type='network'>
<source network='default'/>
<target dev='vnet1'/>
<model type='virtio'/>
<driver name='vhost' txmode='iothread' ioeventfd='on' event_idx='off'
queues='5' rx_queue_size='256' tx_queue_size='256'>
*<host gso='off' ufo='off' />*
*<guest ufo='off'/>*
</driver>
</interface>
</devices>
Then I reboot my node to get the change effect and it works. However, can I
disable the UFO without touching the host OS? or it always has to disable
on both host and guest like that?
Thanks,
Brs,
Natsu
4 years, 4 months
[libvirt-users] ceph rbd pool and libvirt manageability (virt-install)
by Jelle de Jong
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello everybody,
I created a rbd pool and activated it, but I can't seem to create
volumes in it with virsh or virt-install?
# virsh pool-dumpxml myrbdpool
<pool type='rbd'>
<name>myrbdpool</name>
<uuid>2d786f7a-2df3-4d79-ae60-1535bcf1c6b5</uuid>
<capacity unit='bytes'>6997998301184</capacity>
<allocation unit='bytes'>10309227031</allocation>
<available unit='bytes'>6977204658176</available>
<source>
<host name='ceph01.powercraft.nl' port='6789'/>
<host name='ceph02.powercraft.nl' port='6789'/>
<host name='ceph03.powercraft.nl' port='6789'/>
<name>libvirt-pool</name>
<auth type='ceph' username='libvirt'>
<secret uuid='029a334e-ed57-4293-bb99-ffafa8867122'/>
</auth>
</source>
</pool>
# virt-install --version
1.0.1
# virsh --version
1.2.9
I ended using virsh edit ceph-test.powercraft.nl and making creating
the disk manually.
<disk type='network' device='disk'>
<auth username='libvirt'>
<secret type='ceph' uuid='029a334e-ed57-4293-bb99-ffafa8867122'/>
</auth>
<source protocol='rbd' name='libvirt-pool/kvm01-storage'>
<host name='ceph01.powercraft.nl' port='6789'/>
<host name='ceph02.powercraft.nl' port='6789'/>
<host name='ceph03.powercraft.nl' port='6789'/>
</source>
<target dev='vdc' bus='virtio'/>
</disk>
I use virt-install a lot to define, import and undefine domains, how
can I use virt-install to manage my rdb disks?
Kind regards,
Jelle de Jong
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iJwEAQECAAYFAlV1xlQACgkQ1WclBW9j5HkbPQP+PjNrzvlqysslOp2Yk7wH4Mxy
2sh2dn96G0KOAHEeEn3BN6IWlnD1TADZbHdpTtMwkdv48Xwn0sP1s+3QDM4pb3gP
n+z+dVxS8FouDIy/eiso3IBCj3g4TWbEX8ZHqs3jKqe0lZgAXBzB9xYSUowcEBrZ
ddkPbr8p8ozWyOG+9V8=
=lkK7
-----END PGP SIGNATURE-----
6 years, 3 months
[libvirt-users] virRandomBits - not very random
by Brian Rak
I just ran into an issue where I had about 30 guests get duplicate mac
addresses assigned. These were scattered across 30 different machines.
Some debugging revealed that:
1) All the host machines were restarted within a couple seconds of each
other
2) All the host machines had fairly similar libvirtd pids (within ~100
PIDs of each other)
3) Libvirt seeds the RNG using 'time(NULL) ^ getpid()'
This perfectly explains why I saw so many duplicate mac addresses.
Why is the RNG seed such a predictable value? Surely there has to be a
better source of a random seed then the timestamp and the pid?
The PID seems to me to be a very bad source of any randomness. I just
ran a test across 60 of our hosts. 43 of them shared their PID with at
least one other machine.
6 years, 6 months
[libvirt-users] kvm/libvirt on CentOS7 w/Windows 10 Pro guest
by Benjammin2068
Hey all,
New to list, so I apologize if this has been asked a bunch already...
Is there something I'm missing with Windows 10 as a guest that keeps Windows Updates from nuking the boot process?
I just did an orderly shutdown and windows updated itself <I forgot to disable in time> only to reboot to the diagnostics screen which couldn't repair.
going to command prompt and doing the usual "bootrec /fixmbr, /fixboot and /RebuildBcd" didn't help.
This has happened a few times. I can't believe how fragile Win10pro is while running in a VM.
(and it's happened on a couple machines I've been experimenting with -- both running same OS, but different hardware.)
I just saw the FAQ about the libvirt repo for the virtio drivers for windows.... I need to go read more on it...
but in the meantime, is there any other smoking gun I'm not aware of? (after lots of google searching)
Thanks,
-Ben
6 years, 10 months
[libvirt-users] Libvirt not terminating SSH processes
by Priyanka Gupta
Hi LibVirt team,
I am facing an issue with libvert. I am closing a "qemu+ssh" connection but
the initiated ssh process are going into sleep mode and not getting killed
upon closing the connection. Can you please help me figure out the issue ?
--
With Kind Regards
Priyanka Gupta
6 years, 11 months
[libvirt-users] Cannot Write xvga=yes in xml file
by Rogue S.T
Hello,my system info:
virsh verison
Compiled against library: libvirt 3.9.0
Using library: libvirt 3.9.0
Using API: QEMU 3.9.0
Running hypervisor: QEMU 2.10.90
And i want to pass through my gpu to my window 7 guest with <hostdev>, next line is comand i use:
<hostdev mode='subsystem' type='pci' managed='yes' xvga='yes'>
<source>
<address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</source>
<rom bar='on' file='/root/gpu.dump'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</hostdev>
But i get this error:
XML document failed to validate against schema: Unable to validate doc against /ocl/share/libvirt/schemas/domain.rng
Extra element devices in interleave
Element domain failed to validate content
If i delete xvga='yes',it's ok, but i get a other question, my display is not light.
6 years, 11 months
[libvirt-users] libvirt net xml format
by Bhasker C V
Hi all,
I went through the docs but could not find a way to pass the
-h OR --no-hosts
option to dnsmasq via libvirt xml
Is there a way to do this via xml ? please can someone help.
Thanks
6 years, 11 months
[libvirt-users] Using Intel Quick-Sync with GPU capable Intel CPUs
by Benjammin2068
Rogue S.T asked about checking out graphics cards which brought the question to me...
Is it possible to make Intel on-CPU GPU resources to Windows 10?
(the box I'm working with has Xeon E5-2640v4 CPUs which should be QuickSync capable)
What else do I have to do to take advantage of this?
Just load the drivers?
Thanks,
-Ben
6 years, 11 months
[libvirt-users] [BUG] Not exiting media forced a promptly close of libvirt 3.10
by Holger Schranz
Hello,
In the .xml file I use a media which is no longer available.
In the past, I got the information media not available and the
creation of the VM was stopped - O.k. behavior.
Since 3.10 the libvirtd stopped promptly and all open
consoles windows and the virt-manager closed promptly.
For diagnose:
etcsvms1:/kvm/CS8200/M5 # coredumpctl
TIME PID UID GID SIG PRESENT EXE
Fri 2017-12-22 08:16:35 CET 7056 0 0 11 *
/usr/local/sbin/libvirtd
Fri 2017-12-22 08:19:46 CET 10611 0 0 11 *
/usr/local/sbin/libvirtd
Fri 2017-12-22 09:28:48 CET 10728 0 0 11 *
/usr/local/sbin/libvirtd
etcsvms1:/kvm/CS8200/M5 # coredumpctl info libvirtd
.
.
.
PID: 10728 (libvirtd)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Fri 2017-12-22 09:28:39 CET (15min ago)
Command Line: /usr/local/sbin/libvirtd -d
Executable: /usr/local/sbin/libvirtd
Control Group: /
Slice: -.slice
Boot ID: 01603763bc784c7380e310d5eea124d6
Machine ID: 89c660865c00403a9bacef32b6828556
Hostname: etcsvms1
Coredump:
/var/lib/systemd/coredump/core.libvirtd.0.01603763bc784c7380e310
Message: Process 10728 (libvirtd) of user 0 dumped core.
etcsvms1:/kvm/CS8200/M5 # coredumpctl dump libvirtd
PID: 10728 (libvirtd)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Fri 2017-12-22 09:28:39 CET (16min ago)
Command Line: /usr/local/sbin/libvirtd -d
Executable: /usr/local/sbin/libvirtd
Control Group: /
Slice: -.slice
Boot ID: 01603763bc784c7380e310d5eea124d6
Machine ID: 89c660865c00403a9bacef32b6828556
Hostname: etcsvms1
Coredump:
/var/lib/systemd/coredump/core.libvirtd.0.01603763bc784c7380e310d5eea124d6.10728.1513931319000000.xz
Message: Process 10728 (libvirtd) of user 0 dumped core.
Refusing to dump core to tty.
etcsvms1:/kvm/CS8200/M5 # coredumpctl gdb libvirtd
PID: 10728 (libvirtd)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Fri 2017-12-22 09:28:39 CET (18min ago)
Command Line: /usr/local/sbin/libvirtd -d
Executable: /usr/local/sbin/libvirtd
Control Group: /
Slice: -.slice
Boot ID: 01603763bc784c7380e310d5eea124d6
Machine ID: 89c660865c00403a9bacef32b6828556
Hostname: etcsvms1
Coredump:
/var/lib/systemd/coredump/core.libvirtd.0.01603763bc784c7380e310d5eea124d6.10728.1513931319000000.xz
Message: Process 10728 (libvirtd) of user 0 dumped core.
GNU gdb (GDB; openSUSE Leap 42.3) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/sbin/libvirtd...done.
[New LWP 10729]
[New LWP 10731]
[New LWP 10733]
[New LWP 10735]
[New LWP 10732]
[New LWP 10739]
[New LWP 10730]
[New LWP 10741]
[New LWP 10743]
[New LWP 10734]
[New LWP 10736]
[New LWP 11276]
[New LWP 10737]
[New LWP 10738]
[New LWP 10728]
[New LWP 10740]
[New LWP 10751]
[New LWP 10742]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/local/sbin/libvirtd -d'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 virStorageFileReportBrokenChain (errcode=2,
src=src@entry=0x7f0d4004ac40, parent=0x7f0d4004ac40)
at storage/storage_source.c:422
422 unsigned int access_user = src->drv->uid;
[Current thread is 1 (Thread 0x7f0d525ab700 (LWP 10729))]
Missing separate debuginfos, use: zypper install
device-mapper-debuginfo-1.02.97-77.1.x86_64
glibc-debuginfo-2.22-8.4.x86_64 krb5-debuginfo-1.12.5-12.1.x86_64
libapparmor1-debuginfo-2.10.3-16.1.x86_64
libavahi-client3-debuginfo-0.6.32-3.5.x86_64
libavahi-common3-debuginfo-0.6.32-3.5.x86_64
libblkid1-debuginfo-2.29.2-5.1.x86_64
libcap2-debuginfo-2.22-18.16.x86_64
libcom_err2-debuginfo-1.42.11-15.1.x86_64
libcurl4-debuginfo-7.37.0-23.1.x86_64
libdbus-1-3-debuginfo-1.8.22-5.1.x86_64
libffi4-debuginfo-5.3.1+r233831-10.1.x86_64
libgmp10-debuginfo-5.1.3-7.15.x86_64
libgnutls28-debuginfo-3.3.27-1.5.x86_64
libhogweed2-debuginfo-2.7.1-12.1.x86_64
libidn11-debuginfo-1.28-8.3.x86_64
libkeyutils1-debuginfo-1.5.9-7.13.x86_64
libldap-2_4-2-debuginfo-2.4.44-18.1.x86_64
liblzma5-debuginfo-5.2.2-3.15.x86_64
libnettle4-debuginfo-2.7.1-12.1.x86_64
libnl1-debuginfo-1.1.4-6.13.x86_64
libopenssl1_0_0-debuginfo-1.0.2j-16.1.x86_64
libp11-kit0-debuginfo-0.20.7-1.2.x86_64
libpciaccess0-debuginfo-0.13.4-4.3.x86_64
libpcre1-debuginfo-8.39-11.1.x86_64
libsasl2-3-debuginfo-2.1.26-14.1.x86_64
libselinux1-debuginfo-2.5-4.17.x86_64
libssh2-1-debuginfo-1.4.3-18.3.x86_64
libtasn1-6-debuginfo-4.9-1.2.x86_64 libudev1-debuginfo-228-38.1.x86_64
libuuid1-debuginfo-2.29.2-5.1.x86_64
libxml2-2-debuginfo-2.9.4-12.1.x86_64
libyajl2-debuginfo-2.0.1-21.3.x86_64 libz1-debuginfo-1.2.8-13.15.x86_64
(gdb)
Best regards
Holger
---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
6 years, 12 months