I am trying to create an LXC container by following the below containers.
I am able to create the container and start it. But when I execute the
df-h command from lxc container I can see that it has the same file system name as of the host machine (how to change that? ).
My query is simple, how to specify a disk space for the container created, so that the disk has a limit, like in openvz when we create a container we can specify the diskspace along with it.
I have tried to add
lxc-create -n test01 -t /usr/local/share/templates/lxc-centos --dir=/home/images/lxc/test01 -B lvm --fssize=2G
, but it is not allowing me to create it..
It is allowing me to create the isolated container by using the following command
lxc-create -n test01 -t /usr/local/share/templates/lxc-centos -dir=/home/images/lxc/test01
, but unable to know the actual allotted space for the container.
I am stuck with this step.
Any help is much appreciated.