Red Hat Bugzilla – Bug 239210
SELinux error when trying to create virtual machine
Last modified: 2008-01-10 23:08:51 EST
Description of problem:
virt-manager 0.4.0, Fedora 7 Test 4, Xen kernel
'Creating a new virtual system'
System Name: openSUSE (10.3 Alpha 3 DVD in drive)
CD-ROM or DVD: SU103Alp.001 (DVD-ROM image name)
OS Type: Linux
OS Variant: Generic 2.6.x kernel
Simple File: /var/lib/xen/images/openSUSE
10 GB, entirely allocated
Shared physical device, xenbr0
512 Max Memory, 512 Startup Memory (2.00 GB in host)
After I click 'Finish', I get:
'Unable to complete install: 'virDomainCreateLinux() failed POST operation
failed: (xend.err 'Device 0 (vif) could not be connected. Hotplug scripts not
See attached PNG.
Version-Release number of selected component (if applicable):
Created attachment 154220 [details]
screenshot of error message from virt-manager
I reinstalled with default kerrnel, and set SELinux to 'Permissive.' Still got
the same error, so it looks like it's not SELinux related. I assumed it was
SELinux related because of all the SELinux alerts I was getting.
I have also had this problem installing F7. I have also tried both ethernet
options in the virt-manager.
Guest URL :
Install Location: /var/lib/xen/images/
Virtual Network : Default (Though I have had the same problem using Shared
Physical Device : eth0)
VM Max = VM Startup = 256MB
VPU = 1
I have been able to get past this there are a couple of threads that talk about
this particular problem please refer to them for further details.
I eventually installed sysfsutils
This did not seem to work however it might be required anyway.
what did work was doing steps 2 and 4 of this post
2. /etc/xen/scripts/network start
4 /etc/xen/scripts/vif-bridge up domain=RHL vif=vif1.0 bridge=xen-br0
Further to the above.
The previous efforts allowed the completion of the image creation but when it
came to installing the client OS the system failed as it could not initialise
the ipv6 ethernet stack. It didn't matter which ipv6 option you chose or even if
you turned it off in the install options.
After trawling through the logs on the host OS the new errors reported were
xen-hotplug.log mkdir: cannot create directory `/var/run/xen-hotplug':
Given that I had problems reported by the selinux trouble shooter in creating
this log file I assumed that there is a problem with the selinux permissions for
virtulization and so set selinux to to disable and then ran 'fixfiles relabel'.
After starting the entire process again I was able to complete the intallation.
To me this is defiantly an issue with selinux not allowing the correct
establishment of the networking scripts.
change QA contact
If you are still encountering problems with this could you provide
From just after an attempt to create a VM, along with the output of 'ifconfig
-a', 'brctl show' and /var/log/xen/xend.log
Closing since no further reports of problems provided by submitter. Please
re-open if it still occurrs