VMware ESXI上开虚机玩KVM

教你如何在ESXI上开虚机玩KVM,首先在物理机上开启VT-d虚拟化支持,其次开启ssh功能,远程连接上之后修改/etc/vmware/config/配置文件。在ESXI 5.0上面只需添加vhv.allow = "TRUE"即可,而在ESXi 5.1上面得将“vhv.allow”改成“vhv.enable”才行,对于桌面版的系统,估计还要跑一下modprobe kvm_intel加载一下kvm模块才能支持,做完这些操作之后,在vsphere界面、编辑虚机配置CPU打开VT-d虚拟化支持就可以玩KVM了。

ESXI5.0:

1
2
3
4
5
6
7
8
9
10
11
# vi /etc/vmware/config
libdir =  "/usr/lib/vmware"
authd.proxy.vim =  "vmware-hostd:hostd-vmdb"
authd.proxy.nfc =  "vmware-hostd:ha-nfc"
authd.proxy.nfcssl =  "vmware-hostd:ha-nfcssl"
authd.proxy.vpxa-nfcssl =  "vmware-vpxa:vpxa-nfcssl"
authd.proxy.vpxa-nfc =  "vmware-vpxa:vpxa-nfc"
authd.fullpath =  "/sbin/authd"
authd.soapServer =  "TRUE"
vmauthd.server.alwaysProxy =  "TRUE"
vhv.allow =  "TRUE"

ESXI5.1:

1
2
3
4
5
6
7
8
9
10
11
# vi /etc/vmware/config
libdir =  "/usr/lib/vmware"
authd.proxy.vim =  "vmware-hostd:hostd-vmdb"
authd.proxy.nfc =  "vmware-hostd:ha-nfc"
authd.proxy.nfcssl =  "vmware-hostd:ha-nfcssl"
authd.proxy.vpxa-nfcssl =  "vmware-vpxa:vpxa-nfcssl"
authd.proxy.vpxa-nfc =  "vmware-vpxa:vpxa-nfc"
authd.fullpath =  "/sbin/authd"
authd.soapServer =  "TRUE"
vmauthd.server.alwaysProxy =  "TRUE"
vhv. enable  "TRUE"