Registering VM via Command Line
VM is perf-worker-01a &
Esxi is esx-01a.corp.local
Steps
Navigate to the Esx host & enable SSH.
To enable SSH, Click on Esx --> Configure --> Services --> SSH & Start the service.
We will first inode of the datastore where VM is present. To do it use below command,
find -iname VMNAME
Copy the output & traverse to it using below command.
Cd Ouputof first command
Use below command to register the VM.
Vim-cmd solo/registervm /vmfs/volumes/5a905bc6-8f09ccc8-9e77-00505601dfda/perf-worker-01a/perf-worker-01a.vmx
Validate the results from Host & Cluster View.
Mounting Disk of One VM to Another VM
I ran into a Problem where one of VM crashed & hence unable to boot it. I had important data in one of the disk attached to the VM.
To recover data, we can mount the disk to some other VM & then can recover our data. To implement follow below steps -
1. Note down the Disk holding your data along with the datastore name. You can easily get this info by right clicking on the VM & Edit Settings.
2. We first need to remove the disk attached to the affected VM. Click on "X" icon to remove it. ( Don't check mark delete from Datastore also option)
3. One removed, we can navigate to other Working VM , Right click --> Edit Settings --> Add Hard drive & here select existing Hard disk Option.
4. Navigate to the datastore containing the disk. ( This was noted in Step 1)
5. Login to the VM. Navigate to Disk management & mark the newly disk as Online.
Able to see all the data now.
Subscribe to:
Posts (Atom)