linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* install Fedora systemd-nspawn container on btrfs
@ 2015-04-23 11:45 arnaud gaboury
  2015-04-23 11:50 ` [systemd-devel] " Lennart Poettering
  0 siblings, 1 reply; 16+ messages in thread
From: arnaud gaboury @ 2015-04-23 11:45 UTC (permalink / raw)
  To: systemd, Btrfs BTRFS

Not sure what I did wrong, but I can't install/boot my nspawn container.
Here is my setup:

Archlinux box- updated

1- created 3 btrfs subvol on /dev/sdb1 (SSD). The goal is to manage
snapshots easily.
no nested subvol.
------------------------------------------
# btrfs subvolume list .
ID 266 gen 39 top level 5 path rootvol
ID 268 gen 41 top level 5 path var
ID 269 gen 42 top level 5 path etc
# btrfs filesystem show
Label: 'poppy-root'  uuid: ef1b44cd-e7b0-4166-b933-e7d4d20a1171
    Total devices 1 FS bytes used 64.00KiB
    devid    1 size 80.00GiB used 12.00MiB path /dev/sdb1
--------------------------------------------------

2 - mount btrfs subvol
-------------------------------------------------------------------
# mount -t btrfs -o subvol=rootvol /dev/sdb1 /var/lib/machines/enl
# mkdir /var/lib/machines/enl/var
# mkdir /var/lib/machines/enl/etc
# mount -t btrfs -o subvol=etc /dev/sdb1 /var/lib/machines/enl/etc
# mount -t btrfs -o subvol=var /dev/sdb1 /var/lib/machines/enl/var
--------------------------------------------------------------------

3- install fedora minimal and boot it
-------------------------------------------------
#  machinectl pull-raw --verify=no
http://ftp.halifax.rwth-aachen.de/fedora/linux/releases/22/Cloud/Images/x86_64/Fedora-Cloud-Base-22_Beta-20150415-x86_64.raw.xz
$ tar ....
# systemd-nspawn -M Fedora-Cloud-Base-22_Beta-20150415.x86_64.raw
Spawning container Fedora-Cloud-Base-22_Beta-20150415.x86_64.raw on
/var/lib/machines/Fedora-Cloud-Base-22_Beta-20150415.x86_64.raw.
Press ^] three times within 1s to kill container.
[root@Fedora-Cloud-Base-22_Beta-20150415 ~]#
------------------------------------------------------------

4- install Fedora on /var/lib/machines/enl
--------------------------------------------------------------
[root@Fedora-Cloud-Base-22_Beta-20150415 ~]# dnf -y --releasever=22
--nogpg --installroot=/var/lib/machines/MyContainer --disablerepo='*'
--enablerepo=fedora install systemd passwd dnf fedora-release-server
vim-minimal
..........................
INSTALL
...........................
Complete!
----------------------------------------------------------

5- Now, nothing !!
----------------------------------------------------
% ls -a /var/lib/machines/enl
./  ../  etc/  var/

# systemd-nspawn -bD /var/lib/machines/enl
[sudo] password for root:
Directory /var/lib/machines/enl doesn't look like an OS root directory
(os-release file is missing). Refusing.
-------------------------------------------------------

Not sure if my issue comes from a wrong Btrfs setup, or if I missed
something when installing from the cloud minimal Fedora.

Thank you for hints







-- 

google.com/+arnaudgabourygabx

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-04-24  6:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-23 11:45 install Fedora systemd-nspawn container on btrfs arnaud gaboury
2015-04-23 11:50 ` [systemd-devel] " Lennart Poettering
2015-04-23 11:57   ` Andrei Borzenkov
2015-04-23 12:00     ` Lennart Poettering
2015-04-23 12:20       ` arnaud gaboury
2015-04-23 12:18   ` arnaud gaboury
2015-04-23 14:47     ` Lennart Poettering
2015-04-23 17:00       ` arnaud gaboury
2015-04-23 17:12         ` Lennart Poettering
2015-04-23 17:21           ` arnaud gaboury
2015-04-23 17:29             ` arnaud gaboury
2015-04-23 17:36               ` Lennart Poettering
2015-04-23 17:37                 ` arnaud gaboury
2015-04-24  6:14                   ` arnaud gaboury
2015-04-24  6:16                     ` arnaud gaboury
2015-04-24  6:30                       ` arnaud gaboury

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).