VMware vSphere

 View Only
Expand all | Collapse all

blackout + lost vsphere + vcenter passwords

  • 1.  blackout + lost vsphere + vcenter passwords

    Posted Mar 02, 2019 04:15 PM

    Hi everyone,

    could use a little help here. I'm working in a new environment and we just had a blackout. The passwords and ip addresses are on a network drive which I can't access as the domain controllers are offline so I can't access the vcenter or vsphere to boot the virtual machines.

    Whan can I do??

    Thanks in advance! I'm in quite deep

    Luke



  • 2.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 02, 2019 05:33 PM

    Hello Luke,

    Are the DCs VMs or physical? Either way, getting them up so you can access everything else seems like the logical first step - if they DCs are VMs do you know what hosts they were registered on? You will require at least root credentials for that/a host to access either the Host Client or SSH to power on the VMs.

    Bob



  • 3.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 02, 2019 08:51 PM

    Hi Bob,

    unfortunately the DCs are VMs, which is why none of the users can connect with their credentials. None of the PCs are getting IP addresses so naturally the DHCP is on one of those virtual DCs. I don't know the vcenter nor the ESX root passwords. Everything here was extremely well planned for disaster events - all IP addresses and credentials are stored on the network which I naturally can't access. I do know the ESX ip addresses though.

    You have any ideas?

    Cheers,

    Luke



  • 4.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 02, 2019 09:02 PM

    Hello Luke,

    "I don't know the vcenter nor the ESX root passwords."

    This is the major hurdle here - if you had these it would just be a case of Host Client/SSH and powering stuff up - does anyone else in your organisation have these and/or might they be stored somewhere you can access?

    If this is not possible then the only feasible way to change the root password of an ESXi host is to re-install ESXi - if you can re-install a host and configure access to the required datastores then you can register and power on the VMs required to access everything else.

    "Everything here was extremely well planned for disaster events"

    I wouldn't really be saying that at this point as you appear to be locked out of everything :smileyconfused:

    Bob



  • 5.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 02, 2019 09:14 PM

    Hello Bob,

    the claim that of being very well prepared for disaster was a sarcasm, imagine my shock.

    Just read VMware Knowledge Base  it's supposed to be possible to reset the ESX password but haven't ever done this - is it a safe procedure?

    thanks,

    L



  • 6.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 02, 2019 09:22 PM

    I imagine you are using a fairly recent version of ESXi, v6? From your linked KB:

    ESXi 3.5, ESXi 4.x, ESXi 5.x and ESXi 6.x

    Reinstalling the ESXi host is the only supported way to reset a password on ESXi.

    I would think doing this without proper access to the network resources required would be very difficult. I think exhausting all avenues to finding someone with the required passwords would be the best approach at the moment.



  • 7.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 02, 2019 09:26 PM

    Oh... damn. Missed that part.

    But yes, it's the ESXi 6.5.0. Bad news



  • 8.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 03, 2019 12:54 AM

    Hello Luke,


    Explore every angle while trying to work out whom/where root passwords may reside - even just one ESXi root with the necessary datastores attached should be sufficient. If not then start working out what you need to be able to re-install a host (or install/use a spare one you have on hand) and connect it to the necessary storage e.g. are these iSCSI or FC which will require zoning or NFS which will require permissions. You mentioned "- all IP addresses and credentials are stored on the network which I naturally can't access"  - Do you mean that everything is stored somewhere you cannot access over the network (and thus inaccessible with no network)? Or is this stored on a site that you can physically access?

    Bob



  • 9.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 03, 2019 10:28 AM

    all IP addresses and credentials are stored on the network

    Just a thought. Are you able to access the backup? Maybe you can restore the documents with the credentials from there!?

    André



  • 10.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 03, 2019 10:59 AM

    Hi André,

    not sure how to be exact. Network resourceaccess is managed by AD/group policy rules and considering that the DCs are all offline I'm not sure how to be exact.

    Another thing that's bugging me is reinstalling the EXSi. Normally for reinstallation I'd use vsphere - insert the ESX OS image into the virtual drive and then upon reboot I'd be able to install it. But considering that I can't access vsphere or anything else for that matter



  • 11.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 03, 2019 11:17 AM

    K guys,

    I have the ESX root password!

    Now, I can't ping the ESX so I could try to connect via vsphere. I tried giving my PC an IP address from the ESX's subnet but won't go. What can I do?

    cheers!



  • 12.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 03, 2019 11:40 AM

    I tried giving my PC an IP address from the ESX's subnet but won't go. What can I do?

    Can you confirm that your PC is connected to a physical port in the proper VLAN?

    Are you able to ping out (e.g. the gateway address) from the host's DCUI (console)?

    André



  • 13.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 03, 2019 11:42 AM

    I'm thinking about putting a laptop on the ESX's subnet and plug it directly into the back of the ESX to figure out which one is the management port but all of the ports are taken. Two ports are on fiber and two on patch



  • 14.  RE: blackout + lost vsphere + vcenter passwords
    Best Answer

    Posted Mar 03, 2019 12:13 PM

    ... and plug it directly into the back of the ESX ...

    you may use the DCUI to find out the correct port(s). However, a direct connection may be tricky, especially if the ESXi host's Management network uses VLAN tagging, and if it has more that one vmnic. Anyway, assuming that the physical network (switches, routers, etc.) are up, and working correctly, and if the ESXi host can reach/ping its default gateway, you should be able connect to it over the network.

    Another option is to enable ESXi shell access and power on the important systems (e.g. your DC/DNS/DHCP server) from the command line.

    André



  • 15.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 03, 2019 12:54 PM

    DCUI reached, I'll try to fire up the VMs now.

    thanks André I really appreciate your help!



  • 16.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 03, 2019 07:42 PM

    You know how to get to the console from the DCUI?

    If not this might help : Using ESXi Shell in ESXi 5.x and 6.x (2004746)

    Once in there:

    vim-cmd vmsvc/getallvms to list all VMs registered to the host.

    You need the VMID from this list of any VMs you want to start.

    vim-cmd vmsvc/power.on {VMID}

    To power on a VM.

    With any luck you'll find the host with one of your DCs and that will allow you get everything back up more easily.



  • 17.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 04, 2019 05:02 AM

    Wow.   This is a text book example of why one should never have anything that ESXi is dependent upon running as a virtual machine under ESXi.  



  • 18.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 04, 2019 06:36 AM

    Let me correct that for you...

    "This is a text book example of why one should never have anything that ESXi is dependent upon running as a virtual machine under ESXi without a clearly defined process for it running when things go wrong."

    :smileywink:



  • 19.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 04, 2019 11:07 AM

    I couldn't agree more with you guys.

    I'm going to think about setting the core switch as a DHCP server for certain VLANs - in case if it happens again everything should be reachable without major complications.



  • 20.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 04, 2019 11:05 AM

    Hi Stephen,

    yea I managed to find those commands. This is exactly what I've used.

    For now as a temporary solution I've set the DC VMs to start automatically.

    Cheers,

    Luka



  • 21.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 04, 2019 12:19 PM

    So these are standalone hosts then, not clustered?



  • 22.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 04, 2019 12:28 PM

    Yes they're standalone, no HA here.

    But I'm not really an expert in this topic, the IT system is just one of my many duties here. What do you propose as an optimal solution? There are 2 ESXi hosts here, for HA 3 are recommended and I'm not sure yet how well this additional cost would be accepted but nevertheless I'd like to find a more viable solution for the current hardware.



  • 23.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 04, 2019 12:47 PM

    If your key services are resilient through other strategies, like Windows Server Failover Clustering (WSFC), then there probably isn't much point in going for HA at the moment until you can bring another host into the equation.



  • 24.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 10, 2019 08:56 PM

    Now I'm by far no expert in this field but - would you prefer WSFC over vmware fault tolerance? Is it possible to engage with any of these on a running system, i.e. without having to lose any data?

    cheers



  • 25.  RE: blackout + lost vsphere + vcenter passwords

    Posted Mar 11, 2019 11:16 AM

    Often you have no choice. If you are installing and relying on a 3rd party solution that is built on WSFC, then often that is what you will use. Building these into a vSphere environment is pretty well understood nowadays. Fault Tolerance was considered for some portions of our system, but it is very costly in terms of resource needs, e.g. dedicated 10gbps network for FT network traffic. Also there are limits on how many FT VMs you can have. We have dozens of WSFC components, it would not be practical to run them all as FT VMs.