VMware Workstation 不支持配置虚拟机的vlan,需要先将虚拟机的网卡类型为vmxnet3
,才可以设置vlan。
ethernet0.virtualDev = "vmxnet3"
请修改后可能需要重新安装vmtools驱动,网卡设备说明请参阅:
一个全栈攻城狮的纯技术干货分享(澹兮其若海,飂兮若无止)
VMware Workstation 不支持配置虚拟机的vlan,需要先将虚拟机的网卡类型为vmxnet3
,才可以设置vlan。
ethernet0.virtualDev = "vmxnet3"
请修改后可能需要重新安装vmtools驱动,网卡设备说明请参阅:
上次写了基于离线包的升级方式。今天写一下在线升级的基本步骤。
一、查看可用的更新包
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-6.7
二、执行在线更新(不含TOOLS,防止 No Space Left On Device)
esxcli software profile update -p ESXi-6.7.0-20190802001-no-tools -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
三、单独更新TOOLS
esxcli software vib install -v https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vib20/tools-light/VMware_locker_tools-light_10.3.10.12406962-14141615.vib
四、重启服务器
reboot
从官方网站下载升级用的zip包,上传到ESXi主机存储任意目录,登陆SSH控制台,执行更新命令
esxcli software vib install -d=/full/path/VMware-ESXi-6.7.0-8169922-depot.zip
执行成功后提示如下
Installation Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: VMW_bootbank_ata-libata-92_3.00.9.2-16vmw.670.0.0.8169922, …, VMware_locker_tools-light_6.5.0-0.0.4564106
VIBs Skipped:
最近家庭服务器升级了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
若无法回收设备,请安全重启即可。