[root@fd /]# apt-get update [root@fd /]# apt-get upgrade [root@fd /]# apt-get install lxc [root@fd /]# apt-get install lxc-templates [root@fd /]# cd /usr/share/lxc/templates [root@fd templates]# ls lxc-altlinux* lxc-archlinux* lxc-busybox* lxc-debian* lxc-fedora* lxc-lenny* lxc-opensuse* lxc-sshd* lxc-ubuntu* lxc-ubuntu-cloud* [root@fd templates]# lxc-create -t ubuntu -n precise lxc-create: 'precise' already exists [root@fd templates]# lxc-create -t ubuntu -n ubuntu /usr/share/lxc/templates/lxc-ubuntu is /usr/share/lxc/templates/lxc-ubuntu Note: Usually the template option is called with a configuration file option too, mostly to configure the network. For more information look at lxc.conf (5) debootstrap is /usr/sbin/debootstrap Checking cache download in /var/cache/lxc/precise/rootfs-i386 ... installing packages: vim,ssh Downloading ubuntu precise minimal ... which: no qemu-debootstrap in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) I: Retrieving InRelease I: Failed to retrieve InRelease I: Retrieving Release W: Cannot check Release signature; keyring file not available /usr/share/keyrings/ubuntu-archive-keyring.gpg I: Retrieving Packages I: Validating Packages I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Found additional base dependencies: libbsd0 libedit2 libgpm2 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libpython2.7 libwrap0 openssh-client openssh-server vim-runtime I: Checking component main on http://archive.ubuntu.com/ubuntu... I: Retrieving adduser I: Validating adduser I: Retrieving apt I: Validating apt I: Retrieving apt-utils I: Validating apt-utils I: Retrieving base-files ↓   ぇらく時間掛かるの~ ↓ ## # The default user is 'ubuntu' with password 'ubuntu'! # Use the 'sudo' command to run tasks as root in the container. ## 'ubuntu' template installed 'ubuntu' created [root@fd templates]# cd /var/lib/lxc [root@fd lxc]# ls ubuntu/ [root@fd lxc]# cd ubuntu [root@fd ubuntu]# ls config fstab rootfs/ [root@fd ubuntu]# cd rootfs [root@fd rootfs]# ls bin/ boot/ dev/ etc/ home/ lib/ mnt/ proc/ root/ run/ sbin/ sys/ tmp/ usr/ var/ [root@fd rootfs]# cd etc [root@fd etc]# nano hosts 127.0.0.1 localhost 127.0.1.1 ubuntu # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters Ctrl x [root@fd etc]# 此処からゃな、デスクトップの NeXT OS 有らへんかの。 いっけね、root権限じゃubuntu立ち上らん、だからイチ々sudo入ってるんか、[camel@fd templates]$ sudo lxc-start -n ubuntu -d パスワードちゃぅから入れません、root権限じゃないので /etc/sudoers の中身真っ更で見えまへん。 こりゃ木箱メンテょか大変ゃ。 [root@fd html]# ls cgi-bin xmail-1.11.tar.gz [root@fd html]# tar xvfz xmail-1.11.tar.gz [root@fd html]# cd xmail-1.11 [root@fd xmail-1.11]# make -f Makefile.lnx [root@fd xmail-1.11]# cp -a MailRoot /var [root@fd xmail-1.11]# chown root /var/MailRoot [root@fd xmail-1.11]# chgrp root /var/MailRoot [root@fd xmail-1.11]# chmod 700 /var/MailRoot [root@fd xmail-1.11]# cp CtrlClnt MkUsers sendmail XMail XMCrypt /var/MailRoot/bin [root@fd xmail-1.11]# cp CtrlClnt /usr/sbin [root@fd xmail-1.11]# cp xmail /etc/init.d [root@fd xmail-1.11]# cd /etc [root@fd etc]# ln -s ../init.d/xmail rc0.d/K27xmail [root@fd etc]# ln -s ../init.d/xmail rc1.d/K27xmail [root@fd etc]# ln -s ../init.d/xmail rc2.d/K27xmail [root@fd etc]# ln -s ../init.d/xmail rc6.d/K27xmail [root@fd etc]# ln -s ../init.d/xmail rc3.d/S43xmail [root@fd etc]# ln -s ../init.d/xmail rc4.d/S43xmail [root@fd etc]# ln -s ../init.d/xmail rc5.d/S43xmail [root@fd etc]# cd /var/MailRoot [root@fd MailRoot]# bin/XMCrypt XMAILPASS 1234567890 [root@fd MailRoot]# openssl genrsa -des3 > ssl.key Generating RSA private key, 1024 bit long modulus ........................................++++++ ....................................................++++++ e is 65537 (0x10001) Enter pass phrase:1234567890 Verifying - Enter pass phrase:1234567890 [root@fd MailRoot]# openssl rsa -in ssl.key -out server.key Enter pass phrase for ssl.key:1234567890 writing RSA key [root@fd MailRoot]# openssl req -new -key server.key -out ssl.csr You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:jp State or Province Name (full name) [Some-State]:kanagawa Locality Name (eg, city) [ ]:yokohama Organization Name (eg, company) [Internet Widgits Pty Ltd]:ammonite Organizational Unit Name (eg, section) [ ]:crash Common Name (e.g. server FQDN or YOUR name) [ ]:camel Email Address [ ]:camel@fd.errorz.net Please enter the following 'extra' attributes to be sent with your certificate request A challenge password [ ]:******** An optional company name [ ]:ammonite [root@fd MailRoot]# service xmail start Starting XMail server: XMail.[ 2566 ] [root@fd MailRoot]# もぅぇえわ、Linux Containers passwd通りゃしなぃ、Xmail 動いたから終了ゃな、やねぇゎ、 所々エラーぁんし、UNIX系手打ち絶対間違ぇそう呪文コマンド も嫌ゃし postfix のほうがよっぽど安楽だゎさ。 [root@fd /]# free total used free shared buffers cached Mem: 503860 474824 29036 0 136052 267512 -/+ buffers/cache: 71260 432600 Swap: 1349456 0 1349456 [root@fd /]# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 75593572 2233892 69519748 4% / /dev/root 75593572 2233892 69519748 4% / /dev 251928 520 251408 1% /dev none 251928 0 251928 0% /dev/shm /dev/root 75593572 2233892 69519748 4% /srv/lxclib /dev/root 75593572 2233892 69519748 4% /srv/lxccache [root@fd /]# ls bin/ boot/ dev/ etc/ home/ lib/ lib64/ mnt/ proc/ root/ sbin/ srv/ sys/ tmp/ usr/ var/ [root@fd /]# 必要無いだろ mkdir srv から コマンド打ったら領域作ってもうて、ubuntu しか動かなぃlxc組めってか?。 [root@fd templates]# nano lxc-debian の MIRROR = Not Found か、そんでもって仮想領域入れないのはどぅすんか。 CDN ミラーは APT リポジトリでアクセスできます。 リポジトリってなんだょ、判ってるのでしょう?、知らへん 一般常識用語は 専門用語 だよ、貯蔵庫か、なんて思っても仕方なし、動きそうやな。