VMware Communities > VMTN > VMware Infrastructure™ > VI: ESX 3.5 > Discussions

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
Reply

Backup virtual machine on esx 3.5. Is it possibible?

Mar 27, 2009 6:22 AM

Click to view simo79's profile Enthusiast simo79 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

Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 6:25 AM
Click to view Anton V Zhbankov's profile Champion Anton V Zhbankov 2,714 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
Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 6:29 AM
in response to: Anton V Zhbankov
Click to view simo79's profile Enthusiast simo79 99 posts since
Jul 16, 2008
If I don't mistake VCB need to be install in a separate windows server, but If I have only one esx server with a tape driver
which solution can I follow?


Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 6:31 AM
Click to view vmmeup's profile Expert vmmeup 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.;-)
Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 6:42 AM
in response to: simo79
Click to view Anton V Zhbankov's profile Champion Anton V Zhbankov 2,714 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
Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 6:49 AM
in response to: vmmeup
Click to view simo79's profile Enthusiast simo79 99 posts since
Jul 16, 2008

<<.. write a script that snapshots a vm...

where can I find a script that take snapshot of my virtual machine?


Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 6:53 AM
in response to: simo79
Click to view Anton V Zhbankov's profile Champion Anton V Zhbankov 2,714 posts since
May 26, 2008
Take a look at VI Toolkit (Powershell)

---
VMware vExpert '2009
http://blog.vadmin.ru
Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 7:12 AM
in response to: simo79
Click to view vmmeup's profile Expert vmmeup 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
Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 8:38 AM
in response to: vmmeup
Click to view simo79's profile Enthusiast simo79 99 posts since
Jul 16, 2008

I don't find the command vmware-cmd

It's the same if I use esxi?


Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 9:26 AM
in response to: simo79
Click to view simo79's profile Enthusiast simo79 99 posts since
Jul 16, 2008

If I try

PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> connect-viserver -server 192.168.0.96 -user root -password 123 New-Snapshot -Name simonesnap -vm 2003

I received this error:

Connect-VIServer : Impossibile trovare un parametro corrispondente al nome 'New-Snapshot'.
In riga:1 car:17 connect-viserver <<<< -server 192.168.0.96 -user root -password 123 New-Snapshot -Name simonesnap -vm 2003

Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 27, 2009 1:35 PM
in response to: simo79
Click to view petedr's profile Master petedr 1,406 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

Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 28, 2009 1:51 AM
in response to: simo79
Click to view Anton V Zhbankov's profile Champion Anton V Zhbankov 2,714 posts since
May 26, 2008
simo79, New-snapshot should be a separate command.

---
VMware vExpert '2009
http://blog.vadmin.ru
Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 28, 2009 5:55 AM
in response to: simo79
Click to view dconvery's profile Virtuoso dconvery 1,865 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"

Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 28, 2009 9:06 AM
Click to view lamw's profile Champion lamw 2,748 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

Reply Re: Backup virtual machine on esx 3.5. Is it possibible? Mar 31, 2009 5:27 AM
in response to: lamw
Click to view Texiwill's profile Guru Texiwill 10,056 posts since
Jan 13, 2004
Moderator
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
Actions