Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
848e8927
Commit
848e8927
authored
Oct 15, 2008
by
dlezcano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated with the cgroup section and fixed some typos
parent
e704563b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
README
README
+21
-13
No files found.
README
View file @
848e8927
...
@@ -4,11 +4,6 @@ Linux Container - LXC:
...
@@ -4,11 +4,6 @@ Linux Container - LXC:
This document provides a quick help to use the linux container.
This document provides a quick help to use the linux container.
Change log:
-----------
version 0.1.0 : initial document, Daniel Lezcano <dlezcano@fr.ibm.com>, Aug 01, 2008
Contents:
Contents:
---------
---------
0) Quick start
0) Quick start
...
@@ -164,6 +159,9 @@ lxc.rootfs = /mnt/root
...
@@ -164,6 +159,9 @@ lxc.rootfs = /mnt/root
# eth0
# eth0
# * phys : the network will use a physical network device, the
# * phys : the network will use a physical network device, the
# specified link should be an existing interface
# specified link should be an existing interface
# * empty : the network namespace will be empty, only the default network
# devices will be created (loopback, gre, ...)
lxc.network.type = macvlan
lxc.network.type = macvlan
# specify the flags to be used for the network, actually only <up> is
# specify the flags to be used for the network, actually only <up> is
...
@@ -186,13 +184,14 @@ lxc.network.ipv4 = 1.2.3.5/24
...
@@ -186,13 +184,14 @@ lxc.network.ipv4 = 1.2.3.5/24
# and will mean several addresses will be assigned to the interface
# and will mean several addresses will be assigned to the interface
lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596
lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596
# specify the a cgroup value
lxc.cgroup.cpu.shares = 512
lxc.cgroup.cpuset.cpu = 0,1
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
* lxc.mount is optional
All fields are optional.
* lxc.utsname is optional
* lxc.network.xxx are optional, if not specified, the network
namespace will not be created
* lxc.rootfs is optional
3.3 Container creation
3.3 Container creation
----------------------
----------------------
...
@@ -257,19 +256,28 @@ At any time, the following command will retrieve informations of the
...
@@ -257,19 +256,28 @@ At any time, the following command will retrieve informations of the
lxc-info -n foo
lxc-info -n foo
3.10 Showing processes list for a container
3.10 Showing processes list for a container
------------------------------------------
------------------------------------------
-
The following command will show all the processes for all the running
The following command will show all the processes for all the running
container.
container.
lxc-ps
lxc-ps
3.11 Using the control group for a container
--------------------------------------------
Each time a container is created, a cgroup is associated to it.
If the command is specified without value, the specified key is
retrieved otherwise it is set.
lxc-cgroup -n foo cpuset.cpu 1
lxc-cgroup -n foo cpu.shares
4) Future work
4) Future work
--------------
--------------
* change the lxc-start command to support system container
* change the lxc-execute to have the first process to exec
* change the lxc-execute to have the first process to exec
* take into account all the resource management
* man pages
* man pages
* improve monitoring support
* improve monitoring support
* and more :)
* and more :)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment