I'm using Ubuntu 14.10 and was trying to run a Fedora container. The container I created via given templates does not work properly. I guess the reason is that systemd
is not set up correctly.
First, I installed lxc
on the host. Then I create a Fedora container with
# lxc-create -t fedora -n fedora
Then start the container
# lxc-start -n fedora
Unlike other containers, the Fedora container did not automatically get an IP address
# lxc-ls -f
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
-----------------------------------------------------
centos RUNNING 10.0.3.213 - - NO
dropbox RUNNING 10.0.3.222 - - NO
fedora RUNNING - - - NO
I use lxc-attach
to enter the Fedora container and found the only running process is init
. It could get an IP if dhclient
is executed.
[root@fedora ~]# ps x
PID TTY STAT TIME COMMAND
1 ? Ss 0:00 /sbin/init
12 ? S 0:00 /bin/bash
90 ? R+ 0:00 ps x
Shouldn't dhclient
, openssh-server
and other necessary services start automatically by systemd
? Any advice/experience about a Fedora container on Ubuntu/Debian host is welcomed.