15.9 C
New York
Thứ Tư, Tháng 5 7, 2025

Buy now

spot_img

Bật máy ảo từ máy chủ ESXi (CLI)

Bài viết này hướng dẫn bạn các phương pháp khác nhau để bật máy ảo. Các phương pháp thay thế hữu ích khi có điều gì đó ngăn cản việc sử dụng một phương pháp hoặc khi phương pháp khác hữu ích hơn do các yêu cầu cụ thể về môi trường.

Môi trường áp dụng:

  1. VMware vSphere ESXi 8.x
  2. VMware vSphere ESXi 7.x
  3. VMware vSphere ESXi 6.x

Cách xử lý:

Khởi động máy ảo thông qua vSphere Client/Virtual Infrastructure Client được kết nối với vCenter Server/VirtualCenter

Để khởi động máy ảo từ vCenter Server/VirtualCenter:

  1. Kết nối với vCenter Server/VirtualCenter của bạn bằng vSphere Client/ Virtual Infrastructure Client.
  2. Chọn máy ảo mà bạn muốn bật từ kho.
  3. Nhấp chuột phải vào tên máy ảo và nhấp vào Bật nguồn.
  4. Hoặc chọn tab Tóm tắt của máy ảo và nhấp Bật nguồn.

    Hình ảnh này hiển thị các tùy chọn có sẵn trong tab Tóm tắt của máy ảo.

Starting a virtual machine via the vSphere Client/Virtual Infrastructure Client connected directly to an ESXi host

To start a virtual machine from the vSphere Client/Virtual Infrastructure Client connect directly to an ESXi host:

  1. Connect to your ESXi host using the vSphere Client /Virtual Infrastructure Client.
  2. Select the virtual machine you want to power on from inventory.
  3. Right-click on the virtual machine and click Power On.
  4. Or alternatively select the virtual machine’s Summary tab and click Power On

    The following graphic shows the options available in the virtual machine’s Summary tab.Note: There are not as many options when connecting to an ESXi host as there are when connecting to a vCenter Server/VirtualCenter.

Starting a virtual machine via the command line of an ESXi host

To start a virtual machine from the service console of an ESXi host:

  1. Log into the VMware ESXi host UI client Go to Service tab and enable “SSH” service
    Putty to the ESXi
    Login with root credentials
    To list all running virtual machines and their corresponding VMIDs, run the command:#vim-cmd vmsvc/getallvms Sample Output: VMid Name File Guest OS Version Annotation 2 VMName [DatastoreName] VMName/VMName.vmx otherGuest vmx-9
  2. Power on the virtual machine using the VMID found in the previous “vim-cmd vmsvc/getallvms” command output and run:
    #vim-cmd vmsvc/power.on VMID Sample Output: #vim-cmd vmsvc/power.on 2

Note: If you are still unable to power on your virtual machine after trying the steps in this article:

  • Gather the VMware Support Script Data.
  • File a support request with VMware Support and note this KB Article ID in the problem description.

Related Articles

BÌNH LUẬN

Vui lòng nhập bình luận của bạn
Vui lòng nhập tên của bạn ở đây

Stay Connected

0Thành viênThích
0Người theo dõiTheo dõi
0Người theo dõiĐăng Ký
- Advertisement -spot_img

Latest Articles