The basic place to get started is just lxc-create:
http://lxc.sourceforge.net/man/lxc-create.html
Try typing 'lxc-<tab,tab>' and check out all the lxc commands, the important
ones are:
. lxc-create -n your-container-name
. lxc-start -d -n your-container-name (-d = daemon, don't start the
console in your current terminal, it's better to start it in the background
and connect to the console because you can get out of the console then
without closing your terminal)
. lxc-console -n your-container-name (get connected to the console)
When you create your first container you'll just be creating the same build
of fedora that you're running in the host (that's usually what you want).
Note that it'll connect the networking of that container to the lxc-bridge
which acts as a NAT gateway (a router if you want to think of it in simple
terms). Meaning you'll have DHCP and an internal network IP assigned by
default. If you want to have an IP on your network assigned configure a
static IP and look up bridging for LXC.
Take heed of the config file (in the container-name's directory), this is
where your LXC configuration is, you can set the hostname and such there.
You also have an fstab file in that same directory which is for any mounts
you want done (by default mounts are disallowed in the container for
security reasons, that's a setting).
That's probably enough to make you dangerous and get your first container
running. Good luck.
David
From: Ajith Adapa [mailto:ajith.ad...@gmail.com]
Sent: Tuesday, May 14, 2013 1:29 PM
To: lxc-users@lists.sourceforge.net
Subject: [Lxc-users] Regarding creating a LXC container in fedora 17
Hi,
Sorry for my basic question as I am new to LXC.
I would like to know the steps to create a LXC container using lxc in fedora
17.
I have searched for the same in google but I am not able to find any useful
posts to do the same.
It would be more helpful if anyone can share the steps if they got any.
Regards,
Ajith
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users