vSphere 6.7 ICM – Topic 3.1 – Create, Provision, and remove Virtual Machine

In your daily responsibilities as a VMware Admin, You must know how to create Virtual machine. Topic 3.1 explains in detail how to accomplish these requirements. You must login as administrator or should have the permissions to  create, provision and remove VM.  Below mentioned image shows the Root access through direct ESXI host through  webclient.

Points to Cover–

  1. Creating a virtual machine (Compute for the VM)
  2. Un-registering a Virtual Machine
  3. Deleting a Virtual Machine

1. Creating a virtual machine

  • Now, that we have logged into direct host using root access(Same can be accessed through vCenter).

2018-07-28 13_35_16-cp-esxi-02.pathshala.com - VMware ESXi

  • Click on the “Create/Register VM” as highlighted in the below mentioned image.

2018-07-28 13_35_22-cp-esxi-02.pathshala.com - VMware ESXi

  • It open another dialogue box  which indicates “New Virtual machine” as shown in the image mentioned below.
  • Choose “Create a new Virtual Machine”.  Please give special attention to the description on the right which briefs option selected.

2018-07-28 13_36_33-cp-esxi-02.pathshala.com - VMware ESXi

  • Please choose the VM name wisely since same name would be used for all of files of VM, Prefix would be added for  VMDKs, NVRAM, snapshot files & all log files of the VM.

2018-07-28 13_37_39-cp-esxi-02.pathshala.com - VMware ESXi.jpg

  • Once the name has been provided, choose the destination storage(datastore). This would be destination for all the files that would make a VM.

2018-07-28 13_37_52-cp-esxi-02.pathshala.com - VMware ESXi

  • Next screen shows the options to customize the VM. Based on your business requirement you can decide on compute. You can also customize this options at later stage.
    • Specify the memory
    • Specify the size of the VMDK(hard disk).
    • Specify the destination(datastore) of VM files.

2018-07-28 13_38_19-cp-esxi-02.pathshala.com - VMware ESXi

  • Once all the above settings are provided, We are ready to complete the changes. These changes/customization would be written to VMX(VM config file). Ensure to review the same and go back if still any changes are required.

2018-07-28 13_40_34-cp-esxi-02.pathshala.com - VMware ESXi.jpg

  • After clicking on the “Finish” as seen on above screenshot, VM is ready to be deployed. Please give it few mins so that VM is deployed successfully.
  • You can see the status in “Recent tasks” at the bottom to see progress.

2018-07-28 13_41_06-cp-esxi-02.pathshala.com - VMware ESXi.jpg

  • Once the VM is deployed, You must install an OS so  it can be used further. Below steps can help you on how to install OS on the VM.
  • Select the VM where OS needs to be installed.
  • Right Click and choose “Edit Settings”.

2018-07-28 13_42_42-cp-esxi-02.pathshala.com - VMware ESXi.jpg

  • In the next dialogue box, You can choose “Host device”(if the OS disc is inserted inside the ESXI host) or you can choose “Datastore ISO file” if the bootable OS ISO is residing in any datastore. In our LAB, we have it as an ISO. so we are choosing the “Datastore ISO” option.

2018-07-28 13_43_03-cp-esxi-02.pathshala.com - VMware ESXi.jpg

  • Now you can direct the dialogue box to select the ISO of the bootable OS disc. In our LAB, we are choosing the Win & ISO as indicated in the image below.

2018-07-28 13_43_10-cp-esxi-02.pathshala.com - VMware ESXi.jpg

  • Below mentioned image indicates the path along with datastore which was selected. Click save once done.

2018-07-28 13_43_21-cp-esxi-02.pathshala.com - VMware ESXi.jpg

  • Once the ISO is mounted to the VM, we are ready to power on the VM. Ensure that you have opened the console and you are inside th VM console.
  • Press space bar to boot from the mounted ISO.
  • Follow the options to install the desired OS.

2018-07-28 13_44_20-cp-esxi-02.pathshala.com - VMware ESXi.jpg

2. Un-registering a Virtual Machine

As an Vmware administrator, you get such requests to un-register a VM or delete a VM. During your advance troubleshooting you get in situations where Vm needs to be un-registered(removal from inventory) and registered back to refresh the VMX (Config) file.  Below mentioned steps can help you in such requirements.

  • To un-register a VM, ensure that VM is off and then right click the VM.
  • On the dialogue box, choose “unregister”.

2018-07-28 13_48_27-cp-esxi-02.pathshala.com - VMware ESXi

3. Deleting a Virtual Machine

Below screen indicates the steps to delete a VM. This is a critical step and CAN NOT be undone. Choosing “Delete” option will permanently delete the VM and its supporting files.

  • To delete a VM, ensure that VM is off.
  • Right click the VM and choose “Delete”.
  • Watch the recent tasks for current deletion progress.

2018-07-28 13_48_37-cp-esxi-02.pathshala.com - VMware ESXi.jpg

Thanks for visiting here. Share this article if you found it useful. Be sociable.