Systemd systemctl edit command SysVInit alternative?
Posted: Sat Apr 06, 2024 8:23 pm
So, I need to do sudo systemctl edit libvirtd this (copied to the end, below for convenience):
But when I do I get
Is there any simple way around this without just giving up on MX's penchant for SysVInit and setting Systemd as the default in MX Boot Options?? Trying to look up alternatives to systemctl edit and all I get is years old guides for switching TO systemd FROM Init. At this point I might as well just throw in the towel as nothing seems to work right on SysV without workarounds that don't always work 100% of the time (installations that manage to bork the compatibility symlinks, or programs that detect that systemd isn't running and throw a tantrum, refusing to run).
But when I do I get
Code: Select all
$ sudo systemctl edit libvirtd
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
I'm running Arch Linux and have been running into trouble trying to use QEMU/KVM on, and this problem is likely to address my issues while using the similarCode: Select all
virt-manager
.Code: Select all
gnome-boxes
Resolution
This error was related to the driver opencl-amdgpu-pro-orca. This answer details some background of what causes the error. Here's how I went about resolving the problem:
1. Run, which opens Nano.Code: Select all
sudo systemctl edit libvirtd
2. Enter the following into this (empty in my case) file:
- That command creates a temporary file which will save to become
within the directory of theCode: Select all
override.conf
service.Code: Select all
libvirtd
3. RestartCode: Select all
[Service] Environment="LD_LIBRARY_PATH=/usr/lib"
withCode: Select all
libvirtd
.Code: Select all
sudo systemctl restart libvirtd
4. Open. The error should not be present.Code: Select all
virt-manager
- It's worth noting that I did not need to reboot following these changes.