VMware Cloud Community
tjw82
Contributor
Contributor
Jump to solution

Reboot an esx server a second time during an initial install?

I need to reboot my ESX host a second time during the intial setup. I have everything scripted, but when I put in a second reboot command the script goes into a continuous loop. What command would I use to do this?

Thanks,

tjw82

Reply
0 Kudos
1 Solution

Accepted Solutions
depping
Leadership
Leadership
Jump to solution

What you should do is create 2 scripts that you run from rc.local

At the end of the 1st script let it create a reference to the second script in rc.local and let it reboot.

At the end of script 2 copy the original rc.local back.



Duncan

Blogging: http://www.yellow-bricks.com

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

Reply
0 Kudos
4 Replies
Jwoods
Expert
Expert
Jump to solution

Where are you adding the 2nd reboot? In /etc/rc.d/rc.local?

depping
Leadership
Leadership
Jump to solution

What you should do is create 2 scripts that you run from rc.local

At the end of the 1st script let it create a reference to the second script in rc.local and let it reboot.

At the end of script 2 copy the original rc.local back.



Duncan

Blogging: http://www.yellow-bricks.com

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos
tjw82
Contributor
Contributor
Jump to solution

Can you give me an example?

Thanks,

tjw82

Reply
0 Kudos
tjw82
Contributor
Contributor
Jump to solution

I am doing this at the end of the script. It sounds like I need to add another script

Reply
0 Kudos