I messed up a cronjob on my ESXi system that is now putting it into a boot loop. I am familiar with recovering a Linux system through mounting and editing the files, but I can't figure out how to do that for ESXi. I created the cronjob through a script in /etc/rc.local.. which of the multiple partitions do I have to mount to get that?
-
We know nothing about your ESXi configuration. Can you narrow down the scope of your question?– RamhoundMar 23, 2017 at 16:40
-
Its a simple lab setup, ESXi running on a dell server, hosting two virtual machines. I created a cronjob (editing /etc/rc.local, following this guide jules.fm/Logbook/files/add_cron_job_vmware.html) in ESXi to clear out a configuration file and reboot the system, which was supposed to be once a month but it is running every time at boot. I figured the easiest way is to liveboot in, mount the system and remove my rc.local changes.– jdwiegmanMar 23, 2017 at 16:43
-
The file in question is a configuration file. This article, Editing configuration files in VMware ESXi and ESX (1017022) should answer your question.– RamhoundMar 23, 2017 at 16:43
-
My system reboots as soon as it boots up though.. is there a way to enter a 'recovery' mode that would prevent the rc.local scripts from running?– jdwiegmanMar 23, 2017 at 16:44
-
Modifying the rc.local or local.sh file in ESX/ESXi to execute commands while booting (2043564)– RamhoundMar 23, 2017 at 16:44
Add a comment
|
1 Answer
ESXi stores its malleable etc files (at least on my system) on the 5th partition (sda5), in a file archive file state.tgz. Unpacking that, then editing the appropriate file, repacking and replacing got me working again.