LoginSignup
3
3

More than 5 years have passed since last update.

Ubuntu 12.04.2 に最新のLXCをインストール

Last updated at Posted at 2013-08-12

Ubuntu 12.04.2 標準のLXCが 0.7.5 のため、最新の0.9を入れる。

インストール

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ubuntu-lxc/daily
$ sudo apt-get update
$ sudo apt-get install lxc

必要な設定追加

/etc/default/lxc に bridge設定が記載されていない場合、動作しないため追記する。

bridge設定

/etc/default/lxc
USE_LXC_BRIDGE="true"
LXC_BRIDGE="lxcbr0"
LXC_ADDR="10.0.3.1"
LXC_NETMASK="255.255.255.0"
LXC_NETWORK="10.0.3.0/24"
LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"
LXC_DHCP_MAX="253"

MIRROR設定

/etc/default/lxc
MIRROR="http://jp.archive.ubuntu.com/ubuntu/"

コンテナ作成の状況確認

$ watch "ps -ef | grep lx[c]"
  • コンテナは手動で作ったほうが状況がわかり良いかと思います。 $ sudo lxc-create -n ubuntu-test1 -t ubuntu
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3