Bug 857341
Summary: | fail to start lxc domain | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | yanbing du <ydu> |
Component: | libvirt | Assignee: | Daniel Berrangé <berrange> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.4 | CC: | acathrow, ajia, berrange, dyasny, dyuan, gsun, mzhan, rwu, yupzhang |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-1.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:23:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
yanbing du
2012-09-14 07:16:30 UTC
As it works on libvirt-0.9.10-21.el6.x86_64, so mark this bug a regression bug. Ok this is a very peculiar error that I've never seen before
> 2012-09-14 07:06:00.613+0000: 1: error : lxcContainerMountBasicFS:560 : Failed > to mount /selinux on /selinux type selinuxfs: Device or resource busy
I've been able to reproduce this locally on RHEL-6 box, but not on rawhide. So there must be some difference, perhaps in the libselinux behaviour Fixed upstream commit c15d893252e8000d26a33813027edde38e1b6912 Author: Daniel P. Berrange <berrange> Date: Tue Sep 18 12:25:56 2012 +0100 Ensure existing selinux mount is removed before mounting new one in LXC Some kernel versions (at least RHEL-6 2.6.32) do not let you over-mount an existing selinuxfs instance with a new one. Thus we must unmount the existing instance inside our namespace. This issue is now fixed upstream by v0.10.2-rc2-2-gc15d893: commit c15d893252e8000d26a33813027edde38e1b6912 Author: Daniel P. Berrange <berrange> Date: Tue Sep 18 12:25:56 2012 +0100 Ensure existing selinux mount is removed before mounting new one in LXC Some kernel versions (at least RHEL-6 2.6.32) do not let you over-mount an existing selinuxfs instance with a new one. Thus we must unmount the existing instance inside our namespace. pkgs: libvirt-0.10.2-1.el6.x86_64 kernel-2.6.32-279.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.313.el6.x86_64 steps: Following steps in description: # virsh -c lxc:/// list --all Id Name State ---------------------------------------------------- - vm1 shut off # virsh -c lxc:/// Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # start vm1 Domain vm1 started virsh # list Id Name State ---------------------------------------------------- 30672 vm1 running virsh # dumpxml vm1 <domain type='lxc' id='30672'> <name>vm1</name> <uuid>386f5b25-43ee-9d62-4ce2-58c3809e47c1</uuid> <memory unit='KiB'>500000</memory> <currentMemory unit='KiB'>500000</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='x86_64'>exe</type> <init>/bin/sh</init> </os> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/libexec/libvirt_lxc</emulator> <interface type='network'> <mac address='52:54:00:f2:2c:ac'/> <source network='default'/> <target dev='veth0'/> </interface> <console type='pty' tty='/dev/pts/8'> <source path='/dev/pts/8'/> <target type='lxc' port='0'/> <alias name='console0'/> </console> </devices> <seclabel type='none'/> </domain> virsh # destroy vm1 Domain vm1 destroyed This is working now. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0276.html |