Incus Install ans SysV

Hello,

I just installed Incus (6 LTS) under Debian (before I was on LXD)
I tried the version of the original debian packages and the one from @Zabbly

My problem is that I use SysV on my server (for various reasons) and of course Incus uses SystemD.

the “sudo incus admin init” inevitably gives me an error

Error: Failed to connect to local daemon: Get “http://unix.socket/1.0”: dial unix /var/lib/incus/unix.socket: connect: no such file or directory

I looked what service existed for incus:

  • incus-startup.service
  • incus-user.service incus-user.socket
  • incus.service incus.socket
  • incus-lxcfs.service

But it is beyond my skills to transform all that in a SysV Init Script :unamused:

  • Is there an equivalence script to use Incus with SysV init ?
  • or otherwise, what are the commands to run (manually) Incus?

I saw that @MoltenArmor created a SysV init for “incus-agent” ,but I don’t know the Incus environment yet, and what that corresponds to. (!)

Thanks in advance for any help.

AD

incus-agent is an agent service on VM GUESTS, not the host.

As far as I know, if you use OpenRC, Alpine (and Gentoo) has some OpenRC init scripts. But it seems there are no init scripts for the old SysV init.

I would try to write one, if I have some time.

2 Likes

(Debian packager hat on.)

It’s true that at the moment there are no SysV init scripts for Incus in Debian’s packages. You might want to take a look at the SysV scripts in Debian’s LXD package, which would probably serve as a good starting point. If you do get a set of init scripts working for SysV, please feel free to reach out and I’d be happy to include them in the Incus packaging.

(There’s also likely going to be some runit init scripts added in the near future as another alternative to systemd for the Devuan folks.)

Thanks @gibmat , the suggetion was pretty helpful, and I’ve finished writing init scripts for Incus.

The code was hastily written, and I’ve only tested on my Debian bookworm, so there might be bugs. If you have any question, please feel free to open an issue.

4 Likes

Cool!
Thanks a lot for taking the time to do this.
I’ll try all this out and give you feedback.

for information, which Incus Package did you use to create the SysV init files?

Because apparently, when I compare the different versions, whether it is at the level of the organization of the folders or files or their number, there are quite a few differences beyond their location

Packages incus version for Debian GNU/Linux 12 (bookworm):

Package: incus
Version: 1:6.0.1-202409022017-debian12
Maintainer: Zabbly ZFS builds <info@zabbly.com>
Installed-Size: 72,8 MB

Package: incus
Version: 1:6.0.2-202409162055-debian12
Maintainer: Zabbly ZFS builds <info@zabbly.com>
Installed-Size: 74,9 MB

Package: incus
Version: 6.0.2-1~bpo12+1
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Installed-Size: 57,5 MB

Thanks

These scripts are intended to be included in the incus package for Debian, so just use the official packages in bookworm-backports. @Alain_Domani

Hi, it has been some days, did you encounter any problem?