让KVM虚机能使用音箱与麦克风(by quqi99)

作者:张华  发表于:2014-08-02
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明

(http://blog.csdn.net/quqi99 )

      由于Rosetta Stone软件只有windows版本,所以想到在Linux上创建一个KVM虚机来跑windows, 本文记录解决KVM虚机使用使用音箱与麦克风的过程中遇到的一些问题。

1, windows xp or windows 7

       最开始图速度快,安装的一是个深度精简版的windows xp, 但是进虚机之后总报找不着一个pci,音频,视频的驱动,使用在线驱动精灵解决未果。后来换成windows 7,且声卡驱动选ich6是好使的。

2, 音箱 and 麦克风

        但以上的办法(使用ich6驱动)在进虚机之后只能看到音箱驱动,而看不到麦克风驱动, 因为麦克风既不是pci设备也不是usb设备,而是一个line-in设备,虚机不认它,所以使用使用如下配置。见:http://comments.gmane.org/gmane.comp.emulators.spice.devel/9078

 <sound model='ich6'>
      <codec type='micro'/>
 </sound>

3, VNC or rdesktop

      virt-manager默认创建的虚机使用的是vnc, vnc不能穿透声音, 网上流传一方法,在/etc/libvirt/qemu.conf中设置vnc_allow_host_audio = 1, 实际测试,不好使

      所以改成使用使用rdesktop的-r sound:local参数来使用宿主机的音箱,好使,但声音有些卡,并且麦克风不大好使

       sudo rdesktop -z -r sound:local -g workarea -D -K -a 16 -u Administrator -p password 192.168.100.6

4,  spice

       最后想到spice, 音箱和麦克风都能用啦

       a) sudo apt-get install  libspice-server1 python-spice-client-gtk qemu-kvm-spice spice-client spice-client-gtk python-spice-client-gtk build-essential libspice-server1 libspice-protocol-dev 

       b) virt-manager中将Video驱动改成QXL

       c) 将Display改成Spice

     

       

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
用于无声卡电脑- Virtual Audio Cable At first, please unpack the distribution package into an empty folder on a local drive, making sure that local folder path does not contain special characters like "#", "&" or similar. Unpacking the package, preserve folder structure (after unpacking, destination folder should contain "x86" and "x64" subfolders). If you are new to Virtual Audio Cable, please read the user manual before installation. The best way to open the manual is to run installer application named Setup and click the "Help" button in the first installation dialog. The user manual file (vac.chm, a file named "vac" with a sheet and question mark icon) is an HTML Help format file. Do not open manual file from a network path or directly from the package otherwise help pages may not be displayed due to security restrictions. Copy the file to a local drive before opening. Please make sure that local file path does not contain special characters. If user manual file is opened from a local drive but pages on the right pane are not displayed properly, please check if vac.chm file has the "Unblock" button in its Properties form (right-click the file to open its properties). If yes, unblock it. See also "How blocking some attachments helps protect your computer" topic in Windows Help (Start - Help and Support) and http://support.microsoft.com/kb/902225. Reading the manual, don't forget that there is the "Search" tab. Having a problem, enter some words related to the problem and appropriate pages will be displayed. Of course, search feature will not help if you enter a question like "how can I use it?". It only finds pages containing given keywords.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

quqi99

你的鼓励就是我创造的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值