How to fetch ESX config with SSH

If you cant connect to ESX with SSH
If you can, you can scroll down to ” SSH to EXS host login with the root”


Login to Vcenter with Vmwarevsphere web client
Pick Esx, pick Manage to the left, then you will have a menu called Settings.
Then you go to the Security Profile.

ESX config with SSH 1


Now you can click on Edit (not sure if it’s necessary to mark SSH?)

ESX config with SSH 2


Mark SSH and click on Start or Stop depending on what you want to do

ESX config with SSH 3


SSH to EXS host login with root

Run this command: vim-cmd hostsvc/firmware/backup_config
Bundle can be downloaded at : http://*/downloads/random.url/configBundle-localhost.tgz
Replace * with IP for that ESX host.
Surf to that URL and you can download the config file

And you’re done.


Don’t forget to turn off SSH to EXS if that you want

Vmware Migrate

How to migrate a machine

Start vSphere
lookup the machine you want to move, right-click on the machine and pick Migrate

Then you will get the option if you want to change the host it is on right now or datastore or both.


After that next, next next.

Veeam backup restore entire drive on a server

Is entire drive gone or you can’t boot up a server?
And you don’t want to restore entire machine/server.
Let’s just restore damaged drive
(this guide is for VMware and it will replace old drive)
You follow this guide on your own risk, we take no responsibility

Click on Home in the bottom menu
Then Home top menu, after that Restore and then VMware vSphere.
Restore from backup
Now Entire VM restore (entire VM or virtual disk)

Search for the machine that has a problem with then and pick it
Click Next
Pick Restore point
Pick Correct disk or machine

Make sure you pick right disk, so
Here is a way you can try to make sure you pick correct

(pick Same a source)
Next
Skip scanning for malware (up to you)
Write Reason
Next
Do not pick power on when restore is done
Finished

When the restore is done
Wait for about 1-3 min to make sure its done before powering on the server to avoid something is getting broken.