Void Linux LXC?

hi,

Could we please have the containers listed here, such as Void Linux, made available?
you can make a feature request [0]

Additionally, is there a way to add these manually?
yes, you can download the corresponding rootfs.tar.xz from the images directory.

for example void linux [1], if you click to one of the options you should see the rootfs.tar.xz

simply download this file and place it in your storage, rename it to something more descriptive if you wish, and you can use it as a container template when creating a new CT

[0]: https://bugzilla.proxmox.com
[1]: https://us.images.linuxcontainers.org/images/voidlinux/current/amd64/default/
 
For what it's worth, here is the request submission as you suggested: https://bugzilla.proxmox.com/show_bug.cgi?id=3579

Uploading the container templates is presently counterintuitive. I renamed the rootfs.tar.xz to something more descriptive, but still with the extensions present and the upload function will not accept the file.

I manually added the file to a USB drives template/cache folder and that seemed to be detected.

Unfortunately when I actually tried to create the container I got this:

Code:
extracting archive '/media/sdf2/template/cache/Void_Linux_x64_20210820.tar.xz'
Total bytes read: 276910080 (265MiB, 30MiB/s)
Detected container architecture: amd64
unknown ID 'void' in /etc/os-release file, trying fallback detection
TASK ERROR: unable to create CT 211 - unable to detect OS distribution

Unsure if useful, but /etc/os-release (from the suggested URL above and with the most recent path) contains:
Code:
NAME="void"
ID="void"
DISTRIB_ID="void"
PRETTY_NAME="void"

In comparison, Alpine (alpine-3.14-default_20210623_amd64.tar.xz) has /etc/os-release:
Code:
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.14.0
PRETTY_NAME="Alpine Linux v3.14"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
 
Last edited:
Unfortunately I had to move on for the moment - unhappy and using crappy Ubuntu - and will move to Void when we get some love.
 
Just thinking about this again. While not necessary, it sure would be nice to have more robust choices somehow such as Void et al.
 
For what it's worth, the instructions posted to this Reddit thread work: https://www.reddit.com/r/voidlinux/comments/10m528z/void_lxc_on_proxmox/

What I did was built a container, turned it into a template, and then clone the template to spin up additional Void containers. The only things I had to do were:
  1. Enable a TTY so the Proxmox console worked properly. A suggestion was to simply switch Console mode for the container to shell, which does work, but I don't like that it drops you immediately in as root. It's easy enough to enable a TTY anyway:

    rm /etc/sv/agetty-tty1/down
    sv restart agetty-tty1 (or just restart the container)

  2. Configure a static IP by hand (though if you're fine with DHCP you can stop here).

    Edit /etc/rc.local and add the following:

    ip link set dev eth0 up
    ip addr add X.X.X.X/Y brd + dev eth0 (replace X.X.X.X/Y with your desired IP and prefix)
    ip route add default via X.X.X.X (replace X.X.X.X with the default gateway/router for the network)

    Disable DHCP:
    touch /etc/sv/dhclient-eth0/down
    sv stop dhclient-eth0 (or just restart the container)
Looking at the plugins (https://git.proxmox.com/?p=pve-container.git;a=tree;f=src/PVE/LXC/Setup;hb=refs/heads/master), I don't think it'll be too hard to modify one for Void. I may give it a stab...but we'll see...
 
  • Like
Reactions: verulian

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!