Bug 222356 - Errors when creating VM with virt-manager
Summary: Errors when creating VM with virt-manager
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: xen
Version: 6
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Xen Maintainance List
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-11 20:31 UTC by Adam Huffman
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version: xen-3.0.3-8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-04-02 16:31:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
SELinux error (2.45 KB, text/plain)
2007-01-11 20:31 UTC, Adam Huffman
no flags Details
Another SELinux error from this attempt at VM creation (2.24 KB, text/plain)
2007-01-11 20:33 UTC, Adam Huffman
no flags Details
Xen config (465 bytes, text/plain)
2007-01-12 18:18 UTC, Adam Huffman
no flags Details
More SELinux errors (2.24 KB, text/plain)
2007-01-12 18:20 UTC, Adam Huffman
no flags Details
xend.log from the relevant day (21.95 KB, text/plain)
2007-01-15 12:55 UTC, Adam Huffman
no flags Details

Description Adam Huffman 2007-01-11 20:31:35 UTC
Description of problem:
While trying to create fully virtualized guests, SELinux errors are reported.

Version-Release number of selected component (if applicable):
xen-3.0.3-1.fc6

How reproducible:
Every time

Steps to Reproduce:
1. Use graphical VM creator
2. 
3.
  
Actual results:
Error reported at final stage

Expected results:
New virtual machine is created

Additional info:

Comment 1 Adam Huffman 2007-01-11 20:31:35 UTC
Created attachment 145389 [details]
SELinux error

Comment 2 Adam Huffman 2007-01-11 20:33:40 UTC
Created attachment 145390 [details]
Another SELinux error from this attempt at VM creation

Comment 3 Adam Huffman 2007-01-11 20:34:38 UTC
The error reported by the application was:

Error: Device 768 (vbd) could not be connected. Hotplug scripts not working

Comment 4 Stephen Tweedie 2007-01-11 23:32:14 UTC
Could you post your guest config file please?  

Comment 5 Adam Huffman 2007-01-12 18:02:51 UTC
I couldn't find any config files as I'd deleted the last two attempts.  Just now
I've tried again and it's worked, for the first time.

I'll try again and if that works too, I'll close the bug.  

Perhaps a different update has cured the problem?

Comment 6 Adam Huffman 2007-01-12 18:08:56 UTC
Actually, the new virtual machine crashed during installation, but at least the
Xen errors didn't recur.

Comment 7 Adam Huffman 2007-01-12 18:15:57 UTC
Trying again now, and there are SElinux denials, but against net-tools.

Comment 8 Adam Huffman 2007-01-12 18:18:35 UTC
Created attachment 145473 [details]
Xen config

Comment 9 Adam Huffman 2007-01-12 18:20:28 UTC
Created attachment 145474 [details]
More SELinux errors

Net-related error triggered during virtual machine creation - should this be
filed separately, against net-tools?

Comment 10 Daniel Berrangé 2007-01-12 18:25:13 UTC
Nope, the SELinux report here is misleading - this definitely looks like a bug
in XenD / Xen networking scripts, rather than net-tools. I suspect its failing
to close a filehandle before running the net scripts.

What version of the SELinux policy have you got installed ?

Comment 11 Adam Huffman 2007-01-12 18:38:44 UTC
2.4.6-17

Comment 12 Stephen Tweedie 2007-01-12 21:00:44 UTC
OK, can you please post /var/log/xen/xend.log output from the failed attempt to
launch the guest?


Comment 13 Adam Huffman 2007-01-15 12:55:00 UTC
Created attachment 145570 [details]
xend.log from the relevant day

Comment 14 Trolle Selander 2007-01-15 13:22:22 UTC
I've encountered this issue too. It may be a dupe of bug #214700 - check if your
xen bridge is named xenbr1 instead of xenbr0.

Comment 15 Daniel Berrangé 2007-01-15 13:32:36 UTC
WRT to comment #14 - we no longer hardcode xenbr0 - provided you have
python-virtinst >= 0.97 installed, virt-manager will automatically pick the
correct bridge device based on info from the host routing tables.


Comment 16 Stephen Tweedie 2007-01-15 15:55:26 UTC
re comment #9, "Net-related error triggered during virtual machine creation -
should this be filed separately, against net-tools?":

Yes thanks, separate bugs need separate bugzillas, it's not possible to track
what's going on otherwise.

Comment 17 Adam Huffman 2007-01-16 19:06:54 UTC
The xen bridge is xenbr0 and I do meet those python-virtinst version requirements.

I have filed a separate bug against net-tools.

Comment 18 Daniel Berrangé 2007-03-27 15:24:32 UTC
There was a recent update to the Xen RPM in FC6 which fixed a bug where QEMU
would leak file handles to the networking script, which in turn caused SELinux
AVCs. 

* Tue Mar  6 2007 Daniel P. Berrange <berrange> - 3.0.3-7.fc6
- Ensure PVFB daemon terminates if domain doesn't startup (bz 230634)
- Fix ia64 shadow page table mode
- Close QEMU file handles when running network script

Please update to at least  3.0.3-7.fc6,  restart XenD and then try & reproduce
the problem again.


Comment 19 Adam Huffman 2007-04-02 16:31:22 UTC
Yes, that seems to have fixed the problem.


Note You need to log in before you can comment on or make changes to this bug.