Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] libvirt broken in musl due to lack of utmpx implementation in musl
@ 2019-09-25 18:17 voidlinux-github
  2019-09-25 18:39 ` voidlinux-github
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: voidlinux-github @ 2019-09-25 18:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2000 bytes --]

New issue by ktm5j on void-packages repository

https://github.com/void-linux/void-packages/issues/14721

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  Void 5.2.15_1 x86_64-musl GenuineIntel uptodate rF
  *output of ``xuname`` (part of xtools)*
* package:  libvirt - 5.7.0-r0 (assuming all versions?
  *affected package(s) including the version*

### Expected behavior
After installing libvirt and configuring services, I should be able to connect to the host using virt-manager/virsh/etc and use normally

### Actual behavior
libvirt starts properly, and I can connect using virt-manager/virsh.. however once I try to create a VM I am given this error message:

```
[root@ruby ~ ]# virsh create /tmp/vm.xml
error: Failed to create domain from /tmp/vm.xml
error: internal error: child reported (status=125): Unable to get host boot time: No data available  
```

### Steps to reproduce the behavior

Install libvirt under musl and try using it

I have tracked the error down to an issue with musl's lack of utmpx implementation.  The error message is generated by [this if statement in libvirt](https://github.com/libvirt/libvirt/blob/3ebde403c76ee046c53ebf7b80dff7eb11e94748/src/security/security_util.c#L117) 

The function is calling [virHostGetBootTime() from src/util/virhostuptime.c](https://github.com/libvirt/libvirt/blob/3ebde403c76ee046c53ebf7b80dff7eb11e94748/src/util/virhostuptime.c#L36) where the error occurs.  This function is calling `getutxid()` from `utmpx.h` however the musl implementation of utmpx simply returns NULL for this and many other functions.

Has libvirt ever worked under musl?  Is this happening now because of a change that was made in libvirt?  Sorry if this is the wrong place to file this issue, but I would really like to get this working if possible

Thanks


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-10-14 14:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 18:17 [ISSUE] libvirt broken in musl due to lack of utmpx implementation in musl voidlinux-github
2019-09-25 18:39 ` voidlinux-github
2019-10-10 20:06 ` voidlinux-github
2019-10-11 17:08 ` voidlinux-github
2019-10-11 19:46 ` voidlinux-github
2019-10-11 20:15 ` voidlinux-github
2019-10-11 20:20 ` voidlinux-github
2019-10-11 20:21 ` voidlinux-github
2019-10-11 20:39 ` voidlinux-github
2019-10-11 20:40 ` voidlinux-github
2019-10-12  7:44 ` voidlinux-github
2019-10-12  7:45 ` [ISSUE] [CLOSED] " voidlinux-github
2019-10-12 12:27 ` voidlinux-github
2019-10-14  6:36 ` voidlinux-github
2019-10-14  7:20 ` voidlinux-github
2019-10-14  8:32 ` voidlinux-github
2019-10-14 14:55 ` voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).