I was taken by surprise lately by the “phase out access to our image server for LXD users” subject.
Had the intention to migrate from LXD to Incus, but was waiting for Incus releases to stable out a bit.
An other hurdle to take while migrating, is that we use LXD on AmazonLinux2023 using snapd.
I see Incus has chosen not to release snaps, so that option is not there.
Any chance there will be packages for AmazonLinux2023?
@Conan_Kudo has some in progress work to get Incus natively into Fedora, which should then make it easy to trickle into CentOS Stream and EPEL. But that’s work in progress and there hasn’t been any new builds in the past 3 weeks. Bugzilla for this is https://bugzilla.redhat.com/show_bug.cgi?id=2260492
@ganto has been maintaining a great LXC, LXD and now Incus COPR repository for Fedora users for a number of years now, I don’t know how modern the current Amazon Linux is and whether any of those builds may work on it, but it may be a start too: ganto/lxc4 Copr
And lastly, I just discovered another COPR repository, this one directly targeting EPEL9 and with recent builds: zarhi/incus_R9 Copr
That last one is probably the most likely to work today on any RHEL9 derivative, but I’ve only discovered it a few minutes ago and haven’t had any interaction with its maintainer, so someone would need to test it and see if it actually works properly
Well, we’re using a privileged container, so I think anything you pass through to the container /dev wise, be it hard disk or whatever else, it can be accessed freely by the container, I would think.
Did you try LVM and it didn’t work? I haven’t tried with LVM, only with btrfs and zfs.
Limitation-wise, there were some issues with btrfs if using an alpine-based build. But with the debian-based build, and everything necessary passed through as a volume to the container, everything I have tried has worked.
Did you try LVM and it didn’t work? I haven’t tried with LVM, only with btrfs and zfs.
docker exec incus apt-get install -y lvm2
I did now, but I get an error. Both running the incus command from the instance of within docker.
incus storage create test lvm source=/dev/nvme2n1
Error: Custom loop file locations are not supported
This seems because the disk was attached after the Incus docker container was started.
So I need a way to have updated /dev content in the docker container.
After restarting the container I get
incus storage create test lvm source=/dev/nvme2n1
Error: Error creating LVM thin pool named "IncusThinPool": Failed to run: lvcreate --yes --wipesignatures y --thinpool test/IncusThinPool --extents 100%FREE: exit status 5 (/dev/test2/lvol0: not found: device not cleared
Aborting. Failed to wipe start of new LV.)
Probably something similar about not having an up to date /dev in the container.
An update, I’ve added lvm, udev, and so on to the Dockerfile, so you should be able to use cmspam/incus-docker:latest now without modification. Just pass through what needed to be passed through. Please try if you can.
Just for others trying to get a rpm based Incus install running on AmazonLinux2023.
Here how I got it installed. It’s far from ideal as it depends on FC38 packages.
Tried to build native AmazonLinux2023 packages from COPR srpms, but I have had not luck till now.
Make sure the Amazonlinux repo has no priority against the fedora repo
sed -i s#"^priority=10"#'\#priority=10'#g /etc/yum.repos.d/amazonlinux.repo
/etc/yum.repos.d/incus.repo
[copr:copr.fedorainfracloud.org:ganto:lxc4]
name=Copr repo for lxc4 owned by ganto
baseurl=https://download.copr.fedorainfracloud.org/results/ganto/lxc4/fedora-38-x86_64/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/ganto/lxc4/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1