Ask Your Question
0

How can I get centOS image for lxc ?

asked 2015-07-03 03:25:35 -0600

rkdxogh90 gravatar image

updated 2015-07-03 05:06:39 -0600

I want to centos 6.6 image for lxc

But,In openstack, I did not find centos 6.6 for lxc

Coud you help me?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-03 07:07:51 -0600

dbaxps gravatar image

View https://www.stgraber.org/2013/12/20/l...

Bernd Bausch says::-
I use Centos 6.6. To install containers:
# enable the EPEL repository
# yum install -y lxc lxc-templates lxc-doc

I believe templates would contain same version of CentOS
Regarding Ubuntu 15.04 as LXC host :
http://www.unixmen.com/setup-linux-co...

 Sample output:
sudo ls /usr/share/lxc/templates/
lxc-alpine    lxc-archlinux  lxc-centos  lxc-debian    lxc-fedora  lxc-openmandriva  lxc-oracle  lxc-sshd    lxc-ubuntu-cloud  lxc-altlinux  lxc-busybox    lxc-cirros  lxc-download  lxc-gentoo  lxc-opensuse      lxc-plamo     lxc-ubuntu
    To create a new Container, the command should be as below.
    Syntax:
    sudo lxc-create -n <container-name> -t <template>

Next, see http://en.community.dell.com/techcent...
Here template for CentOS 6.5 is available ( section "Alternate operating systems").

edit flag offensive delete link more

Comments

Thanks! your advice I create image for lxc But I need centos image for libvirt_type=lxc in openstack
( For example: cloud images centos.img ) follow this link -> https://ask.openstack.org/en/question/14401/ubuntu-image-for-libvirt_typelxc/ (https://ask.openstack.org/en/question...) I got ubuntu cloud image for lxc but centos is not

rkdxogh90 gravatar imagerkdxogh90 ( 2015-07-03 08:26:19 -0600 )edit

Could you switch to Nova-Docker Containers ? Then CentOS image won't be a problem.

dbaxps gravatar imagedbaxps ( 2015-07-03 09:04:35 -0600 )edit

I change hypervisor -> nova-compute-lxc .
Creating centos image is impossible ?

rkdxogh90 gravatar imagerkdxogh90 ( 2015-07-03 22:58:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2015-07-03 03:25:35 -0600

Seen: 2,669 times

Last updated: Jul 03 '15