Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67825 - [lxd] lxd-agent not working in some vms

Attached to Project: Community Packages
Opened by Mihai-Drosi Caju (mcaju) - Thursday, 03 September 2020, 23:47 GMT
Last edited by Morten Linderud (Foxboron) - Friday, 04 September 2020, 21:52 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
/usr/bin/lxd-agent in the lxd package is not statically linked.
This may cause problems with several VM images which use older versions of GLIBC, or do not use GLIBC at all.

Additional info:
* version: 4.5-1

Steps to reproduce:
`ldd /usr/bin/lxd-agent`
`lxc launch --vm images:centos/7/amd64 test && sleep 30 && lxc exec test -- su -l`

Possible fix: attached
This task depends upon

Closed by  Morten Linderud (Foxboron)
Friday, 04 September 2020, 21:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.5-2
Comment by Morten Linderud (Foxboron) - Friday, 04 September 2020, 21:48 GMT
Fixing it with `4.5-2`. You might want to submit this upstream in their Makefiles so they don't get the same surprise.

If you don't want I can write up the patch for it.

https://github.com/lxc/lxd/blob/master/Makefile
Comment by Morten Linderud (Foxboron) - Friday, 04 September 2020, 21:51 GMT
Ah no. `CGO_ENABLED=1` ensures it is statically linked. The -static flag in -extldflags isn't needed.

Loading...