Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1381633
  • 博文数量: 343
  • 博客积分: 13098
  • 博客等级: 上将
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-06 00:35
文章存档

2012年(131)

2011年(31)

2010年(53)

2009年(23)

2008年(62)

2007年(2)

2006年(36)

2005年(5)

分类: 虚拟化

2012-08-02 01:10:08

弄了半天,其实spice没有声音不是因为spice本身的配置有问题,而是系统的声音服务权限问题。

Fedora 17不允许root从本地登陆winddows manager, 所以只能用普通用户来登陆。登陆后声音服务(PulseAudio)
所以是登陆用户权限的。

所以需要把qemu的权限先改一下, edit /etc/libvirt/qemu.conf

  1. # The user ID for QEMU processes run by the system instance.
  2. user = "MYLOGIN"

  3. # The group ID for QEMU processes run by the system instance.
  4. group = "MYLOGIN"
然后重启下libvirtd或者重启系统,用登陆用户执行spice客户端:

$ spicec -h localhost -p 5900

下面是我的spice配置:

  1. <channel type='spicevmc'>
  2.         <target type='virtio' name='com.redhat.spice.0'/>
  3. </channel>

  4. <input type='tablet' bus='usb'/>

  5. <channel type='pty'>
  6.     <target type='virtio' name='arbitrary.virtio.serial.port.name'/>
  7. </channel>

  8. <graphics type='spice' port='5900' autoport='yes'>
  9.     <channel name='main' mode='insecure'/>
  10.     <image compression='auto_glz'/>
  11.     <clipboard copypaste='yes'/>
  12.     <channel name='record' mode='insecure'/>
  13.     <channel name='playback' mode='insecure'/>
  14. </graphics>

  15.  <video>
  16.     <model type='qxl' vram='65536' heads='1'/>
  17.  </video>




阅读(5032) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~