Showing posts with label VMware. Show all posts
Showing posts with label VMware. Show all posts

Sunday, December 30, 2012

Moving Virtual Machines in ESXi from older hardware to new server.

If you have outgrown you current ESXi hardware and need to move to another physical machine and you don’t have vSphere you can still easily move all your VMs to the new server. Without additional software costs.

First install the ESXi Host software on the machine and configure it for access via the management console.

Take note of the IP address and credentials you used for you new installation.

Then login to your existing VMware installation via your management computer/console. And you can then do one of the following.

Simple way?

Use the outstanding free product(s) by VEEAM!
Veeam Backup Free Edition. The free version that will let you backup, replicate/move and restore entire machines from one ESX server to another on the same subnet. The free version limits the backup/migrate tasks to one machine at a time but it works! If you have a VMware environment I highly recommend their product(s) for backup and disaster recovery. You can automate just about everything you need for backing up and restoration. Check out more here http://www.veeam.com .

Older not so quick but still simple old fashioned way.

Open the management console. Connect to the original server/Host. Navigate to the Server (vCenter) containing the VMs you wish to move.
Commit any snapshots in the VM you are going to move.
Power off the VM.
Click the Configuration tab.
Click Storage.
Open/Browser to the Datastore where the VMs are located and find the folder containing the entire Virtual Machine (the one with the disks (vmdk), .vmx file, nvram, .log files etc.).
Copy that entire machine to a drive (a folder on the management station or other attached/network available storage)

Connect to the new host via the management console.
Open the Datastore where you wish to place your new machine(s)
Upload (import) the entire folder - containing the Virtual Machine, you previously copied/downloaded.
Then open the that new folder and right-click on the .vmx file and select 'Add to Inventory'.
It will then show up in the list of machines in your selected Server/Cluster. Then power off all the old machines and shut down that Host.

When you power on the machines on the new Host you will be walked through a process that will ask you if the machine was copied or cloned. Since you are moving the VM choose that -  move and NOT clone or it will generate a new machine ID/SID and jack up the VMs usability.

Do that for any and all that you moved and test connectivity from workstations.

I’ve done this with virtualized Domain Controllers, SQL servers and even an Exchange server!

That’s it.

Peace out.

Sunday, July 24, 2011

Backups, system failures and peace of mind

Another week in the trenches. I had a primary server at our organization have a major failure. The SAS controller (which provides access to SAS type HDDs) died OR the motherboard to the server itself has an issue. Either way without another ‘like’ system that I can put the SAS card into to see if the issues is just the card or the motherboard I cannot access my drives – and they too may be very corrupted. The only machine I have capable of putting the card into is in production. And the cost of a replacement Dell Perc5i SAS card is nearly $200.00 US and could take days to get here. Plus I needed to have this system back up and running very quickly – the server in question runs all or our company financial, shipping and reporting software applications!

Since I have all my ‘data’ backed up to a server drive every night I was secure in the knowledge that we at least had the financial databases and ‘files’ available. But how to get a system back into production? Disk Imaging to the rescue!! I had a fairly recent full system image, created with my favorite backup software – Acronis, available. Yay! Just need a place to restore it to.

Since my organization now has a VMware ESXi/vSphere SAN and cluster running I was easily able to create/import a new ‘Virtual Machine’ from the Acronis disk image very quickly and then just copy over the backed up data files from the night/early morning before. WORKED LIKE A CHARM! If I’d had an available server (Hardware wise) I could also have restored that image to it too.

I’m telling this to you to remind you - I believe in Images(Clones) for my backups, alone with periodic ‘file backups’. That way I’m protected against full drive failures/loses AND stupidity – accidentally erasing or overwriting files. :)
[Imaging or cloning is the procedure by which you create a backup that is identical to a bootable system either to another internal or external drive. This is the ultimate backup! Should your drive fail you can just ‘pop in’ your cloned drive or ‘restore’ that clone to a new drive and your are up and running.]

If you are not regularly creating full image backups you WILL be sorry! I have written numerous articles about cloning and back up.

PLEASE read here if you any kind of concern for you data.

For Mac images and cloning go here.

So of course this weekend I created two new images on separate drives for my home system(s). I can’t tell you the peace of mind you will get from knowing that the worst that could happen to your system is that you might lose a couple of days or a weeks worth of information. If your drive gets corrupted or fails or you get trashed by some virus, you could be back up and running within a very short period of time! No re-installing your Operating System and programs and ‘trying’ to find you data files. Just restore the image and BAM, you up!

What prompted me to start on this rant is that Apple has finally acknowledged it is having some major issues with some of the hard drives in some of their newer systems they have been selling. Looks like some of the drives just ‘fail’. OUCH! You can read about that here.

And although you can have your drive replaced – YOU WILL LOSE YOUR DATA! The Apple folk and/or kids the the ‘Genius’ bar will NOT re-install your system software or clone your drive for you!! Unless you have an image to restore you will have to re-install you System and applications. And unless you had at least some kind of backup to another drive (Time Machine type) your data (read pictures and music!) will be gone!

So folks, backup, backup and then backup again.

The cost of a couple of extra external drives and a little program setup is minuscule to the cost of losing you ‘digital life’. Right now Acronis has a special – only $29.00 US for their home product!! With Apple’s you can even get a way with out purchasing any software!

Be safe, be secure and gain some peace of mind.