VMware Workstation 不支持配置虚拟机的vlan,需要先将虚拟机的网卡类型为vmxnet3
,才可以设置vlan。
ethernet0.virtualDev = "vmxnet3"
请修改后可能需要重新安装vmtools驱动,网卡设备说明请参阅:
一个全栈攻城狮的纯技术干货分享(澹兮其若海,飂兮若无止)
VMware Workstation 不支持配置虚拟机的vlan,需要先将虚拟机的网卡类型为vmxnet3
,才可以设置vlan。
ethernet0.virtualDev = "vmxnet3"
请修改后可能需要重新安装vmtools驱动,网卡设备说明请参阅:
最近家庭服务器升级了ESXi6.5,发现使用 VMware Web Client 管理服务器还是蛮不错。
但是用来查看虚拟机的控制台,就不那么美了,每次都要点那么多下才能看到,费事儿的紧。偏执狂的我,自然把注意打到了VMware自带的VNC控制台身上。
首先要打开ESXi宿主机的SSH权限,登陆进去后执行1和2两个步骤,然后在需要管理的虚拟机上执行第3步。最后要怎么访问VNC就不用教程了吧?
1、列表项目
添加firewall配置文件
vi /etc/vmware/firewall/vnc.xml
<ConfigRoot>
<service>
<id>VNC</id>
<rule id='0000'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>5911</begin>
<end>5919</end>
</port>
</rule>
<rule id='0001'>
<direction>outbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>0</begin>
<end>65535</end>
</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>
</ConfigRoot>
2、刷新并验证防火墙规则
esxcli network firewall refresh
esxcli network firewall ruleset list | grep VNC
3、配置虚拟机高级参数
RemoteDisplay.vnc.enabled=TRUE
RemoteDisplay.vnc.password=anrip.com
RemoteDisplay.vnc.port=5911
备注,我是允许了5911-5919这9个端口,客官你可随意,但是一定要和虚拟机配置对应的啦~
1、登录到ESXi 5.x主机的命令行
2、执行如下命令来查看ESXi 5.x识别到的设备列表,执行如下命令
esxcli storage nmp device list
记录要修改的硬盘 VMW_SATP_XXXX 和 naa.xxxxxxxxxx 的值
3、在需要将之配置为SSD盘的设备上,执行如下命令
esxcli storage nmp satp rule add -s VMW_SATP_XXXX -d naa.xxxxxxxxxx -o enable_ssd
命令参数说明:
s – The SATP for which a new rule will be added.
d – Set the device when adding SATP claim rules.
o – Set the option string when adding a SATP claim rule.
4、接着回收一下设备,执行如下命令:
esxcli storage core claiming reclaim -d naa.xxxxxxxxxx
若无法回收设备,请安全重启即可。