You are not logged in.

#1 2015-06-02 13:35:36

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 232

systemd-nspawn will not start container made with pacstrap

I am trying to create a systemd-nspawn container, following the wiki but it the container fails to start. Here is what I am doing:

# mkfs.ext4 /dev/sda1
# mount /dev/sda1 /mnt
# pacstrap /mnt base
# systemd-nspawn -bD /mnt
Spawning container mnt on /mnt.
Press ^] three times within 1s to kill container.
Container mnt failed with error code 1.
#

Both host and container have systemd 219.

As far as I can tell from reading various documentation, the above should work. Can anyone point out what's wrong with what I am doing?

Offline

#2 2015-06-02 14:30:15

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: systemd-nspawn will not start container made with pacstrap

The procedure described in the wiki works fine for me (I created the container in a directory and not on a mountpoint though). Is there something interesting in the journal?


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#3 2015-06-02 20:15:59

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,575
Website

Re: systemd-nspawn will not start container made with pacstrap

The wiki page advise using `pacstrap` with the "-d" flag -- have you tried that?
https://wiki.archlinux.org/index.php/Sy … _container

Is the system actually installed?

Can you view the filesystem in /mnt?

Try creating a specific directory just for the container rather than using /mnt


Jin, Jiyan, Azadî

Offline

Board footer

Powered by FluxBB