USB Image Tool for Windows easily backs up and restores your complete VMware ESXi hypervisor on USB or SD drives, a simple and free way to clone for peace of mind before upgrading

I created the video below that features a very detailed walk-through of an imaging process that seems to work quite well for me. I tested this heavily when tinkering with various vSphere 6.5 and 6.7 versions in my home lab. While the use of such an tool isn't suited for production server use because it's completely unsupported by VMware, I have found it to be invaluable for lab testing purposes, giving me complete peace of mind that I can avoid long troubleshooting sessions by merely restoring from a complete backup image, much like I do with my Windows and Linux PCs and VMs.

Why?

It only takes a few minutes to install ESXi from scratch, but it's the configuration afterward that takes longer, including networking. You can back up the entire configuration of your ESXi server using VMware's official way in KB 2042141, but that doesn't grab your ESXi boot files and any custom VIBs. What about a more thorough way, that handles both the files and the configuration, and is easy to use?

Some scripted configuration backup methods assume a full vSphere, with vCenter or VCSA installed and configured. Not every home lab has that, and some are just a standalone ESXi hosts. This article has you covered.

Let me think this through with you. How about a way to get peace-of-mind, knowing for darn sure that you can roll back an upgrade gone wrong? The basic steps of what's detailed below involve creating a backup image of your known-good USB (or SD) drive where your working ESXi lives, label it, and set it aside. Next, restore from that backup to another USB drive, and label it. Now boot it up on the same server that was imaged. It works! Now upgrade it. If that upgrade to a later ESXi point release or patch level doesn't work out well for you, it's just your copy of ESXi that you've scrogged. No worries, you still have the original USB drive, don't you? Even if you lost the physical original USB "thumb" drive, you still have the image on your Windows system's drive! Get it? Now that's peace of mind.

Warning

Using the cloned image on a different system than it came from will likely lead to networking strangeness, even IP conflicts and/or packet loss. Thus, the importance of good labeling, to indicate the exact system you took the backup from. Also, if the ESXi host you're thinking of cloning is a member of a cluster, this cloning technique in this article should work, but I have not fully tested this. The host and the cluster shouldn't notice any change in the "personality" of the booted server, with all the same drivers and networking and such intact, since it's an exact drive image.

Hardware Prerequisites

  1. Windows system with 1 available USB port, USB 3.0 preferred.
    If you're using SD, a built-in SD reader, or a USB based SD reader. Substitute the word SD for all instances of USB in the instructions below.
  2. VMware ESXi installed on an SD or USB drive.
    Any version of ESXi is fine, even the free version, so there's no assumption that you have vCenter/VCSA running
    nice-little-usb-flash-drive-choice-for-that-esxi-in-your-home-lab
  3. Second USB drive of the same or greater capacity.
    For example, the compact and popular SanDisk Ultra Fit 32GB USB 3.0 Flash Drive SDCZ43.

Software Prerequisites

  1. download USB Image Tool, free
  2. if the target USB flash drive already has ESXi on it, download [Rufus] for free, to make clean-up very easy.

Step-by-step backup and restore process

  1. make note of your ESXi Build Number from ESXi client or vSphere Client, and use a pencil to write it on a blank or erased label tag, including the word SOURCE, and write identical information on a second blank or erased label tag, but instead of SOURCE, write TARGET
  2. shut down your ESXi host you'd like to back up, such as right before doing an easy upgrade to 6.7
    2018-05-07_8-59-07
    Click the image above to donate the author of the USB Image Tool.
  3. attach the label to USB drive on the system you just shut down
  4. Move the SOURCE to your Windows system
  5. Launch USB Image Tool, and following along with the video below.
    You may want to jump to the exact spot where I launch USB Image tool.
  6. First you'll create an image of your SOURCE drive that gets saved to your internal drive.
  7. Then you'll restore from that image to your TARGET drive.
  8. Free-will donate to the author of USB Image Tool. I happily gave him €50 EUR, about $62 USD, because this dude is talented and certainly deserves some support. There is nothing out there quite like what he has created.

Video

Variety pack of failures with all the other Windows tools I tried

In alphabetical order:

  1. AOMEI Backupper Standard

  2. EaseUS free backup software

  3. ODIN - Free Disk Imager
    Exception of type Internal Exception thrown, cause: The partition format of this drive is not support (only MBR format, no EFI)

  4. SD Imager
    This tool is used for writing drive images to USB sticks or SD cards

  5. USB Image Tool
    Works great, but I did get this error once:

    USB-Image-Tool-error-when-ESXi-is-already-on-USB-drive-youre-about-to-overwrite--TinkerTry

    Error!
    Could not write to the USB device (Code: 5)!
    Please close all open explorer windows for this device.
    Access is denied.
    I believe I mention this during the video, along with the work-around.

  6. WinImage
    Failed, but I don't recall the error.

How about Linux?

If you're running Linux or willing to boot from a live Linux distro, you have many choices including CloneZilla, which is essentially a dd copy. Virtual Hobbit and Andreas Peetz apparently had good luck with it:

Reader feedback is invaluable for an article like this. If you find something lacking or wrong in my instructions, please let me know by dropping a comment below, which really helps everybody out, and I can even correct the article where needed. Thank you!


See also at TinkerTry

label-your-usb-drives

nice-little-usb-flash-drive-choice-for-that-esxi-in-your-home-lab

rufus-takes-2-minutes-to-create-a-bootable-usb-flash-drive-for-esxi-installation

rufus-lets-you-quickly-and-easily-reformat-an-esxi-usb-flash-drive-back-to-full-capacity

See also

how-to-clone-esxi-5


via Latest imported feed items on VMware Blogs https://ift.tt/2ycRR5B
RSS Feed

If New feed item from https://blogs.vmware.com/feed, then send me an email at kr

IFTTT

Comments

Popular posts from this blog

Evernote cuts staff as user growth stalls

The best air conditioner

We won't see a 'universal' vape oil cartridge anytime soon