Question about OS image

Hi

For lxc os image, it seems to provide only the latest version image.

For example, if i execute the lxc launch images:centos/7 command, the latest version of centos (7.8) is executed.

If I need an older version of the OS, how can I get the image?

Thank you.

You may be able to use https://github.com/lxc/distrobuilder with a variation of https://github.com/lxc/lxc-ci (images/centos.yaml) to build from a specific version, assuming that this is still offered on the mirrors and that distrobuilder lets you select it somehow.

Thank you @stgraber

distrobuilder was installed using snap.
And I received https://github.com/lxc/lxc-ci/tree/master/images/centos.yaml and executed the command to get the following message.

For example, if i want to create a container and vm lxd image for centos version 7.5, please provide the command syntax for each.

Hmm, looks like our edge builds for distrobuilder aren’t happening quite automatically…
I’ve kicked one by hand now, it should show up shortly.

You’ll need to make sure you’re using edge though snap refresh distrobuilder --edge

Thank you @stgraber

look at the below picture.

Please give me guidelines for solving this problem

Hmm, sounds like your YAML has been changed in some way, making one of the key blocks at the top mis-indented or otherwise corrupted.

Thank you @stgraber.

See the below picture
image

To install systemd-machine-id-setup,
I downloaded http://launchpadlibrarian.net/475689500/systemd_245.4-4ubuntu3_amd64.deb and tried to install it.

However, the following error occurred.

image

How can I solve it?

Those commands are run inside the image, not outside, so you need to ensure that you have the right package listed in the YAML.

Thank you @stgraber

I solved it by installing systemd from the centos.yaml file.