当前位置:网站首页>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
边栏推荐
- 时序动作定位 | ASM-Loc:弱监督时序动作定位的动作感知片段建模(CVPR 2022)
- Basic use of Log4j2
- 2022 Henan Mengxin League Game (5): University of Information Engineering K - Matrix Generation
- .NET-8.我的思想笔记
- MySQL索引事务
- 基于STC8G2K64S4单片机通过OLED屏幕显示模拟量光敏模拟值
- A few lines of code can crash the system;
- I would like to ask you guys, when FLink SQL reads the source, specify the time field of the watermark. If the specified field is in the grid
- 英国国家卫生服务遭受攻击,系统出现大面积故障
- 【MySQL】SQL语句
猜你喜欢
随机推荐
MySQL database monthly growth problem
30条实用MySQL优化法则
Introduction to the C language to realize bubble sort
oracle业务表的数据发生增删改,该表的索引会写redo,undo吗?
BUUCTF Notes (web)
张驰课堂:老板会武术,谁也挡不住!六西格玛培训的魅力
第2章 变量和基本类型读书笔记
.NET-8. My Thought Notes
图像处理用什么神经网络,神经网络提取图片特征
C language file operation
IDLE开发wordCount程序(第五弹)
navicat for mysql 连接时报错:1251-Client does not support authentication protocol requested by server
pytest之parametrize参数化
A few lines of code can crash the system;
SQL建表问题,帮我看看好吗朋友们~大家人。!
What is an MQTT gateway?What is the difference with traditional DTU?
预测股票涨跌看什么指标,如何预测明天股票走势
Ladies and gentlemen, oracle11g, cdc2.2, flink1.13.6, single-table incremental synchronization.Without adding data
PLSQL学习第一天
神经网络样本太少怎么办,神经网络训练样本太少









