当前位置:网站首页>VMware ESX Server常用命令行
VMware ESX Server常用命令行
2022-08-10 07:30:00 【优质网络系统领域创作者】
VMware ESX Server上特有的命令很多,以下分享一下常见的命令行的使用方法。
1:看你的esx版本。
VMware -V
2:列出esx里知道的服务
Esxcfg-firewall-s
3:查看具体服务的情况
Esxcfg-firewall-q sshclinet
4:重新启动vmware服务
service mgmt-vmware restart
5:修改root的密码
passwd root
6:列出你当前的虚拟交换机
esxcfg-vswitch -1
7:查看控制台的设置
esxcfg-vswif -1
8:列出系统的网卡
esxcfg-nics-1
9:添加一个虚拟交换机,名字叫(internal)连接到两块物理网卡,重新启动服务,vi就能看见了)
Esxcfg-vswith-a vswitchl
esxcfg-vswitch-A internal vSwitchl
esxcfg-vswitch -L vmnicl vSwitchl
esxcfg-vswitch -L vmnic2 vSwitchl
10:删除交换机,(注意,别把控制台的交换机也删了)
esxcfg-vswitch -D vSwitchl
11:删除交换机上的网卡
esxcfg-vswitch -u vmnicl vswitch2
12:删除portgroup
esxcfg-vswitch -D internel vswitchl
13:创建vmkernel switch,如果你希望使用vmotion,iscsi的这些功能,你必须创建(通常是不需要添加网关的)
esxcfg-vswitch -1
esxcfg-vswitch -a vswitch2
esxcfg-vswitch -A “vm kernel"vswitch2
esxcfg-vswitch -L vmnic3 vswitch2
esxcfg-vmknic-a"vm kerne1”-i172.16.1.141-n255.255.252.0
esxcfg-route 172.16.0.254
14:打开防火墙ssh端口
esxcfg-firewall -e sshclient
esxcfg-firewall -d sshclient
15:创建控制台
esxcfg-vswitch-a vSwitc0
esxcfg-vswitch -A "service console"vSwitch0
esxcfg-vswitch -L vmnic0 vSwitch0
esxcfg-vswif -a vswif0-p “service console”-i 172.16.1.140 -n 255.255.252.0
16:添加nas设备(a添加标签,-o,是nas服务器的名字或ip,-s是nas输入的共享名字)
esxcfg-nas -a isos -o nas.vmwar.cn -s isos
17:列出nas连接
esxcfg-nas -1
18:强迫esx去连接nas服务器(用esxcfg-nas-1来看看结果)
esxcfg-nas -r
esxcfg-nas -1
19:连接iscsi设备(e:enable q:查询d:disable s:强迫搜索)
esxcfg-swiscsi -e
20:设置targetip
vmkiscsi-tool -D -a 172.16.1.133 vmhba40
21:列出和target的连接
vmkiscsi-tool -1 -T vmhba40
22:列出当前的磁盘
ls -1 /vmfs/devices/disks
边栏推荐
- 【转】探秘钉钉的即时消息服务DTIM
- 全连接神经网络结构图,神经网络示意图怎么画
- 3. Transactions [mysql advanced]
- Introduction to C integer data storage
- 【Event Preview on August 9】Prometheus Summit
- .NET-7.WPF learning experience summary
- The difference between initializing objects as null and empty objects in JS
- MySQL设置初始密码—注意版本mysql-8.0.30
- 【Rust指南】使用Cargo工具高效创建Rust项目 | 理解Rust特别的输入输出语句
- navicat for mysql 连接时报错:1251-Client does not support authentication protocol requested by server
猜你喜欢
随机推荐
卷积神经网络卷积层公式,卷积神经网络运算公式
自动化测试框架Pytest(三)——自定义allure测试报告
DGIOT supports industrial equipment rental and remote control
PLSQL学习第二天
34. Talk about why you want to split the database?What methods are there?
神经网络样本太少怎么办,神经网络训练样本太少
WooCommerce 安装和 rest api 使用
Using the color picker
3-6月面经总结,200多页真题笔记和详解(含核心考点及6家大厂)
3. Transactions [mysql advanced]
个人博客系统
2022 Henan Mengxin League (fifth) game: University of Information Engineering H - Xiao Ming drinking milk tea
MVCC详解
placeholder 1
ATH10传感器读取温湿度
About MongoDb query Decimal128 to BigDecimal problem
ctfshow SSTI 知识点总结
添加spark的相关依赖和打包插件(第六弹)
Summary of ctfshow SSTI knowledge points
Chapter 12 Other Database Tuning Strategies [2. Index and Tuning] [MySQL Advanced]