VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
14 Replies Last post: Mar 31, 2009 5:27 AM by Texiwill  

Backup virtual machine on esx 3.5. Is it possibible? posted: Mar 27, 2009 6:22 AM

Click to view simo79's profile Enthusiast 99 posts since
Jul 16, 2008

I have a "new" question...

Is it possibile so save the whole content of the virtual machines installed on a esx server, on a tape or in a disk?

Thanks

Click to view Anton V Zhbankov's profile Champion 2,871 posts since
May 26, 2008
Yes, it is possible and there is "VMware Consolidated Backup" solution aka VCB. Also there are lot of tools intended for virtual machines backup. For ex. Veeam Backup, Vizioncore vRanger.

---
VMware vExpert '2009
http://blog.vadmin.ru
Click to view vmmeup's profile Expert 454 posts since
May 3, 2006
It is also possible to acheive this by way of scripting. One way would be to mount an NFS share to your esx hosts from a NAS or other device and write a script that snapshots a vm, then copies the vmdks and other relevant files to a folder on the NFS share and then commits the snapshot. Depending on your NAS you could also have the same NFS share mounted to a linux server or present to a windows server as CIFS and backup to tape or disk using your backup agent.


Sid Smith-----
VCP, VTSP, CCNA, CCA(Xen Server), MCTS Hyper-V & SCVMM08
http://www.dailyhypervisor.com

  • Don't forget to award points for correct and helpful answers.;-)
Click to view Anton V Zhbankov's profile Champion 2,871 posts since
May 26, 2008
Yes, VCB must be installed on Windows Server. But physical server is required in one case only: if you want LAN free fibre channel backup. In this case VCB will work directly with SAN.
All other cases, including network mode for FC can be implemented on virtual machine.

---
VMware vExpert '2009
http://blog.vadmin.ru
Click to view Anton V Zhbankov's profile Champion 2,871 posts since
May 26, 2008
Take a look at VI Toolkit (Powershell)

---
VMware vExpert '2009
http://blog.vadmin.ru
Click to view vmmeup's profile Expert 454 posts since
May 3, 2006
Depends on what language you want to use. You could do it from the Service Console using bash or perl, you can do it remotely from the remote CLI or a windows machine using the VI Toolkit for windows.

VI Toolkit for Windows powershell script to snapshot VM:


connect-viserver -server <server> -user <user> -password <pwd> New-Snapshot -Name <snapshot_name> -VM <vm_name>

connect-viserver -server <server> -user <user> -password <pwd> remove-Snapshot -snapshot <snapshot_name>

Perl Script:

Here is a thread where someone wrote a perl script to do backups http://communities

Service Console using vimsh

create

vmware-cmd <vmx> createsnapshot <snapshotName>

revert

vmware-cmd <vmx> revertsnapshot

Sid Smith



VCP, VTSP, CCNA, CCA(Xen Server), MCTS Hyper-V & SCVMM08
http://www.dailyhypervisor.com

  • Don't forget to award points for correct and helpful answers. http://communities.vmware.com/images/emoticons/wink.gif
Click to view petedr's profile Master 1,408 posts since
Mar 18, 2006

If you want take a look at our product, esXpress, it doesn't require VCB. It is though a backup to disk solution, not to tape.


Pete@esXpress

www.phdvirtual.com, makers of esXpress

Click to view Anton V Zhbankov's profile Champion 2,871 posts since
May 26, 2008
simo79, New-snapshot should be a separate command.

---
VMware vExpert '2009
http://blog.vadmin.ru
Click to view dconvery's profile Virtuoso 1,885 posts since
May 10, 2006

Take a look at my VCB "Proven Practice" Guide on VI:OPS -> http://viops.vmware.com/home/docs/DOC-1392

Dave Convery
VMware vExpert 2009
http://www.dailyhypervisor.com
http://communities.vmware.com/servlet/JiveServlet/download/38-20623/vExpert_logo_100x57.jpg
Careful. We don't want to learn from this.
Bill Watterson, "Calvin and Hobbes"

Click to view lamw's profile Champion 2,803 posts since
Nov 27, 2007
You can also use the following: http://communities.vmware.com/docs/DOC-8760

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
http://twitter.com/lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

Click to view Texiwill's profile Guru 10,205 posts since
Jan 13, 2004
Hello,

There are a number of options available for backing up from ESX.

Use a VCB Proxy , vRanger, or Veeam backup server
Use esxPress, VISBU, vmbk.pl, vcbMounter direct from the service console of ESX

There are many options available to you for this.


Best regards,
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs -- Top Virtualization Security Links -- Virtualization Security Round Table Podcast

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities