In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Esxcli command to restart the virtual machine
If one of the vm under the esxi crashes and the console of the esxi cannot be used, in order not to affect the normal use of other vm under the same esx, we can only restart the vm separately with the command line to ensure security and efficiency. This method can be used in esxi5.1-exsi6.5 versions.
First of all, to install the exsi virtualization software host through ssh login, you need to enable ssh (usually off by default), and enable the ssh service as follows
You can also enter it by connecting the monitor through the control port or the computer room, and then pressing alt+f1 to enter the password.
You can then use your own exscli command tool to turn off vm
Esxcli vm process list
Get information about running virtual machines
Vm process kill-type=hard-world-id=245735
Disable the virtual machine. World-id is the virtual machine ID that is queried.
Note that there are three modes of shutting down the virtual machine: soft is the lowest, hard is executed immediately, and force mode can only be used if it still cannot be shut down.
Check to see if the virtual machine has been turned off: esxcli vm process list (this command shows that if it is not in the list, it has been turned off)
Delete orphaned virtual machines in vcenter
In practical use, you should be no stranger to (isolated) virtual machines, sometimes they are automatically generated by faults, and there are also virtual machines where vsphereclient directly logs into physical servers, but they will be isolated in vcenter, and many people may not find out how to delete them at once.
How to delete orphaned virtual machines in vcenter
Powder screen after exsi6.5 installation
When installing exsi6.5 or 6.7using a second-hand server or a compatible server, the pink screen appears during or after the installation, as shown below:
Or
These problems are generally caused by the incompatibility between the version of exsi and the server.
Go to the official website to download a free and compatible version
Https://my.vmware.com/en/web/vmware/evalcenter?p=free-esxi6
You can sign up for an account and download it for free. Most servers are compatible.
If you are interested, you can study the error log of the pink screen to troubleshoot, most of which are hardware compatibility issues.
The solution of datastore error reporting Fail to create VMFS datastore created by ESXi
In some cases, such as using a second-hand server to install esxi without using a new hard disk, or if the hard disk does not fully write 0 to clear data, it cannot be added as a local disk to exsi when it is used, and it will prompt an error when creating a new data warehouse datastore in VMware vShere/ESXi. The error message shown in the following figure pops up! "Fail to create VMFS datastore VMFS xxxx"-cannot change the host configuration (cannot create VMFS, cannot change host configuration)
Log in to your VMware vShere/ESXi host using SSH or Telnet, and then run the following command
Ls-lha / vmfs/devices/disks/
All storage partitions are listed, and then the id number of the partition where the creation failed is copied. My example is the one marked in red below.
Then enter the copied id after the following command:
Unable to add hard drive number found in partedutil getptbl / vmfs/devices/diks/naa.xxxxxxx #
Next, use the following command to fix it:
Partedutil setptbl / vmfs/devices/disks/naa.xxxxxxx
Through the above fix, go back to the VMware vShere/ESXi host again to create datastore and there will be no more errors!
A KB is attached for reference: https://kb.vmware.com/s/article/1008886
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.