“Running with unpopulated /etc” – Failing to run systemd based container ?

Recently I experienced, systemd based container fails to run in certain version of distros.

For ex: If I run my container with systemd I get below messages.

[terminal]
#docker run –rm -t -i –privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro
[/terminal]

[terminal]
systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Detected virtualization docker.
Detected architecture x86-64.
Running with unpopulated /etc.
….
Set hostname to .
Initializing machine ID from random generator.
Populated /etc with preset unit settings.
Unit etc-hosts.mount is bound to inactive unit dev-mapper-X.X.root.device. Stopping, too.
Unit etc-hostname.mount is bound to inactive unit dev-mapper-X.X.root.device. Stopping, too….
Unit etc-resolv.conf.mount is bound to inactive unit dev-mapper-X.X.root.device. Stopping, too.
Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
Startup finished in 106ms.
Failed to create unit file /run/systemd/generator.late/network.service: File exists
Failed to create unit file /run/systemd/generator.late/netconsole.service: File exists

[/terminal]

The line ‘Running with unpopulated /etc’ looked suspicious to me, after some attempts we were able to conclude that, the things were going wrong in absense of ‘/etc/machine-id’ file which used to be there. If you came across similar to this situation, make an entry in your docker file to create /etc/machine-id as shown below and give a try!

[terminal]
#RUN touch /etc/machine-id
[/terminal]

now, build your image and start the container from a new image. Let me know how it goes.

Install bit torrent client ( transmission) for fedora ..

Friday or drive by post here 🙂 How to install and use bit torrent clients in fedora? its as simple as that: You need to install ‘transmission’ package to get bit torrent client for fedora. Once you installed it, bit torrent client is ready to use for torrent action. You can either use ‘transmission” cli …

Read more

Smooth upgrade from fedora 18 to fedora 19 !

I always failed to do a streaming update from earlier versions of fedora, but not this time. That said, I had fedora 18 version installed in my system and planned to upgrade to latest verison of fedora 19 named “Fedora release 19 (Schrödinger’s Cat) ” 🙂 Without much intro, let me share the steps I …

Read more

What is “BIOS BOOT” filesystem type in fedora and why it is required ?

Today while installing Fedora-18 , I noticed an error at installation window ( the place where you define storage partitions). The installer option “begin installation” at bottom of the window was greyed out. By Clicking the error message details from the anaconda screen, I was told that, it is missing “BIOS BOOT” filesystem type. So, …

Read more

Install 64 bit skype in fedora16

I will conclude the steps here: 1) Download 64 bit version of skype by below command #wget http://commondatastorage.googleapis.com/xenodecdn/skype-2.2.0.35-2.x86_64.rpm 2) From the downloaded directory, do #yum localinstall skype-2.2.0.35-2.x86_64.rpm Now, skype should be installed in your system, once it is installed , run #skype Stage is yours!!! Njoy…

Firefox not starting with error ” symbol lookup error: /usr/lib64/xulrunner/libxul.so: undefined symbol: PR_SetCurrentThreadName” in Fedora-16

Ah.. I did update my firefox last friday, but didnt reboot the system after that.  In my next reboot firefox failed to start and obviously I was angry 🙁 . It spins and die. As part of troubleshooting, tried to start “firefox” in safe mode: [hchiramm@unused firefox]$ firefox –safe-mode /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/xulrunner/libxul.so: undefined …

Read more