[lxc-users] No Redhat template

Jon Brinkmann brinkmann at nmsu.edu
Tue Feb 18 07:34:39 UTC 2014


I'm trying to build containers in Scientific Linux, a clone of RHEL.
When building from the git source for v1.0.0_rc3, configure has no
problems identifying the distribution:

	Environment:
	 - compiler: gcc
	 - distribution: redhat
	 - init script type(s): sysvinit
	 - rpath: no
	 - GnuTLS: no
	 - Bash integration: yes

However, when I attempt to create a container, I get:

	# lxc-create -t redhat -n system1 -P /systems/
	lxc_container: No such file or directory - bad template: redhat

	lxc_container: bad template: redhat

	lxc_container: Error creating container system1

and looking in /usr/local/share/lxc/templates:

	# ls /usr/local/share/lxc/templates/
	lxc-alpine     lxc-centos    lxc-fedora        lxc-oracle  lxc-ubuntu-cloud
	lxc-altlinux   lxc-cirros    lxc-gentoo        lxc-plamo
	lxc-archlinux  lxc-debian    lxc-openmandriva  lxc-sshd
	lxc-busybox    lxc-download  lxc-opensuse      lxc-ubuntu

There's no sign of a redhat template.  How do I proceed?  Should I create
a template for it from lxc-centos and submit it to lxc-devel?

Jon


More information about the lxc-users mailing list