[Lxc-users] Regarding creating a LXC container in fedora 17
David Parks
davidparks21 at yahoo.com
Tue May 14 06:45:20 UTC 2013
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.adapa at gmail.com]
Sent: Tuesday, May 14, 2013 1:29 PM
To: lxc-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130514/d591f206/attachment.html>
More information about the lxc-users
mailing list