Monday, November 01, 2010

My Virtual Machine Keeps Shutting Down.

I recently p2v - ed a Server 2003 box that had been on a Dell PowerEdge 2950 attached to an APC UPS. When I booted up the virtual machine it just shuts down again.

What's happening is that because the APC Powerchute service can't see the UPS, it thinks the power is about to fails, so shuts the server down.

You need to boot into safe mode and uninstall the APC Powerchute software. To get into safe mode you need to edit the settings of the VM so that it will go directly into the BIOS when it is Powered On. When you power it on and the BIOS shows on the screen, press F10 to Save and Close the BIOS screen. Hover your finger over the F8 key and as soon as you press Enter to confirm the exit from the BIOS, rapidly press the F8 key.

Select the top option for "Safe Mode" and then Select your OS. Once you are booted up, you will need the Local administrator password for the server. Then just uninstall the APC Powerchute Program.

All done.

Friday, January 15, 2010

Searching within config files

Need to search or find some text within config files in directories and subdirectories?

user@computer$ grep -e 'DocumentRoot' -f $(find .)