[libvirt-users] libvirt crashes with Caught Segmentation violation
by Minami Katsumata
Hi,
I'm having problems with libvirt crashing after a couple hours when a
specific domain monitoring program is running.
I have pasted below the following:
1. libvirt version
2. qemu-kvm version
3. OS version
4. Kernel version
5. libvirt status post-crash
6. libvirtd.log (info level dump around crash; too long to post
everything so just the beginning and end. UTC)
7. custom.log (on what this domain monitoring program was doing around
the time of the crash. JST)
8. FYI on the program being executed
9. other related server settings
Please, if anyone can look through these and give some insight as to
what is causing libvirt to crash, that would be greatly appreciated.
1.) libvirt version:
# rpm -q libvirt
libvirt-0.9.10-21.el6.x86_64
2.) qemu-kvm version:
qemu-kvm-0.12.1.2-3.295.el6.10.x86_64
3.) OS version:
# cat /etc/redhat-release
CentOS release 6.3 (Final)
4.) Kernel version:
# uname -r
2.6.32-279.22.1.el6.x86_64
5.) libvirt status after crash:
# service libvirtd status
libvirtd dead but pid file exists
6.) libvirtd.log
2014-02-06 10:25:05.173+0000: 1187: info : remoteDispatchAuthList:2091 : Bypass polkit auth for privileged client pid:58626,uid:0
2014-02-06 10:25:05.237+0000: 1184: info : remoteDispatchAuthList:2091 : Bypass polkit auth for privileged client pid:58636,uid:0
2014-02-06 10:25:05.271+0000: 1185: info : remoteDispatchAuthList:2091 : Bypass polkit auth for privileged client pid:58646,uid:0
2014-02-06 10:25:05.301+0000: 1184: info : remoteDispatchAuthList:2091 : Bypass polkit auth for privileged client pid:58648,uid:0
2014-02-06 10:25:05.400+0000: 1184: info : remoteDispatchAuthList:2091 : Bypass polkit auth for privileged client pid:58650,uid:0
Caught Segmentation violation dumping internal log buffer:
====== start of log =====
^(a)05.412+00001182: debug : virEventPollMakePollFDs:383 : Prepare n=19 w=21, f=32 e=25 d=0
2014-02-06 10:25:05.412+00001182: debug : virEventPollMakePollFDs:383 : Prepare n=20 w=22, f=34 e=25 d=0
2014-02-06 10:25:05.412+00001182: debug : virEventPollMakePollFDs:383 : Prepare n=21 w=23, f=33 e=25 d=0
2014-02-06 10:25:05.412+00001182: debug : virEventPollMakePollFDs:383 : Prepare n=22 w=24, f=36 e=25 d=0
2014-02-06 10:25:05.412+00001182: debug : virEventPollMakePollFDs:383 : Prepare n=23 w=25, f=38 e=25 d=0
2014-02-06 10:25:05.412+00001182: debug : virEventPollMakePollFDs:383 : Prepare n=24 w=26, f=39 e=25 d=0
2014-02-06 10:25:05.412+00001182: debug : virEventPollMakePollFDs:383 : Prepare n=25 w=27, f=41 e=25 d=0
2014-02-06 10:25:05.412+00001182: debug : virEventPollMakePollFDs:383 : Prepare n=26 w=28, f=40 e=25 d=0
(cut out due to length)
2014-02-06 10:25:05.423+00001182: debug : virEventPollDispatchHandles:488 : EVENT_POLL_DISPATCH_HANDLE: watch=2791 events=2
2014-02-06 10:25:05.423+00001182: debug : virNetMessageFree:75 : msg=0x2326a20 nfds=0 cb=(nil)
2014-02-06 10:25:05.423+00001182: debug : virNetServerClientCalculateHandleMode:137 : tls=(nil) hs=-1, rx=0x2266390 tx=(nil)
2014-02-06 10:25:05.423+00001182: debug : virNetServerClientCalculateHandleMode:167 : mode=1
2014-02-06 10:25:05.423+00001182: debug : virEventPollUpdateHandle:151 : EVENT_POLL_UPDATE_HANDLE: watch=2791 events=1
2014-02-06 10:25:05.423+00001182: debug : virEventPollInterruptLocked:702 : Skip interrupt, 1 -1675536288
2014-02-06 10:25:05.423+00001182: debug : virEventPollDispatchHandles:474 : i=33 w=2793
2014-02-06 10:25:05.423+00001182: debug : virEventPollCleanupTimeouts:506 : Cleanup 12
2014-02-06 10:25:05.423+00001182: debug : virEventPollCleanupHandles:554 : Cleanup 34
2014-02-06 10:25:05.423+00001182: debug : virNetServerClientClose:632 : client=0x22e6860 refs=3
2014-02-06 10:25:05.423+00001182: debug : virKeepAliveStop:382 : RPC_KEEPALIVE_STOP: ka=0x225bf20 client=0x22e6860
2014-02-06 10:25:05.423+00001182: debug : virEventPollRemoveTimeout:293 : EVENT_POLL_REMOVE_TIMEOUT: timer=8290
2014-02-06 10:25:05.423+00001182: debug : virEventPollInterruptLocked:702 : Skip interrupt, 0 -1675536288
2014-02-06 10:25:05.423+00001182: debug : virEventPollRemoveTimeout:293 : EVENT_POLL_REMOVE_TIMEOUT: timer=8289
2014-02-06 10:25:05.423+00001182: debug : virEventPollInterruptLocked:702 : Skip interrupt, 0 -1675536288
2014-02-06 10:25:05.423+00001182: debug : virKeepAliveFree:304 : RPC_KEEPALIVE_FREE: ka=0x225bf20 client=0x22e6860 refs=3
2014-02-06 10:25:05.423+00001182: debug : daemonRemoveAllClientStreams:493 : stream=(nil)
2014-02-06 10:25:05.423+00001182: debug : virEventPollRemoveHandle:180 : EVENT_POLL_REMOVE_HANDLE: watch=2791
2014-02-06 10:25:05.423+00001182: debug : virEventPollRemoveHandle:193 : mark delete 32 50
2014-02-06 10:25:05.423+00001182: debug : virEventPollInterruptLocked:702 : Skip interrupt, 0 -1675536288
2014-02-06 10:25:05.423+00001182: debug : virNetMessageFree:75 : msg=0x2266390 nfds=0 cb=(nil)
2014-02-06 10:25:05.423+00001182: debug : virNetSocketFree:722 : RPC_SOCKET_FREE: sock=0x22e66a0 refs=2
2014-02-06 10:25:05.423+00001182: debug : virNetServerClientFree:591 : RPC_SERVER_CLIENT_FREE: client=0x22e6860 refs=3
2014-02-06 10:25:05.423+00001182: debug : virEventRunDefaultImpl:244 : running default event implementation
2014-02-06 10:25:05.423+00001182: debug : virEventPollCleanupTimeouts:506 : Cleanup 12
2014-02-06 10:25:05.423+00001182: debug : virEventPollCleanupTimeouts:519 : EVENT_POLL_PURGE_TIMEOUT: timer=8289
2014-02-06 10:25:05.423+00001182: debug : virKeepAliveFree:304 : RPC_KEEPALIVE_FREE: ka=0x225bf20 client=0x22e6860 refs=2
2014-02-06 10:25:05.423+00001182: debug : virEventPollCleanupTimeouts:519 : EVENT_POLL_PURGE_TIMEOUT: timer=8290
2014-02-06 10:25:05.423+00001182: debug : virKeepAliveFree:304 : RPC_KEEPALIVE_FREE: ka=0x225bf20 client=0x22e6860 refs=1
2014-02-06 10:25:05.423+00001182: debug : virNetServerClientFree:591 : RPC_SERVER_CLIENT_FREE: client=0x22e6860 refs=2
2014-02-06 10:25:05.423+00001182: debug : virEventPollCleanupHandles:554 : Cleanup 34
2014-02-06 10:25:05.423+00001182: debug : virEventPollCleanupHandles:567 : EVENT_POLL_PURGE_HANDLE: watch=2791
2014-02-06 10:25:05.423+00001182: debug : virNetServerClientFree:591 : RPC_SERVER_CLIENT_FREE: client=0x22e6860 refs=1
2014-02-06 10:25:05.423+00001182: debug : virConnectClose:1462 : conn=0x7f1b380c4630
2014-02-06 10:25:05.423+00001182: debug : virUnrefConnect:145 : unref connection 0x7f1b380c4630 1
2014-02-06 10:25:05.423+00001182: debug : virReleaseConnect:94 : release connection 0x7f1b380c4630
====== end of log =====
7.) custom.log
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh domifstat i-8-114-VM Interf
ace
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file
or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh domifstat i-8-114-VM vnet4
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file
or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh list --all
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file
or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh domiflist i-8-114-VM
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file
or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh domifstat i-8-114-VM Interf
ace
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file
or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh domifstat i-8-114-VM vnet4
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file
or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh list --all
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file
or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh list --all
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file
or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
Feb 6 19:25:05 jp7-rk90000 [authpriv.notice] sudo: zabbix :
TTY=unknown ; PWD=/etc/zabbix/sender_scripts/compute ; USER=root ;
COMMAND=/usr/bin/virsh list --all
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM unable to
dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so:
cannot open shared object file: No such file or directory
Feb 6 19:25:05 jp7-rk90000 [authpriv.err] sudo: PAM adding faulty
module: /lib64/security/pam_fprintd.so
8.) FYI on this program:
This program consists of three main scripts that are run via cron.
2 run every 5 minutes, and 1 runs every minute.
The two scripts that are executed every 5 minutes rely heavily on the
virsh command. However, it is made so that the simultaneous number of
connections to libvirt is not too large; the max number of libvirt-sock
connections at any given moment does not go over 6.
As it is a domain monitoring program, it only executes the following
virsh commands:
virsh list --all
virsh dominfo
virsh domblklist
virsh domblkstat
virsh domiflist
virsh domifstat
9.) other related server settings
9-1) user resource limits
[root@ ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 773493
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 32768
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
9-2) libvirtd.conf
The following settings have been changed:
#max_clients = 20
max_clients = 250
#max_workers = 20
max_workers = 250
#max_requests = 20
max_requests = 250
Regards,
Minami
10 years, 7 months
[libvirt-users] F20 Virt-Manager with MacVTap not working
by John Obaterspok
Hello,
I've setup a VM with default networking (NAT) and this works fine but hosts
on my LAN can't get to the VM since it uses NAT.
When I try to set network to use MacVTap with either default or bridged I
get no networking for the VM.
Any hints around this? I would like to have the VM's on the same LAN as my
host and other machines. I don't care if the VM host can't reach the guests.
It did work find in F19 but there I believe I had more MacVtap devices to
choose from.
-- john
10 years, 7 months
[libvirt-users] Help? Running into problems with migrateToURI2() and virDomainDefCheckABIStability()
by Chris Friesen
Hi,
We've run into a problem with libvirt 1.1.2 and are looking for some
comments on whether this is a bug or design intent.
We're trying to use migrateToURI() but we're using a few things
(numatune, vcpu mask, etc.) that may need adjustment during the
migration. We found that migrateToURI2() mostly works if we use XML
created by copying the domain XML from the running instance and
modifying the appropriate sections.
The problem that we're seeing is that the serial console checking in
libvirt/src/conf/domain_conf.c::virDomainDefCheckABIStability() is
failing even though we haven't touched the serial console XML:
2014-02-10 19:41:07.196 1264 ERROR nova.virt.libvirt.driver [-]
[instance: 42a841a8-034f-4565-937e-adb396a2ec48] Live Migration failure:
unsupported configuration: Target domain console count 1 does not match
source 0
On occasion it passes if the devices/serial/source element happens to be
the same after migration, but this seems to be a fluke.
If we remove the devices/serial/source element in the XML it seems to
make the serial console check work on the first migration, but upon
doing subsequent migration it fails with a console count error:
2014-02-07 16:11:32.459 28759 ERROR nova.virt.libvirt.driver [-]
[instance: 1d7c470d-4337-450a-8a40-d0fb375ca2c1] Live Migration failure:
unsupported configuration: Target domain console count 0 does not match
source 1
Are we doing something wrong? Is there an issue with the console check
code? Is there a better way to do what we're trying to do?
Any help would be appreciated...
Thanks,
Chris
10 years, 7 months
[libvirt-users] Can you verify currently defined libvirt secret provides valid Cephx auth?
by Scott Sullivan
As the subject suggests, I am wondering if its possible to verify if the
currently defined libvirt secret provides valid authentication via Cephx to
a Ceph cluster?
I ask because ideally I would like to verify that the given cephx
credentials in my libvirt secret are valid before I even attempt the virsh
attach-device on the domain.
I tried searching for a solution to this, but I can't seem to find a way to
_just_ check if the currently defined libvirt secret provides valid
authentication to the Ceph cluster or not. Is this possible?
10 years, 7 months
[libvirt-users] LXC container driver
by arnaud gaboury
Dear all,
I am slowly building a Arch Linux VM guest on my Arch Linux host.
The guest machine is now built and is recognized as shown by this command :
gabx@hortensia ➤➤ ~ % machinectl list
MACHINE CONTAINER SERVICE
dahlia container nspawn
1 machines listed.
I an following the libvirt.org documentation. Now, according this
page[1] about lxc driver, i am dealing with namespace requirements.
This sentence, in bold, puzzles me:
A suitably configured UID/GID mapping is a pre-requisite to making
containers secure, in the absence of sVirt confinement.
If I understand what a namespace is, I have no idea how to make sure
my UIG/GID mapping is well configured. I would appreciate having any
hints abut this part of the settings.
Another question : is there any advantage/disadvantage using the lxc
Userspace tools[2] instead of libvirt to manage these namespaces ?
Thank you for help.
[1]http://libvirt.org/drvlxc.html
[2]http://linuxcontainers.org/
10 years, 8 months
[libvirt-users] Connection from host to lxc container dbus
by Piotr Bartosiewicz
Hi,
I am unsuccessfully trying to connect from host to containers dbus.
Inside container dbus socket file is visible as /run/dbus/system_bus_socket.
The problem is that /run is mounted as tmpfs in container (by systemd on
container) and thus the directory content is not visible outside the
container.
Is there any way to make this file visible also outside the container?
Regards,
Piotrek
10 years, 8 months
[libvirt-users] SR-IOV: no traffic isolation between VFs with Broadcom 10Gbps cards
by Yoann Juet
Hi all,
I'm testing on debian/unstable SR-IOV feature with Broadcom BCM57810
cards and KVM hypervisor:
Compiled against library: libvirt 1.2.1
Using library: libvirt 1.2.1
Using API: QEMU 1.2.1
Running hypervisor: QEMU 1.7.0
bnx2x
-> firmware 7.8.17
-> driver from kernel 3.12.7
8 VFs are created on the first PF. For each VF, a specific mac address
is set manually using "ip link set eth0 vf x mac xx:xx:xx:xx:xx"
command. I run several KVM guests with PCI passthrough (same kernel,
bnx2x driver and firmware as the host), performance is close to bare metal.
Well, that sounds good, until I start capturing the traffic inside each
VM: host traffic is visible as well as traffic destined to other VM.
It's like if internal card switching was inoperable. I made several
tests with different kernels, different PCIe Passthrough method
assignments for libvirt. All failed.
Has anyone successfully experiment SR-IOV with Broadcom cards on linux ?
-----
Some details:
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet (rev 10)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet (rev 10)
01:09.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet Virtual Function
01:09.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet Virtual Function
01:09.2 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet Virtual Function
01:09.3 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet Virtual Function
01:09.4 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet Virtual Function
01:09.5 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet Virtual Function
01:09.6 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet Virtual Function
01:09.7 Ethernet controller: Broadcom Corporation NetXtreme II BCM57810
10 Gigabit Ethernet Virtual Function
# virsh nodedev-dumpxml pci_0000_01_09_0
<device>
<name>pci_0000_01_09_0</name>
<path>/sys/devices/pci0000:00/0000:00:01.0/0000:01:09.0</path>
<parent>pci_0000_00_01_0</parent>
<driver>
<name>vfio-pci</name>
</driver>
<capability type='pci'>
<domain>0</domain>
<bus>1</bus>
<slot>9</slot>
<function>0</function>
<product id='0x16af'>NetXtreme II BCM57810 10 Gigabit Ethernet
Virtual Function</product>
<vendor id='0x14e4'>Broadcom Corporation</vendor>
<capability type='phys_function'>
<address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
</capability>
<iommuGroup number='35'>
<address domain='0x0000' bus='0x01' slot='0x09' function='0x0'/>
</iommuGroup>
</capability>
</device>
# virsh nodedev-dumpxml pci_0000_01_09_1
<device>
<name>pci_0000_01_09_1</name>
<path>/sys/devices/pci0000:00/0000:00:01.0/0000:01:09.1</path>
<parent>pci_0000_00_01_0</parent>
<driver>
<name>vfio-pci</name>
</driver>
<capability type='pci'>
<domain>0</domain>
<bus>1</bus>
<slot>9</slot>
<function>1</function>
<product id='0x16af'>NetXtreme II BCM57810 10 Gigabit Ethernet
Virtual Function</product>
<vendor id='0x14e4'>Broadcom Corporation</vendor>
<capability type='phys_function'>
<address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
</capability>
<iommuGroup number='36'>
<address domain='0x0000' bus='0x01' slot='0x09' function='0x1'/>
</iommuGroup>
</capability>
</device>
Guest A XML:
...
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x01' slot='0x09' function='0x0'/>
</source>
</hostdev>
...
Guest B XML:
...
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x01' slot='0x09' function='0x1'/>
</source>
</hostdev>
...
--
Université de Nantes - Direction des Systèmes d'Information
10 years, 8 months
[libvirt-users] libvirt 1.2.1 / lxc : default virtual network not defined after installing/starting Libvirt
by Mohamed Amine Larabi
Hi There,
I am using Libvirt 1.2.1 on Fedora 20.
So, Libvirt is well installed and started but the weird thing is that the 'default' virtual network is not automatically defined and started, knowing that I can define/start it manually and everything goes fine.
previously I was using libvirt 1.0.4 and the 'default' virtual network was defined/started at Libvirt startup.
so, I am wondering if this new behavior was introduced intentionally in the latest versions of Libvirt or it's a known issue.
Thank you in advance for your help.
Regards
Mohamed.
10 years, 8 months
[libvirt-users] libvirt/qemu and cgroups
by arnaud gaboury
Dear list,
I am building a Arch server on my Arch box.
My tools are QEMU/KVM and libvirt to manage the guest, systemd as
system manager.
I am looking at implementing the Linux Control Groups facilities for
resource management. Even after long hours of reading, I am not quite
sure about how to deal with the cgroups facilities.
First, do I really need to care about all that, or libvirt and systemd
will manage the resource in an efficient way right out of the box?
If not, It's all about /etc/cgconfig.conf and cgrules.conf. I am
honestly not sure :
-what are the correct mount points for cpu, memory etc in the
/sys/fs/cgroup directory .
- which directories am I supposed to mk, if any ?
Then, Archwiki[1] says:
# cgcreate -a $USER -g memory,cpu:groupname
- what is the groupename I shall create (qemu*, MyMachine) ?
- which $USER shall I use (qemu*, my username) ?
* qemu:qemu as user:group in /etc/libvirt/qemu.conf
Thank you for some help as I admit if I understand the cgroups
principle and advantages, I am far from understanding how to create
such a group in case of a VM.
[1]https://wiki.archlinux.org/index.php/Cgroups
10 years, 8 months