Group: Software/FSDG distributions/DistroExecutionEnvironments

From LibrePlanet
Jump to: navigation, search
(Running distributions in a virtual execution environments: Trisquel: mention trisquel 10 for debuerotype)
(Running distributions in a virtual execution environments: Also set Parabola orange as it works, but not out of the box.)
Line 70: Line 70:
 
| {{Yes}}<ref>An image can be produced with the 'guix system image -t docker system.scm' command. Guix can also be installed on top of most GNU/Linux and GNU/Hurd distributions.</ref>
 
| {{Yes}}<ref>An image can be produced with the 'guix system image -t docker system.scm' command. Guix can also be installed on top of most GNU/Linux and GNU/Hurd distributions.</ref>
 
| {{no}}<ref>I found no hyperbola docker package, no docker related git repository in [https://git.hyperbola.info:50100/ git.hyperbola.info], and while parabola-docker has very few parabola specific files, [https://git.parabola.nu/~lukeshu/parabola-docker.git/tree/rootfs/etc/pacman.d/mirrorlist very few it has at least one], so hyperbola support probably need to be added in the parabla-docker program. Though Hyperbola is also switching to a BSD kernel, so docker might not work anymore there. So there might not be enough interest to do that.</ref>
 
| {{no}}<ref>I found no hyperbola docker package, no docker related git repository in [https://git.hyperbola.info:50100/ git.hyperbola.info], and while parabola-docker has very few parabola specific files, [https://git.parabola.nu/~lukeshu/parabola-docker.git/tree/rootfs/etc/pacman.d/mirrorlist very few it has at least one], so hyperbola support probably need to be added in the parabla-docker program. Though Hyperbola is also switching to a BSD kernel, so docker might not work anymore there. So there might not be enough interest to do that.</ref>
| Not packaged, requires Parabola.<ref>[https://git.parabola.nu/~lukeshu/parabola-docker.git/tree/README.md A project] exist to build Parabola docker images but it's not packaged in Parabola</ref>
+
| {{orange|yes, Not packaged, requires Parabola.}}<ref>[https://git.parabola.nu/~lukeshu/parabola-docker.git/tree/README.md A project] exist to build Parabola docker images but it's not packaged in Parabola</ref>
 
| {{orange|yes, with configuration}}<ref name="pureos-debuerreotype">PureOS has [https://repo.pureos.net/pureos/pool/main/d/debuerreotype/debuerreotype_0.10-2_all.deb a package for debuerreotype], the software used to create the semi-official Debian images on docker.com. It uses debootstrap so it can create PureOS images. However the package documentation mention Ubuntu or Debian examples, so someone needs to bugreport and/or fix it. The  '''debuerreotype-init --non-debian rootfs amber https://repo.pureos.net/pureos''' command can be used to create a PureOS rootfs on PureOS.</ref>
 
| {{orange|yes, with configuration}}<ref name="pureos-debuerreotype">PureOS has [https://repo.pureos.net/pureos/pool/main/d/debuerreotype/debuerreotype_0.10-2_all.deb a package for debuerreotype], the software used to create the semi-official Debian images on docker.com. It uses debootstrap so it can create PureOS images. However the package documentation mention Ubuntu or Debian examples, so someone needs to bugreport and/or fix it. The  '''debuerreotype-init --non-debian rootfs amber https://repo.pureos.net/pureos''' command can be used to create a PureOS rootfs on PureOS.</ref>
 
| {{no}}<ref name="replicant-virt"></ref>
 
| {{no}}<ref name="replicant-virt"></ref>

Revision as of 13:45, 28 December 2022

Introduction

The Free System Distribution Guidelines (GNU FSDG) have the following:

Complete Distros

Our list of distributions is a guide for systems you can install in a computer. Therefore, it only includes distributions that are complete in themselves and ready to use. [...]

An exception to this requirement and to the self-hosting requirement above is for small system distributions, which are distros designed for devices with limited resources, like a wireless router for example. Free small system distributions do not need to be self-hosting or complete, because it is impractical to do development on such a system, but it must be developable and buildable on top of a free complete system distribution from our list of distributions, perhaps with the aid of free tools distributed alongside the small system distribution itself.

So sometimes (like with Replicant) building the small distribution rely on being able to install specific FSDG compliant distributions.

So for instance building Replicant has only been tested on specific distributions (typically Trisquel), so if you run another FSDG distribution (like Parabola for instance) you might want to run Trisquel under Parabola somehow.

Other uses cases could be to deploy services that is packaged in a distribution and not another.

For instance Freedombox is in PureOS and in Trisquel but not in Parabola or Guix.

Installing

There are often various possibilities for installing an FSDG distribution in a virtual environment. For instance

  • You can cross bootstrap it (see the CrossDistroBootstrap article for more details)
  • You can also install in a VM that emulates a complete computer like Qemu with KVM.

Running distributions in a virtual execution environments

Here some known working combinaison of distributions and virtual execution environments:

Distributions
Guix Hyperbola Parabola PureOS Replicant Trisquel 8.0 (Flidas) Trisquel 9.0 (etiona) Trisquel 10 (nabia)
Runtimes libvirt's LXC No[1][2] Yes Yes Yes No[3] No[4] Yes Yes
Qemu / Qemu KVM / Bare metal Yes Yes Yes Yes No[3] Yes Yes Yes
Docker Yes[5] No[6] yes, Not packaged, requires Parabola.[7] yes, with configuration[8] No[3] ? yes, with configuration[9] yes, with configuration[9]

Virtual execution environments availability in FSDG compliant distributions

Distribution Guix Parabola Trisquel 10 (nabia)
Docker Yes[10] Yes[11] Yes[12]
Libvirt LXC No[13] Yes[14] ?
Libvirt qemu-kvm Yes Yes Yes
Libvirt Xen No[15] No[16] ?

References

  1. guix system cannot produce a chroot in a directory if it's not backed by a block device.
  2. guix system init doesn't have an easy way for the host to know which init binary to run which which arguments.
  3. 3.03.13.2 Nobody tried to run Replicant in a vm or container.
  4. At the time of writing (May 2021) Trisquel 8 doesn't work anymore in LXC through libvirt in Parabola: Failed to create symlink /sys/fs/cgroup/net_cls: Operation not permitted Freezing execution. This is due to a cgroup API change. However Trisquel 9 works fine in this context and Trisquel 8 is not supported anymore by Trisquel since April 2021.
  5. An image can be produced with the 'guix system image -t docker system.scm' command. Guix can also be installed on top of most GNU/Linux and GNU/Hurd distributions.
  6. I found no hyperbola docker package, no docker related git repository in git.hyperbola.info, and while parabola-docker has very few parabola specific files, very few it has at least one, so hyperbola support probably need to be added in the parabla-docker program. Though Hyperbola is also switching to a BSD kernel, so docker might not work anymore there. So there might not be enough interest to do that.
  7. A project exist to build Parabola docker images but it's not packaged in Parabola
  8. PureOS has a package for debuerreotype, the software used to create the semi-official Debian images on docker.com. It uses debootstrap so it can create PureOS images. However the package documentation mention Ubuntu or Debian examples, so someone needs to bugreport and/or fix it. The debuerreotype-init --non-debian rootfs amber https://repo.pureos.net/pureos command can be used to create a PureOS rootfs on PureOS.
  9. 9.09.1 Trisquel 9 and Trisquel 10 have a package for debuerreotype, the software used to create the semi-official Debian images on docker.com. It uses debootstrap so it can create Trisquel images. However the package documentation mention Ubuntu or Debian examples, so someone needs to bugreport and/or fix it. The debuerreotype-init --non-debian rootfs nabia http://archive.trisquel.info/trisquel command can be used to create a Trisquel 10 rootfs on Trisquel 10.
  10. There is a docker package and service
  11. The Parabola docker package has a docker service that can be activated.
  12. The Trisquel docker.io package has a docker service that can be activated.
  13. Libvirt LXC is available in Guix, but trying to run Parabola in libvirt LXC results in this error: "Unable to complete install: 'internal error: guest failed to start: Failure in libvirt_lxc startup: Unable to create directory /sys/fs/cgroup/unified: No such file or directory'". And Parabola is known to work in libvirt LXC (at least in Parabola).
  14. Tested with Parabola, Trisquel 9, Trisquel 10 and other distributions.
  15. Guix's libvirt seems not to be built with Xen
  16. libvirt is not built with Xen support in the libvirt package (which comes from Arch Linux).