I have two servers running lxc/lxd. One was properly setup by a colleague leaving no docs behind, and the other configured halfway, for some value of halfway.
I managed to guess many of the things he did, but the last step is managing images. We’ve been using hv1 for launching containers using the centos 7 amd64 cloud image that I can see listed in https://uk.images.linuxcontainers.org/, but hv2 fails citing 404. At least that matche what I can see in this output:
mdione@demo-hv1:~/src/works/cloudian$ sudo lxc image list images: | grep centos
| centos/6 (3 more) | ffc3f62f6769 | yes | Centos 6 amd64 (20191126_07:08) | x86_64 | 75.84MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/6/cloud (1 more) | 3b8c53c4ec50 | yes | Centos 6 amd64 (20191126_07:08) | x86_64 | 84.25MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/6/cloud/i386 | 19984690de1a | yes | Centos 6 i386 (20191125_16:19) | i686 | 84.29MB | Nov 25, 2019 at 12:00am (UTC) |
| centos/6/i386 (1 more) | 069cb19f05a3 | yes | Centos 6 i386 (20191126_07:08) | i686 | 75.98MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7 (3 more) | 407f445301b7 | yes | Centos 7 amd64 (20191126_07:08) | x86_64 | 83.20MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/arm64 (1 more) | fe019d9be023 | yes | Centos 7 arm64 (20191126_07:08) | aarch64 | 80.79MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/armhf (1 more) | 1b8908d98a70 | yes | Centos 7 armhf (20191126_07:08) | armv7l | 78.78MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/cloud (1 more) | 3342288ec8e6 | yes | Centos 7 amd64 (20191126_07:08) | x86_64 | 89.72MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/cloud/arm64 | 86f7272cfad9 | yes | Centos 7 arm64 (20191126_07:08) | aarch64 | 87.23MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/cloud/armhf | 424c3834f9de | yes | Centos 7 armhf (20191126_09:39) | armv7l | 85.15MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/cloud/i386 | 0347c9b271fd | yes | Centos 7 i386 (20191126_07:08) | i686 | 90.32MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/cloud/ppc64el | 2bef6153b95e | yes | Centos 7 ppc64el (20191126_07:08) | ppc64le | 90.36MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/i386 (1 more) | b1e5634d8bf5 | yes | Centos 7 i386 (20191126_07:08) | i686 | 83.61MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/7/ppc64el (1 more) | 527672a93133 | yes | Centos 7 ppc64el (20191126_07:08) | ppc64le | 83.73MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/8 (3 more) | 8c1397d759c8 | yes | Centos 8 amd64 (20191126_07:08) | x86_64 | 120.94MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/8/arm64 (1 more) | d53dbe284818 | yes | Centos 8 arm64 (20191126_07:08) | aarch64 | 116.79MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/8/cloud (1 more) | f6a14fd8168a | yes | Centos 8 amd64 (20191126_07:08) | x86_64 | 135.38MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/8/cloud/arm64 | df49c146797e | yes | Centos 8 arm64 (20191126_07:08) | aarch64 | 131.08MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/8/cloud/ppc64el | d1bc21c9d021 | yes | Centos 8 ppc64el (20191126_07:08) | ppc64le | 138.42MB | Nov 26, 2019 at 12:00am (UTC) |
| centos/8/ppc64el (1 more) | cc9e611f5d33 | yes | Centos 8 ppc64el (20191126_07:08) | ppc64le | 123.52MB | Nov 26, 2019 at 12:00am (UTC) |
Notice the *64 image I’m using is not listed there.
To make things worse, lxc mentions Intel based 64bits architectures in many ways:
- amd64 (expected on any Debian based distro, but I’m trying to use CentOS, so I would expect x86_64)
- x86_64 (usual in RedHat et al based distros)
- i686 (I guess this is really a 32bits one)
- i386 (This definitely is 32bits)
I have several questions:
- Which is the 64bits architecture that I want?
- Why lxc does not find the *64 architecture I need?
- Why the different labels for architectures?