News:

SMF - Just Installed!

Main Menu

ubuntu-doesnt-install-lxc-centos-template

Started by mahesh, Oct 06, 2023, 07:44 AM

Previous topic - Next topic

mahesh

    Code:
sudo lxc-create -n centos_lxc -t centos
[sudo] password for ubuntu:
Host CPE ID from /etc/os-release:
'yum' command is missing
lxc-create: centos_lxc: lxccontainer.c: create_run_template: 1616 Failed to create container from template
lxc-create: centos_lxc: tools/lxc_create.c: main: 319 Failed to create container centos_lxc
 sudo lxc-create -n centos_lxc -t centos
[sudo] password for ubuntu:
Host CPE ID from /etc/os-release:
'yum' command is missing
lxc-create: centos_lxc: lxccontainer.c: create_run_template: 1616 Failed to create container from template
lxc-create: centos_lxc: tools/lxc_create.c: main: 319 Failed to create container centos_lxc



ubuntu@primary:~$ ls /usr/share/lxc/templates/
lxc-alpine     lxc-cirros         lxc-gentoo        lxc-oracle     lxc-sparclinux
lxc-altlinux   lxc-debian         lxc-local         lxc-plamo      lxc-sshd
lxc-archlinux  lxc-download       lxc-oci           lxc-pld        lxc-ubuntu
lxc-busybox    lxc-fedora         lxc-openmandriva  lxc-sabayon    lxc-ubuntu-cloud
lxc-centos     lxc-fedora-legacy  lxc-opensuse      lxc-slackware  lxc-voidlinux
 ubuntu@primary:~$ apt list | grep lxc
 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
 golang-gopkg-lxc-go-lxc.v2-dev/focal,focal 0.0+git20190625.f4822c6-1ubuntu1 all
libclxclient-dev/focal 3.9.2-1 amd64
libclxclient3/focal 3.9.2-1 amd64
liblxc-common/focal-updates,now 1:4.0.6-0ubuntu1~20.04.1 amd64 [installed,automatic]
liblxc-dev/focal-updates 1:4.0.6-0ubuntu1~20.04.1 amd64
liblxc1/focal-updates,now 1:4.0.6-0ubuntu1~20.04.1 amd64 [installed,automatic]