lbg74
(Lee Byung Gon)
June 22, 2020, 5:15pm
1
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.
stgraber
(Stéphane Graber)
June 22, 2020, 11:40pm
2
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.
lbg74
(Lee Byung Gon)
June 24, 2020, 11:26am
3
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.
stgraber
(Stéphane Graber)
June 24, 2020, 5:08pm
4
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
lbg74
(Lee Byung Gon)
June 25, 2020, 12:39am
5
Thank you @stgraber
look at the below picture.
Please give me guidelines for solving this problem
stgraber
(Stéphane Graber)
June 25, 2020, 2:20am
6
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.
lbg74
(Lee Byung Gon)
June 25, 2020, 3:31am
7
Thank you @stgraber .
See the below picture
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.
How can I solve it?
stgraber
(Stéphane Graber)
June 25, 2020, 1:23pm
8
Those commands are run inside the image, not outside, so you need to ensure that you have the right package listed in the YAML.
lbg74
(Lee Byung Gon)
June 25, 2020, 1:42pm
9
Thank you @stgraber
I solved it by installing systemd from the centos.yaml file.