当前位置:首页 > 虚拟机 > 正文

esxi命令行启动虚拟机(esxi虚拟机中开虚拟机)

esxi automatically starts and shuts down the virtual machine
Connect the management machine and check the log through vcenter. esxi will not automatically shut down or start the virtual machine. There must be a reason for the accident.
This can be achieved through settings in vcenter.

How to use the remote command line interface of VMwareESXi
Most people think that VMwareESXServer3i and ESXServer3.5 are very similar, except that there is no command line program like the RedHat EnterpriseLinux interface in the debugging interface of 3i. Many people even think that ESXServer only lacks the command line interface (CLIcommandlineinterface). But in fact, ESXServer3i has a CLI, but it is just a remote CLI. In this article, I will demonstrate how to download, install, and use the command line program.
Installation of ESXServer Remote CLI
Remote CLI allows users to run command lines on remote ESXServer3i systems. VMware in the ESX3i system environment can fully support this operation method, but the virtual machine in the ESXServer3.5 system does not support it.
VMware provides three ways to install remote ESXServer3iCLI
Windows
Linux
As a virtual application method (loaded into VMwareESXServer and used as a virtual script Program running)
It’s not that I am biased against Linux. Due to space limitations, I can only demonstrate how to install remote ESXServer3iCLI in Windows systems.
Virtual applications containing RCLI (RemoteCLI) look like a very interesting way to install them. The Windows CLI is approximately 44MB in size, while the virtual application is 119MB. Therefore, it is easier and faster for you to master the Windows CLI than the virtual application method.
By using a dummy application, you will end up with a functional "script application". Compared to installing a new application on your system, this approach avoids the risk of conflicts with Perl or other applications. Additionally, the application runs independently on your system, unlike an application server where only you can use the virtual program.
First download RCLI from the VMware Download Center to start our installation process. There, find VMwareInfrastructureRemoteClient and download it. Log in after entering your VMware username and password. Of course, you need to choose to accept the 9-page software license certificate (this is a lot of reading!!)
There are three different RCLIs available for download. Comes with a PDF document explaining how to use RCLI and introducing StorageVMotion. After the download is complete, run and install Windows RCLI. After three clicks, enter the installation program:
Downloading and installing is the simplest part, how to use RCLI correctly is the problem.
How to use VMwareESXServer3i remote CLI?
After the installation is complete, you will not see the new icon appear on the desktop or in the VMware program group in the start menu. You may see a new ActivePerl5.8 program group, but there is no VMware corresponding icon in this group. In fact, when I got to this point, I needed to go back and read the documentation to learn how to enter RCLI.
To enable RCLI, enter the Windows command line program, then change the folder path to RCLI\bin and enter the following command:
cd\ProgramFiles\VMware\VMwareVIRemoteCLI\bin
Next I ran the DIR command to view the files in the folder. Here is what I saw:
Unless you are a fan of command line programs or Per, at this point you will be saying "let me forget about this management method, this only applies to CLI programmer, it wasn't designed for me." However, I still recommend taking the time to understand the power of these commands before you decide whether to use them. As with most scripting programs, this cannot be mastered in a few short articles.
RCLI provides many different commands to help you complete various functions. To demonstrate what they can do, I need to choose a simple command to illustrate. I chose the simpler command, vicfg-nics. Through this demonstration we can see how to use this command to display the virtual network card list of the remote 3i server. Please enter the following command line:
;serveresxserver1;l
You will be prompted to enter your username and password. Please note that special characters in usernames and passwords will occupy two characters, or be preceded by a backslash.
After entering the document, click ESXServer3iConfigurationGuide, and then click UsingRemoteCommand-lineInterfaces. You will notice that in the document, there are multiple different options for each command to help you define some different parameters. For example, set a username and password.
 Conclusion
The conclusion is that for virtualization system administrators, VMwareESXServer3i's RCLI (not supported in version 3.5) can be used as a new management tool. With RCLI, administrators can create scripts to manage our remote VMware ESX Server systems. Through the combination of these scripts, we can realize automated management of the virtual architecture environment.

How to start an existing virtual machine on ESXi5?
Connect to the esxi server through VC and open the current virtual machine. vc can log in to your esxi web page and download it through the web page

After deploying a virtual machine in ESXI, the virtual machine cannot be started, failtopoweronVM, and an unknown error occurs.
Check the settings of this
virtual machine
to see if the imported configuration is higher than the configuration of your
physical machine
.
I also encountered this problem just now. After correcting it, it can be started.