Actually scratch that, I didn’t look properly
We do still build VM images for Gentoo and those are definitely visible on the image server.
What we had to do is stop building them on arm64 because there were issues there.
stgraber@dakara:~$ incus image list images: os=Gentoo arch=amd64 type=virtual-machine
+-------------------------+--------------+--------+---------------------------------------+--------------+-----------------+------------+------------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE |
+-------------------------+--------------+--------+---------------------------------------+--------------+-----------------+------------+------------------------------+
| gentoo/openrc (3 more) | b8a1a8954046 | yes | Gentoo current amd64 (20231204_16:07) | x86_64 | VIRTUAL-MACHINE | 1051.33MiB | Dec 4, 2023 at 12:00am (UTC) |
+-------------------------+--------------+--------+---------------------------------------+--------------+-----------------+------------+------------------------------+
| gentoo/systemd (3 more) | de892682bbad | yes | Gentoo current amd64 (20231204_16:07) | x86_64 | VIRTUAL-MACHINE | 1031.74MiB | Dec 4, 2023 at 12:00am (UTC) |
+-------------------------+--------------+--------+---------------------------------------+--------------+-----------------+------------+------------------------------+
| | 3ec3dcc9cc80 | yes | Gentoo current amd64 (20231202_16:07) | x86_64 | VIRTUAL-MACHINE | 1031.84MiB | Dec 2, 2023 at 12:00am (UTC) |
+-------------------------+--------------+--------+---------------------------------------+--------------+-----------------+------------+------------------------------+
| | 377d2ba3b8a8 | yes | Gentoo current amd64 (20231203_16:07) | x86_64 | VIRTUAL-MACHINE | 994.74MiB | Dec 3, 2023 at 12:00am (UTC) |
+-------------------------+--------------+--------+---------------------------------------+--------------+-----------------+------------+------------------------------+
| | 3149cb6ee217 | yes | Gentoo current amd64 (20231203_16:07) | x86_64 | VIRTUAL-MACHINE | 1031.84MiB | Dec 3, 2023 at 12:00am (UTC) |
+-------------------------+--------------+--------+---------------------------------------+--------------+-----------------+------------+------------------------------+
| | e7d327ff0c04 | yes | Gentoo current amd64 (20231202_16:07) | x86_64 | VIRTUAL-MACHINE | 994.07MiB | Dec 2, 2023 at 12:00am (UTC) |
+-------------------------+--------------+--------+---------------------------------------+--------------+-----------------+------------+------------------------------+
So incus launch images:gentoo/openrc --vm or incus launch images:gentoo/systemd --vm should work just fine (may need -c security.secureboot=false though, I don’t recall if Gentoo has a signed bootloader).
… does not have cloud in the variant column, does that mean it does not have cloud-init support? I can’t seem to execute cloud-init status within a VM instance.
My understanding is I should be able to create an instance using the image I want, start it, install cloud-init, stop it, publish it … and I should then be able to use the published image with cloud support for new instances that use would then consume my cloud-init sections.
Problem is, I keep running out of disk-space when compiling cloud-init and I think because this section in my profile is not working.
root:
path: /
pool: default
size: 30GB
type: disk
30GB really ought to be enough for a Gentoo image that just needs cloud support but I do see it’s needing rust which I know is big, but not sure how big, so I added 100GB.
tar: rust-1.71.1-x86_64-unknown-linux-gnu/rust-docs/share/doc/rust/html/core/arch/x86_64/fn._mm256_testn_epi16_mask.html: Cannot write: No space left on device
But again, I must be doing something wrong to allocate the required space. What am I missing?
With virtual machines, growing the root disk on the Incus side just grows the virtual disk, it doesn’t update the partition table or grow the individual partitions.
So you’re going to have to use growpart and resize2fs inside of the VM to actually grow the partition to match the larger disk (See df -h / for current sizing).