Solved

Backup virtual machine files

Posted on 2008-10-31
10
12,181 Views
Last Modified: 2011-10-19
I am new to VMware so I may be missing the obvious. I installed ESXi free version. I can make snapshots and restore them but I want to backup the virtual machine to an external drive for disaster recovery.  I can't see how to do that.

I assume it would be very simple to restore those files to a different virtual machine if the original one crashed?

How do I backup the  virtual machine over a network or to an attached USB drive?
0
Comment
Question by:ajdratch
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 18

Expert Comment

by:sk_raja_raja
ID: 22854371
1)On Vmware server you can take snapshots of the machines and restore it when necessary, you can also stop the machine (without turning it off) copy the files of the machine and resume the machine again.
Best option is to copy the vmdk files manually to another location

2)Please refer the attached guide, its simple

3)http://www.acronis.com/homecomputing/support/kb/articles/932/
Backing Up a Virtual Machine with Acronis True Image Echo and VMware Consolidated Backup

4)http://www.experts-exchange.com/Storage/Storage_Technology/Q_23599523.html
vi3-301-201-vm-backup.pdf
VMMACHINE-BACKUP-GUIDE.pdf
0
 
LVL 18

Expert Comment

by:sk_raja_raja
ID: 22854383
5)The easiest way is to turn off any virtual os you want to backup, log out and turn the virtual machine off. Stop the vmware services, copy the files to your backup media. Start vmware again, then the virtual os and log on.

If you ever have to restore, stop vmware, backup the os you are going to replace (just in case) and copy the backed up files in

6)http://communities.vmware.com/message/875417
http://ubuntuforums.org/showthread.php?t=486982
0
 
LVL 8

Expert Comment

by:aldanch
ID: 22855287
SUGGESTION #1 - VMWARE CONVERTER
Why not use VMware Converter to create a backup of your VMs? You can do a hot or cold clone of your VMs to a network storage.

SUGGESTION #2 - MANUAL BACKUP
Alternatively, you can download the folders to your usb drive. Access your ESXi server with the VI client.

Click the arrow next to the Inventory icon and choose Datastores
Select the datastore that has your target VM and click Browse Datastore...
When the data store window appears, highlight and right click on the folder of your target VM and select Download... on the context menu
Select the destination and click OK
The download begins...

SUGGESTION #3 IMAGING
Another method would be to create an image of your VMs using Symantec BackupExec System Recovery or Acronis True Image Echo for Windows, or Paragon Drive Backup. Simply create another VM that is similar to your VM and restore.
0
 

Author Comment

by:ajdratch
ID: 22856329
I don't see where I can copy or access the files that make up the virtual machine. According to aldanch, I need to "Click the arrow next to the Inventory icon and choose Datastores."  The only thing I see next to "Inventory" icon is another icon "Administration." I don't see Datastores any where else in the application.

It seems to me that backing up these files is a better backup than imaging would be. Is there a reason I would rather create an image? This virtual machine can be taken down at night and on weekends
0
 
LVL 5

Expert Comment

by:giovannicoa
ID: 22859348
Hi,

unfortunately at the moment the most popular disaster recovery software for VMware, VizionCore and Veem do not support ESXi because it does't have the service console.

My personal opinion is that for ESXi the better choice is to use NFS for the datastores. In this case you can do a backup of VM files because these resides on another server that export their file system in NFS.

For example you can use a server with Novell SLES installed as NFS server and you can script your backup. You can also use a NAS with NFS support.

Hope this can help you,
Giovanni Coa
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 

Author Comment

by:ajdratch
ID: 22860775
Is there anyway I can backup he datastore with what I have? It seems that this should be a simple task but I don't seem to have that feature in the VMware Infrastructure Client. I just want to copy the files to a NAS device, another server or even a USB drive. I would do this once a month along with daily backups of the data.
0
 
LVL 5

Expert Comment

by:giovannicoa
ID: 22861017
Hi,
VMware does't not support USB devices well directly connected to the host.
VI client does't not support a backup or restore procedure built-in.

You can use the VMware converter to export your virtual machines, but I'm not sure this support the ESXi version well as the ESX. For me, sometimes it fail to restore an exported virtual machine.

If you want to do that at no cost, you need to consider your virtual machines like a physical and you have the only choice to use a free imaging software like gost4u or something like that to do a disaster recovery.

Instead of that you can buy ESX server instead of ESXi and you can use free tools to do backup of your virtual machines directly from the command line.

If you are able to do that and you have many time, you can think to :
a) Install remote CLI on a dedicated physical or virtual machine
b) Schedule remote command to take a snapshot of virtual machine you want to disaster recovery
c) Schedule command to export these virtual machine disks with "vmkfstools"
d) Now you can safety download the exported disks using VI client

Take care of how much time you can spend instead of buying a product that do the work better and quickly.

Hope this can help you,
Giovanni Coa
0
 
LVL 8

Accepted Solution

by:
aldanch earned 500 total points
ID: 22862262
ajdratch,

Make sure your VM is powered down prior to doing this

Try clicking on the ESX server, then clicking on the Summary tab. It should display your datastore in the Resources section. Right-click the datastore that houses your VMs and click Browse Datastore... in the context menu.

The Datastore Browser window appears. On the right pane, highlight your VM's folder, right click and select Download... on the context menu. Choose the location to download your VMs and click OK to begin the download process.

Note: You may select multiple folders to download at once if you so desire.

This isn't the most streamline way of backing up your VMs, but because you're using the free version of ESXi, you've opted out of many of the backup strategies available for Virtual Infrastructure. The one I suggested is one way to backup your VMs with ESXi Free version. RemoteCLI would also work, and provides a better way to automate your backups. It just requires a little more attention and time to get it working the way you want it to.
0
 
LVL 8

Expert Comment

by:aldanch
ID: 22862271
I need to mention that the instructions above require that you use the VI client to access your ESX server.

Make sure your external drive is connected to workstation that you're running the VI client.

I hope you have Gigabit connectivity between your workstation and ESXi server.
0
 

Author Closing Comment

by:ajdratch
ID: 31512212
Thanks, that is what I was looking for.  I am going to look into the other VM options that will make this easier.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now