1.
root@slitaz:/home/tux# lxc-start -n slitaz-lxc
Please press Enter to activate this console.
2.
root@slitaz-lxc:/# echo 'nameserver 168.95.1.1' > /etc/resolv.conf
root@slitaz-lxc:/# ping -c4 www.yahoo.com
ping -c4 www.yahoo.com
PING www.yahoo.com (203.84.197.9): 56 data bytes
64 bytes from 203.84.197.9: seq=0 ttl=55 time=21.430 ms
64 bytes from 203.84.197.9: seq=1 ttl=55 time=24.953 ms
64 bytes from 203.84.197.9: seq=2 ttl=55 time=22.802 ms
64 bytes from 203.84.197.9: seq=3 ttl=55 time=21.091 ms
--- www.yahoo.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 21.091/22.569/24.953 ms
3.
root@slitaz-lxc:/# ls -R /etc
ls -R /etc
/etc:
fstab init.d passwd shadow
group inittab resolv.conf
/etc/init.d:
rcS
4.
root@slitaz-lxc:/# cat /etc/inittab
cat /etc/inittab
::sysinit:/etc/init.d/rcS
tty1::respawn:/bin/getty -L tty1 115200 vt100
console::askfirst:/bin/sh
5.
root@slitaz-lxc:/# cat /etc/init.d/rcS
cat /etc/init.d/rcS
#!/bin/sh
/bin/syslogd
/bin/mount -a
#/bin/udhcpc
6.
root@slitaz-lxc:/# mount
mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime,barrier=1,data=ordered)
/dev/root on /lib type ext2 (ro,relatime,barrier=1,data=ordered)
/dev/root on /usr/lib type ext2 (ro,relatime,barrier=1,data=ordered)
devpts on /dev/console type devpts (rw,relatime,mode=600,ptmxmode=000)
devpts on /dev/tty1 type devpts (rw,relatime,mode=600,ptmxmode=000)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=666)
devpts on /dev/pts/ptmx type devpts (rw,relatime,mode=600,ptmxmode=666)
proc on /proc type proc (rw,relatime)
shm on /dev/shm type tmpfs (rw,relatime)
7.
root@slitaz-lxc:/# ps
ps
PID USER TIME COMMAND
1 root 0:00 init
4 root 0:00 /bin/syslogd
6 root 0:00 /bin/getty -L tty1 115200 vt100
7 root 0:00 /bin/sh
13 root 0:00 ps
8.
root@slitaz-lxc:/# cat /var/log/messages
cat /var/log/messages
Nov 1 05:12:00 slitaz-lxc syslog.info syslogd started: BusyBox v1.18.4
Nov 1 05:12:00 slitaz-lxc daemon.info init: starting pid 7, tty '/dev/tty1': '/bin/getty -L tty1 115200 vt100'
Nov 1 05:12:23 slitaz-lxc daemon.info init: starting pid 8, tty '/dev/console': '/bin/sh'