[原]远程重启或关闭ESX 3i

    对于部署了ESX 3i 的服务器,通常我们都会放在机房,由VMware Infrastructure Client进行远程管理。而一些必要的管理工作,如创建虚拟磁盘、修改虚拟网卡配置等,可以在打开SSH访问后,在字符界面下进行。那重启、关闭ESX 3i Host呢?当然也可以进行远程操作。
    原以为既然ESX 3i 是基于Linux上的应用而已,重启和关闭无法就是用shutdown即可。实际操作才发现,ESX 3i 与Infrastructure 3不同,它不基于原始的Redhat系统,而是在核心的基础上使用busybox环境。故ESX 3i 的某些命令与Infrastructure 3是不同的。Infrastructure 3的命令请参考上一遍日志:[转]ESX 3.x Service Console Guide。
    重启或关闭ESX 3i 的命令见下面:

引用
~ # reboot –help
BusyBox v1.2.1 (2008.06.26-17:58+0000) multi-call binary

Usage: reboot [-d] [-n] [-f]

Reboot the system.
Options:
-d delay interval for rebooting
-n no call to sync()
-f force reboot (don’t go through init)
~ # poweroff –help
BusyBox v1.2.1 (2008.06.26-17:58+0000) multi-call binary

Usage: poweroff [-d] [-n] [-f]

Halt and shut off power.
Options:
        -d              delay interval for halting
        -n              no call to sync()
        -f              force power off (don’t go through init)

即运行:
重启:

~ # reboot -f -d 0

关闭:

~ # poweroff -f -d 0

    当然,除了SSH方式外,还有在Infrastructure Client 3上的操作方法,请参考VMware的Knowledge文档:Rebooting an ESX Server host

vSphere 5.0 重定位虚拟机时报“在主机的当前连接状况下不允许执行该操作”的问题
配置Vmware vSphere 5.0 Auto Deploy服务:配置Auto Deploy 服务
配置Vmware vSphere 5.0 Auto Deploy服务:准备自定义脱机库
给VMware vSphere Hypervisor(ESXi) 5.0 添加第三方驱动
创建VMware vSphere 5 使用的共享磁盘

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/104539.html

(0)
上一篇 2021年8月25日
下一篇 2021年8月25日

相关推荐

发表回复

登录后才能评论