ubuntu14.04 安装HAXM(KVM)提升android虚拟机Android x8运行速度

1
2
3
4
英语原文:
  
 
https: //help .ubuntu.com /community/KVM/Installation

1.先检查cpu是否支持ardware virtualization,返回0表示不支持

?
1
egrep  -c  '(vmx|svm)'  /proc/cpuinfo

2.检查是否支持upports kvm,需要安装工具pu-checker

?
1
sudo  apt-get  install  cpu-checker

3.执行检测命令

?
1
kvm-ok

返回

?
1
2
3
4
cpu支持
"INFO: Your CPU supports KVM extensions
INFO:  /dev/kvm  exists
KVM acceleration can be used"
?
1
2
3
4
5
cpu不支持需要到bios中设置VT开启状态
"INFO: KVM is disabled by your BIOS
HINT: Enter your BIOS setup and  enable  Virtualization Technology (VT),
and  then  hard poweroff /poweron  your system
KVM acceleration can NOT be used"

开始安装kvm

?
1
sudo  apt-get  install  qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

安装成功之后重启.


添加用户到kvm,libvirtd组

?
1
2
sudo  adduser your_user_name kvm
sudo  adduser your_user_name libvirtd

安装验证:

?
1
sudo  virsh -c qemu: ///system  list

安装成功出现如下命令

?
1
2
Id Name                 State
----------------------------------

通过命令启动虚拟机

?
1
<SDK directory> /tools/emulator-x86  -avd Your_AVD_Name -qemu -m 2047 - enable -kvm

通过avd manager启动

Run > Run Configurations>Target>Additional Emulator Command Line Options

添加启动参数

-qemu -m 2047 -enable-kvm

over!

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值