当前位置:网站首页>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
边栏推荐
猜你喜欢
MySQL设置初始密码—注意版本mysql-8.0.30
每日一题,二叉树中增加一行
Reproduce dns out-band data combined with sqlmap
[Reinforcement Learning] "Easy RL" - Q-learning - CliffWalking (cliff walking) code interpretation
VS2013-debug assembly code-generate asm file-structure memory layout-function parameter stack-calling convention
张驰课堂:老板会武术,谁也挡不住!六西格玛培训的魅力
PLSQL学习第一天
杭州公积金修改手机号信息
神经网络样本太少怎么办,神经网络训练样本太少
CuteOneP is a PHP-based OneDrive multi-network disk mount program with member synchronization and other functions
随机推荐
ES13 - ES2022 - The 123rd ECMA Congress approves the ECMAScript 2022 language specification
模糊查询除了like+ % 还能用什么方式
initramfs与initrd的区别
2022 Henan Mengxin League No. 5: University of Information Engineering J-AC Automata
navicat for mysql 连接时报错:1251-Client does not support authentication protocol requested by server
mysql数据库定时备份(保留近7天的备份)
May I ask why sqlserver cdc will report this error one day after the task is started, obviously cdc has been opened.
Elementary Structure
3. Transactions [mysql advanced]
数据库公共字段自动填充
【电商业务】外行为何难区别 商品属性与商品规格
机器人控制器编程实践指导书旧版-实践二 传感器(模拟量)
快速输入当前日期与时间
VS2013-debug assembly code-generate asm file-structure memory layout-function parameter stack-calling convention
IDLE开发wordCount程序(第五弹)
Data types for database learning
uni 小程序腾讯地图polygon背景透明度
【Day10】进程管理命令
PLSQL学习第四天
NPU架构与算力分析