5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

systemd-nspawn使ってみた

Last updated at Posted at 2015-03-22

OpenVzに似ていたので使いやすく感じた。docker使いづらい

参考

ホスト:Fedora22にて作業

コンテナ作成
yum -y --releasever=22 --nogpg --installroot=/srv/fc22 \
  --disablerepo='*' --enablerepo=fedora install systemd passwd yum \
  fedora-release-server vim-minimal
初期パスワードを設定
sudo chroot /srv/fc22
passwd
exit
ブート
sudo systemd-nspawn -D /srv/fc22 --boot
  • 抜けるには Ctrl-] を3回
  • --bootをつけないとsystemdが使えない

ログイン

machinectl login fc22
5
6
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
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?