Archive for the ‘vmware’ Category

P2V utilizing Windows Bare Metal Backup Restore

Friday, July 12th, 2013
  •  Utilizing Windows Backup take a Full backup including bare metal backup to a remote network location.
  • Configure a new VMware guest with similar hard drive configuration and space requirements.
  • Mount ISO for respective OS and boot into setup and choose repair this computer
  • Follow wizard to restore system image and choose the network location where you backed up the physical machine earlier
  • After successful restoration attempt to boot system it will likely fail to boot with a BSOD due to controller differences.
  • Boot into to OS setup and choose repair this computer and choose the Command Prompt option and following the remaining steps below based on your configuration. (in our VMware example utilizing the first option.

Highlight HKEY_LOCAL_MACHINE, File>Load Hive> [restored volume]:\Windows\System32\Config\SYSTEM>Open>Key Name = Restored_HKLM>OK

Expand Restored_HKLM\ControlSet001\services and ensure the following are set:

If restored to a (VMWare) VM then ensure intelide>Start = 0 and LSI_SAS>Start = 0; msahci>Start = 3 and pciide>Start = 3
If restoring to a physical machine with native HDD controller then ensure msahci>Start = 0 and pciide>Start = 0; intelide>Start = 3 and LSI_SAS>Start = 3

Highlight Restored_HKLM and then File>Unload Hive.

Close windows and restart.

  • System should boot normally and after login may require additional reboot.
  • You will also want to uninstall any previous unnecessary devices, drivers and software e.g. hardware vendor (HP, Dell IBM) software.A

Credit to this article on resolutions:

Changing the IP address of service console in ESX 3.x

Thursday, May 21st, 2009

If you want to change the IP address of the service console in ESX 3.x you can using a command in the service console. Read on for more.

To change the IP address of the ESX 3.x host, you need to change the configuration of the vswif. By default this is vswif0 and this is assumed in this document. Login to the service console with root permissions, either by using root or doing a su – to get the permissions.
Once in the service console runt the command “esxcfg-vswif -d vswif0“. This command deletes the existing vswif0. Don’t worry if you get a message about nothing to flush. Then you need to run the command to change the ip address, subnet mask and broadcast address. They are also specified in that order when the command is given. An example command is below.
esxcfg-vswif -a vswif0 -p Service\ Console -i -n -b
In this command the -a switch is to add a vswif, the \ in the Service\ Console is deliberate, the -i is the ip address, the -n is the netmask and the -b is the broadcast address.
You now need to change your default gateway, you can do this by editing the network file located at /etc/sysconfig/network. To do this at the command prompt, follow the steps below.
cd /etc/sysconfig
vi network
Then while in vi, go to the location of the default gateway using the arrow keys.
Hit “i” which will perform an insert and change the default gateway to your liking.
Hit the escape key twice to exit insert mode.
type “:wq!” to write (i.e save) and quit.
At this point you can run some commands to restart the vmware management, but I prefer to restart the server and will recommend you do that. Once the server comes up there are a few things that still need to be done for management in virtualcenter.
Open a remote console to your virtualcenter server, do a ping <yourESXhostname> to make sure the ESX host is pingable after the IP change. Make sure you are seeing the new IP address and it is assumed you have already changed that in DNS. If you are seeing the host correctly, open virtualcenter and disconnect then reconnect the host.
Once the host is connected in virtualcenter we need to change a few bits of configuration information, namely the vmkernel ip address, subnet and gateway. This is so we can vmotion correctly. Click on your host and bring up the configuration tab. Select networking and then properties on the vitual switch.
Select your vmkernel and hit the edit button. Change your ip address here for vmotion and subnet mask. You will not be able to change the default gateway until you hit ok and go back in. Once you have selected ok, then hit edit again on the vmkernel. Select the edit button on the default gateway and change the default gateway on the menu that appears. Select ok, ok again and then close.

Please note all the commands in this document should be used without the “”.