3
5

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-nspawnAdvent Calendar 2017

Day 14

とりあえずsystemd-nspawnを始めるには

Last updated at Posted at 2017-12-17

systemd-nspawn Advent Calendar 2017 14日目の記事です。

とりあえずsystemd-nspawnを始めたいという方が居たら以下のコマンドを打つだけでOKです

# インストール
apt install debootstrap systemd-container
# ファイル用意
debootstrap --arch amd64 xenial /var/lib/machines/ubuntu http://archive.ubuntu.com/ubuntu
# 中に入る(パスワードを設定する場合はここで)
systemd-nspawn -D /var/lib/machines/ubuntu
# 通常起動してみる(-bオプションを足すだけ) 終わらせるときはCtrl+] を3回連打
systemd-nspawn -b -D /var/lib/machines/ubuntu

とりあえずこれだけやって感触を確かめてみるのが良いと思います。
たった4コマンドです。

その他systemd-nspawnで役立ちそうなリンクまとめです

3
5
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
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?