弄了半天,其实spice没有声音不是因为spice本身的配置有问题,而是系统的声音服务权限问题。
Fedora 17不允许root从本地登陆winddows manager, 所以只能用普通用户来登陆。登陆后声音服务(PulseAudio)
所以是登陆用户权限的。
所以需要把qemu的权限先改一下, edit /etc/libvirt/qemu.conf
- # The user ID for QEMU processes run by the system instance.
- user = "MYLOGIN"
- # The group ID for QEMU processes run by the system instance.
- group = "MYLOGIN"
然后重启下libvirtd或者重启系统,用登陆用户执行spice客户端:
$ spicec -h localhost -p 5900
下面是我的spice配置:
- <channel type='spicevmc'>
- <target type='virtio' name='com.redhat.spice.0'/>
- </channel>
- <input type='tablet' bus='usb'/>
- <channel type='pty'>
- <target type='virtio' name='arbitrary.virtio.serial.port.name'/>
- </channel>
- <graphics type='spice' port='5900' autoport='yes'>
- <channel name='main' mode='insecure'/>
- <image compression='auto_glz'/>
- <clipboard copypaste='yes'/>
- <channel name='record' mode='insecure'/>
- <channel name='playback' mode='insecure'/>
- </graphics>
- <video>
- <model type='qxl' vram='65536' heads='1'/>
- </video>
阅读(5133) | 评论(0) | 转发(0) |