Bug 239210

Summary: SELinux error when trying to create virtual machine
Product: [Fedora] Fedora Reporter: Justin Mahoney <justin>
Component: virt-managerAssignee: Daniel Berrangé <berrange>
Status: CLOSED NOTABUG QA Contact: Martin Jenner <mjenner>
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: andrew.pannell, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-11 04:08:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot of error message from virt-manager none

Description Justin Mahoney 2007-05-06 05:22:38 UTC
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)
Fully Virtualized
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)
1 VCPU

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
working.')'

See attached PNG.

Version-Release number of selected component (if applicable):

0.4.0

Comment 1 Justin Mahoney 2007-05-06 05:22:39 UTC
Created attachment 154220 [details]
screenshot of error message from virt-manager

Comment 2 Justin Mahoney 2007-05-06 20:41:18 UTC
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.

Comment 3 Andrew Pannell 2007-06-22 04:06:08 UTC
I have also had this problem installing F7. I have also tried both ethernet
options in the virt-manager.
Host:Fedora (2.6.20-2925.11.fc7xen)
Guest URL :
http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/
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

Comment 4 Andrew Pannell 2007-06-23 03:14:51 UTC
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
(http://lists.xensource.com/archives/html/xen-users/2005-11/msg00127.html)

This did not seem to work however it might be required anyway.

what did work was doing steps 2 and 4 of this post
(http://lists.xensource.com/archives/html/xen-users/2005-10/msg00152.html)
2. /etc/xen/scripts/network start
4 /etc/xen/scripts/vif-bridge up domain=RHL vif=vif1.0 bridge=xen-br0

Comment 5 Andrew Pannell 2007-06-26 00:10:08 UTC
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':
Permission denied

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.

Comment 6 Red Hat Bugzilla 2007-07-25 02:11:12 UTC
change QA contact

Comment 7 Daniel Berrangé 2007-09-27 21:16:16 UTC
If you are still encountering problems with this could you provide 

 /root/.virt-manager/virt-manager.log

From just after an attempt to create a VM, along with the output of 'ifconfig
-a', 'brctl show' and /var/log/xen/xend.log


Comment 8 Daniel Berrangé 2008-01-11 04:08:51 UTC
Closing since no further reports of problems provided by submitter. Please
re-open if it still occurrs