[Openstack] 答复: RFC: Rewritten libvirt driver XML generation

Daniel P. Berrange berrange at redhat.com
Fri Mar 9 08:10:14 UTC 2012


On Fri, Mar 09, 2012 at 09:52:21AM +0800, wangsuyi640 wrote:
> Hi all:
>     I tried kvm on my openstack on ubuntu11.10  with the libvirt.xml file as
> follows:

> Howerver, I want change the remote access method by spice, I simply changed
> the libvirt.xml as follows:
> <domain type='kvm'>

[snip]

>         <graphics type='spice' port='-1' autoport='yes' keymap='en-us'
> listen='0.0.0.0'/>
> 
>     </devices>
> </domain>
> 
> As you can see, I just change <graphics type='vnc' port='-1' autoport='yes'
> keymap='en-us' listen='0.0.0.0'/> to <graphics type='spice' port='-1'
> autoport='yes' keymap='en-us' listen='0.0.0.0'/>   ,   But it called the
> error as follows:
> 
> libvirtError: internal error Process exited while reading console log
> output: char device redirected to /dev/pts/12
> TRACE: do_spice_init: starting 0.8.1
> TRACE: do_spice_init: statistics shm_open failed, Permission denied
> 
> I wish someone can give me some help! Thanks!

This problem is unrelated to the changes I made. If I had to guess
I'd say perhaps the AppArmour profile is not allowing QEMU to use SHM.
This is something you should probably report to the Ubuntu bug tracker
for QEMU

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the Openstack mailing list