lxc
Linux Containers
https://linuxcontainers.org/lxc/introduction/
Ubuntu precise i386 container on Slackware 14.2
1 2016-11-08T23:39 root@nb200:/tmp
2 $ lxc-create -t download -n containerx -- -d ubuntu -r precise -a i386
3 Setting up the GPG keyring
4 Downloading the image index
5 Downloading the rootfs
6 Downloading the metadata
7 The image cache is now ready
8 Unpacking the rootfs
9
10 ---
11 You just created an Ubuntu container (release=precise, arch=i386, variant=default)
12
13 To enable sshd, run: apt-get install openssh-server
14
15 For security reason, container images ship without user accounts
16 and without a root password.
17
18 Use lxc-attach or chroot directly into the rootfs to set a root password
19 or create user accounts.
20 # start a container
21 lxc-start -n containerx -d
22 # list containers
23 lxc-ls --fancy
24 # session inside the container
25 lxc-attach -n httpd
26
27 # session in containerx
28 root@containerx:/etc# cat /etc/os-release
29 NAME="Ubuntu"
30 VERSION="12.04.5 LTS, Precise Pangolin"
31 ID=ubuntu
32 ID_LIKE=debian
33 PRETTY_NAME="Ubuntu precise (12.04.5 LTS)"
34 VERSION_ID="12.04"