1. 下載 CentOS Template
$ wget https://gist.github.com/tpokorra/8488836/raw/dbcd0920c1b9047da707c318190959cf64d72f7c/lxc-centos
$ mv lxc-centos /usr/lib/lxc/templates/lxc-centos
$ chmod a+x /usr/lib/lxc/templates/lxc-centos
2. 建置 CentOS 虛擬主機
$ apt-get install yum $ lxc-create -t centos -n myCentOS
3. 啟動 CentOS 虛擬主機
$ sudo lxc-start -n myCentOS CentOS release 6.5 (Final) Kernel 3.2.0-60-generic on an x86_64 myCentOS login: root Password:
[重點] 帳號 : root , 密碼 : password
沒有留言:
張貼留言