Description of problem: create a sandbox without -l and -d, then start the container will fail start httpd.service within # virt-sandbox-service create -u httpd.service apache11 Created sandbox container dir /var/lib/libvirt/filesystems/apache11 Created sandbox config /etc/libvirt-sandbox/services/apache11.sandbox Created unit file /etc/systemd/system/httpd # virt-sandbox-service start apache11 systemd 197 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ) Detected virtualization 'lxc-libvirt'. Welcome to Fedora 18 (Spherical Cow)! Set hostname to <ibm-x3850x5-08.qe.lab.eng.nay.redhat.com>. Initializing machine ID from container UUID. [ OK ] Listening on Delayed Shutdown Socket. [ OK ] Reached target Swap. [ OK ] Reached target Local File Systems. [ OK ] Listening on Journal Socket. Starting Recreate Volatile Files and Directories... Starting Journal Service... [ OK ] Started Journal Service. [ OK ] Started Recreate Volatile Files and Directories. [ OK ] Reached target System Initialization. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. Starting The Apache HTTP Server... httpd.service: main process exited, code=exited, status=1/FAILURE httpd.service: control process exited, code=exited status=1 [FAILED] Failed to start The Apache HTTP Server. See 'systemctl status httpd.service' for details. Unit httpd.service entered failed state with default label it will fail to start httpd.service, but with static label by -l it works fine Version-Release number of selected component (if applicable): libvirt-sandbox-0.1.0-1.fc18.x86_64 httpd-2.4.3-15.fc18.x86_64 kernel-3.8.2-206.fc18.x86_64 How reproducible: always Steps to Reproduce: 1. as descrption 2. 3. Actual results: failed to start httpd.service within Expected results: should success Additional info:
The -d stands for dynamic labeling and theoretically it would only work with an image file. since all of the content on disk would need to be relabeled everytime the container starts.
Fedora 18 is end-of-life in a month, so it is unlikely this issue will be fixed there (if it hasn't already). Closing as WONTFIX for F18. If you can still reproduce on F19+, please comment here and reopen the bug.