Unable to configure libxl's memory management parameters

Bug #1901398 reported by Marietto on 2020-10-25
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Undecided
Unassigned

Bug Description

Hello.

Yesterday I've upgraded ubuntu 20.04 to 20.10 and I have soon realized that libvirt stopped working with xen. Xen itself works ok for me,as u can see :

root@ziomario-z390aoruspro:/etc/xen# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 32065 16 r----- 435.8

but it does not with libvirt :

root@ziomario-z390aoruspro:/etc/xen# virsh pool-list --all
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection denied

this is what happens when I query for the status :

root@ziomario-z390aoruspro:/etc/xen# sudo systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
     Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Sun 2020-10-25 12:11:43 CET; 41s ago
TriggeredBy: ● libvirtd.socket
             ● libvirtd-ro.socket
             ● libvirtd-admin.socket
       Docs: man:libvirtd(8)
             https://libvirt.org
    Process: 4283 ExecStart=/usr/sbin/libvirtd $libvirtd_opts (code=exited, status=0/SUCCESS)
   Main PID: 4283 (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 32768)
     Memory: 28.2M
     CGroup: /system.slice/libvirtd.service
             ├─1577 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
             └─1578 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper

ott 25 12:11:43 ziomario-z390aoruspro dnsmasq[1577]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
ott 25 12:11:43 ziomario-z390aoruspro dnsmasq-dhcp[1577]: read /var/lib/libvirt/dnsmasq/default.hostsfile
ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: libvirt version: 6.6.0, package: 1ubuntu3 (Christian Ehrhardt <email address hidden> Thu, 08 Oct 2020 07:3>
ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: hostname: ziomario-z390aoruspro
ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: Unable to configure libxl's memory management parameters
ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: Initialization of Xen state driver failed: no error
ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: Driver state initialization failed
ott 25 12:11:43 ziomario-z390aoruspro systemd[1]: libvirtd.service: Succeeded.
ott 25 12:11:43 ziomario-z390aoruspro systemd[1]: libvirtd.service: Unit process 1577 (dnsmasq) remains running after unit stopped.
ott 25 12:11:43 ziomario-z390aoruspro systemd[1]: libvirtd.service: Unit process 1578 (dnsmasq) remains running after unit stopped.

if xen works without libvirt AND it does not work with Libvirt,it is a bug of libvirt. I dind't see this behavior with ubuntu 20.04 ; so it is a bug of ubuntu 20.10. do u want to give a look ?

Marietto (marietto2008) wrote :
Download full text (4.2 KiB)

I did :

sudo usermod -aG libvirt root

and

sudo usermod -aG libvirt root

but the error persists.

anyway,look below. I've thought that libvirtd was active,but it isn't :

root@ziomario-z390aoruspro:/etc/xen# ./xen-start.sh

Starting /usr/local/sbin/oxenstored...Setting domain 0 name, domid and JSON config...
Done setting up Dom0
Starting xenconsoled...
Starting QEMU as disk backend for dom0
 * [done]
Starting xen-watchdog (via systemctl): xen-watchdog.service.

root@ziomario-z390aoruspro:/etc/xen# xl list

Name ID Mem VCPUs State Time(s)
Domain-0 0 32065 16 r----- 156.7

root@ziomario-z390aoruspro:/etc/xen# xl info

host : ziomario-z390aoruspro
release : 5.8.0-25-generic
version : #26-Ubuntu SMP Thu Oct 15 10:30:38 UTC 2020
machine : x86_64
nr_cpus : 16
max_cpu_id : 15
nr_nodes : 1
cores_per_socket : 8
threads_per_core : 2
cpu_mhz : 3600.506
hw_caps : bfebfbff:77faf3ff:2c100800:00000121:0000000f:009c6fbf:00000000:00000100
virt_caps : pv hvm hvm_directio pv_directio hap shadow iommu_hap_pt_share
total_memory : 32625
free_memory : 133
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 13
xen_extra : .1
xen_version : 4.13.1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit2
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset :
xen_commandline : placeholder
cc_compiler : gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0
cc_compile_by : ziomario
cc_compile_domain :
cc_compile_date : Fri Oct 2 16:52:58 CEST 2020
build_id : 663c0ea9a0c8e154f65ceaa1261896c7c6ba90fc
xend_config_format : 4

root@ziomario-z390aoruspro:/etc/xen# sudo systemctl status libvirtd.service

● libvirtd.service - Virtualization daemon
     Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Sun 2020-10-25 14:00:23 CET; 19min ago
TriggeredBy: ● libvirtd-ro.socket
             ● libvirtd-admin.socket
             ● libvirtd.socket
       Docs: man:libvirtd(8)
             https://libvirt.org
    Process: 1393 ExecStart=/usr/sbin/libvirtd $libvirtd_opts (code=exited, status=0/SUCCESS)
   Main PID: 1393 (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 32768)
     Memory: 18.8M
     CGroup: /system.slice/libvirtd.service
             ├─1522 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
             └─1523 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper

ott 25 14:00:23 ziomario-z390aoruspro libvirtd[1393]: Unable to configure libxl's memory management par...

Read more...

Marietto (marietto2008) on 2020-10-25
affects: ubiquity (Ubuntu) → libvirt (Ubuntu)

@smb do you see anything like this in 20.10?

Marietto (marietto2008) wrote :

I've tried to make a fresh installation of ubuntu 20.10,to see if the error happens also in that circumstance,but I'm stalled with another bug :

https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1900642

I've just purged sssd with this command :

apt-get purge --auto-remove sssd

but it didn't work. I see the same errors as before.

this is a bug inside another bug ? because both happens only when I boot xen.

Marietto (marietto2008) wrote :
Marietto (marietto2008) wrote :

From the image, It's not freezing but holding, "Starting Hold until boot process finishes up ..."
Because the dependencies are not started for the sssd.service, my computer is holding infinitely because System Security Services Daemon,that I have removed with apparmor.

On 27.10.20 15:36, Christian Ehrhardt wrote:
> @smb do you see anything like this in 20.10?
>
I can not remember for sure. I believe I had some guest up via libvirt. But
probably not with the final kernel.

Marietto (marietto2008) wrote :
Download full text (4.0 KiB)

I've installed a fresh copy of ubuntu 20.04 ; I have upgraded it to 20.10 ;
I have installed all the relevant packages for xen,libvirt and kvm and boom
: it worked.

Il giorno mer 28 ott 2020 alle ore 10:50 Stefan Bader <
<email address hidden>> ha scritto:

> On 27.10.20 15:36, Christian Ehrhardt wrote:
> > @smb do you see anything like this in 20.10?
> >
> I can not remember for sure. I believe I had some guest up via libvirt. But
> probably not with the final kernel.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1901398
>
> Title:
> Unable to configure libxl's memory management parameters
>
> Status in libvirt package in Ubuntu:
> New
>
> Bug description:
> Hello.
>
> Yesterday I've upgraded ubuntu 20.04 to 20.10 and I have soon realized
> that libvirt stopped working with xen. Xen itself works ok for me,as u
> can see :
>
> root@ziomario-z390aoruspro:/etc/xen# xl list
> Name ID Mem VCPUs State Time(s)
> Domain-0 0 32065 16 r-----
> 435.8
>
> but it does not with libvirt :
>
> root@ziomario-z390aoruspro:/etc/xen# virsh pool-list --all
> error: failed to connect to the hypervisor
> error: Failed to connect socket to '/var/run/libvirt/libvirt-sock':
> Connection denied
>
> this is what happens when I query for the status :
>
> root@ziomario-z390aoruspro:/etc/xen# sudo systemctl status
> libvirtd.service
> ● libvirtd.service - Virtualization daemon
> Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled;
> vendor preset: enabled)
> Active: inactive (dead) since Sun 2020-10-25 12:11:43 CET; 41s ago
> TriggeredBy: ● libvirtd.socket
> ● libvirtd-ro.socket
> ● libvirtd-admin.socket
> Docs: man:libvirtd(8)
> https://libvirt.org
> Process: 4283 ExecStart=/usr/sbin/libvirtd $libvirtd_opts
> (code=exited, status=0/SUCCESS)
> Main PID: 4283 (code=exited, status=0/SUCCESS)
> Tasks: 2 (limit: 32768)
> Memory: 28.2M
> CGroup: /system.slice/libvirtd.service
> ├─1577 /usr/sbin/dnsmasq
> --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
> --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
> └─1578 /usr/sbin/dnsmasq
> --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
> --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
>
> ott 25 12:11:43 ziomario-z390aoruspro dnsmasq[1577]: read
> /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
> ott 25 12:11:43 ziomario-z390aoruspro dnsmasq-dhcp[1577]: read
> /var/lib/libvirt/dnsmasq/default.hostsfile
> ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: libvirt version:
> 6.6.0, package: 1ubuntu3 (Christian Ehrhardt <
> <email address hidden>> Thu, 08 Oct 2020 07:3>
> ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: hostname:
> ziomario-z390aoruspro
> ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: Unable to
> configure libxl's memory management parameters
> ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: ...

Read more...

Marietto (marietto2008) wrote :
Download full text (4.3 KiB)

ohh I forgot to mention that I haven't installed the plain ubuntu 20.04,but
the ubuntu 20.04 cinnamon remix version.

Il giorno mer 28 ott 2020 alle ore 12:47 Mario Marietto <
<email address hidden>> ha scritto:

> I've installed a fresh copy of ubuntu 20.04 ; I have upgraded it to 20.10
> ; I have installed all the relevant packages for xen,libvirt and kvm and
> boom : it worked.
>
> Il giorno mer 28 ott 2020 alle ore 10:50 Stefan Bader <
> <email address hidden>> ha scritto:
>
>> On 27.10.20 15:36, Christian Ehrhardt wrote:
>> > @smb do you see anything like this in 20.10?
>> >
>> I can not remember for sure. I believe I had some guest up via libvirt.
>> But
>> probably not with the final kernel.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1901398
>>
>> Title:
>> Unable to configure libxl's memory management parameters
>>
>> Status in libvirt package in Ubuntu:
>> New
>>
>> Bug description:
>> Hello.
>>
>> Yesterday I've upgraded ubuntu 20.04 to 20.10 and I have soon realized
>> that libvirt stopped working with xen. Xen itself works ok for me,as u
>> can see :
>>
>> root@ziomario-z390aoruspro:/etc/xen# xl list
>> Name ID Mem VCPUs State Time(s)
>> Domain-0 0 32065 16 r-----
>> 435.8
>>
>> but it does not with libvirt :
>>
>> root@ziomario-z390aoruspro:/etc/xen# virsh pool-list --all
>> error: failed to connect to the hypervisor
>> error: Failed to connect socket to '/var/run/libvirt/libvirt-sock':
>> Connection denied
>>
>> this is what happens when I query for the status :
>>
>> root@ziomario-z390aoruspro:/etc/xen# sudo systemctl status
>> libvirtd.service
>> ● libvirtd.service - Virtualization daemon
>> Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled;
>> vendor preset: enabled)
>> Active: inactive (dead) since Sun 2020-10-25 12:11:43 CET; 41s ago
>> TriggeredBy: ● libvirtd.socket
>> ● libvirtd-ro.socket
>> ● libvirtd-admin.socket
>> Docs: man:libvirtd(8)
>> https://libvirt.org
>> Process: 4283 ExecStart=/usr/sbin/libvirtd $libvirtd_opts
>> (code=exited, status=0/SUCCESS)
>> Main PID: 4283 (code=exited, status=0/SUCCESS)
>> Tasks: 2 (limit: 32768)
>> Memory: 28.2M
>> CGroup: /system.slice/libvirtd.service
>> ├─1577 /usr/sbin/dnsmasq
>> --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
>> --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
>> └─1578 /usr/sbin/dnsmasq
>> --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
>> --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
>>
>> ott 25 12:11:43 ziomario-z390aoruspro dnsmasq[1577]: read
>> /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
>> ott 25 12:11:43 ziomario-z390aoruspro dnsmasq-dhcp[1577]: read
>> /var/lib/libvirt/dnsmasq/default.hostsfile
>> ott 25 12:11:43 ziomario-z390aoruspro libvirtd[4283]: libvirt version:
>> 6.6.0, package: 1ubuntu3 (Christian Ehrhardt <
>> christian.ehrhardt@canoni...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments