View previous topic :: View next topic |
Author |
Message |
MarcGentoo n00b
Joined: 26 Nov 2020 Posts: 65
|
Posted: Wed Jun 16, 2021 8:15 am Post subject: Libvirtd not starting when offline |
|
|
Hello,
I am using libvirtd on my notebook. If its not connected to the network libvirtd won't start because
"libvirtd will start after NetworkManager has started"
Becaus nothing is connected:
/etc/init.d/NetworkManager start
* WARNING: NetworkManager has already started, but is inactive
Do you have any idea how I can circumvent this?
I do not see any dependencies in the /etc/init.d/libvirt, it seems to come from the /usr/sbin/libvirtd itself.
Thanks in advance.
Edit: My Workaround is commenting out the section that sets the "inactive" flag for NetworkManager in /etc/init.d/NetworkManager but I am unsure of its consequences |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Wed Jun 16, 2021 8:28 am Post subject: |
|
|
Please comment out the following
in /etc/conf.d/libvirtd
I think this will suffice even in case of systemd.
If not then run
Code: |
systemctl edit --full libvirtd.service
|
and edit it thus
Code: |
#After=network.target
|
_________________
|
|
Back to top |
|
|
MarcGentoo n00b
Joined: 26 Nov 2020 Posts: 65
|
Posted: Wed Jun 16, 2021 8:58 am Post subject: |
|
|
thanks, that was it. Didn't think of looking in conf.d ... |
|
Back to top |
|
|
|