VMware
1 ... 15 16 17 18 19 ... 31 Previous Next 453 Replies Last post: Sep 30, 2009 8:55 AM by cincinnerdi   Go to original post

Re: Free ESXi Backup Solution for Windows

240. Dec 11, 2008 12:28 PM in response to: alusrc
Click to view alusrc's profile Novice 20 posts since
Nov 24, 2008

lamw,

to clarify I mean without the use of the text file.

Thanks!

Re: Free ESXi Backup Solution for Windows

241. Dec 11, 2008 12:38 PM in response to: alusrc
Click to view lamw's profile Champion 2,813 posts since
Nov 27, 2007
Just edit the sections on where it asks for the input file, since the script validates the input file you might be able to get away by just redirecting the "dump all vms" to a file and then just read that back into the script as the input file. I'll leave it to you to adjust the script as you see fit for your environment and you may need to make some changes to the script since I assume that a user could provide bad input, so I try to guard against that and run some checks.

Good luck

Re: Free ESXi Backup Solution for Windows

242. Dec 11, 2008 1:17 PM in response to: polysulfide
Click to view DSTAVERT's profile Virtuoso 2,464 posts since
Nov 30, 2003
pollysulfide

Sincee this is ESXi there is no firewall.

That said I have begun to put the management network on it's own subnet behind a physical firewall. A VPN then connects a management workstation to all the ESXi hosts. It also allows me to use NFS relatively securly.

Re: Free ESXi Backup Solution for Windows

243. Dec 12, 2008 12:44 AM in response to: alusrc
Click to view eugeneb's profile Lurker 3 posts since
Jun 18, 2008
I was trying out ghettoVCB.sh to backup a virtual machine to NFS mounted datastore and got a failure message in script output.

~ # ./ghettoVCB.sh list2

/################ Taking backup snapshot for XP_OA ... ################
Destination disk format: VMFS thick
Cloning disk '/vmfs/volumes/datastore1/XP_OA/XP_OA.vmdk'...
Clone: 100% done.
DiskLib_Check() failed for source disk The system cannot find the file specified (25).
Removing snapshot from XP_OA ...
/#################### Completed backup for XP_OA! ####################

Can anyone help me to understand what this failure is all about?

Re: Free ESXi Backup Solution for Windows

244. Dec 12, 2008 8:58 AM in response to: eugeneb
Click to view lamw's profile Champion 2,813 posts since
Nov 27, 2007
eugeneb,

It looks like it was not able to start the vmkfstools copy on the source "XP_OA.vmdk" file which is the Virtual Machine that you're trying to backup. Can you check to see if "XP_OA.vmdk" is actually made up of multiple sparse VMDK files? Either "cd" to that directory and look or cat out the "XP_OA.vmdk", this is the descriptor file and should show you if it's a full or 2GB sparse files.

Also which mode are using to backup (full or 2gb sparse)? Are you just testing this with one Virtual Machine? There is a "DEVEL_MODE" flag that the top which you can set to "1" and this will just print out the information about your Virtual Machine and not run any type of backups, this just validates that the information it's pulling from the host is correct. Secondly, I would check the NFS datastore, make sure you can write to it and there are no issues.

Update: With some testing, I've found you can go from sparse->full or sparse->sparse without any issues. Are your VMDK's stored in the same datastore as your VM, technically that should not matter since it should provide the full path of the VMDK when it tries to copy. I would probably suggest manually running a vmkfstools copy on this VM and see if you can get it to work. Also if you can provide us with the listings of that directory and cat out the VMDK descriptor file, that may also shed some light.

Re: Free ESXi Backup Solution for Windows

245. Dec 12, 2008 7:45 AM in response to: lamw
Click to view AdamESX's profile Novice 9 posts since
Nov 14, 2008

Has anyone got keys to work between two Esxi servers? I have a linux scripting box which has a private key and I put the public on both esxi boxes and i can connect without a password fine. But in one of my scripts I have a command stating scp esx1... TO esx2... and for this to happen I need keys to be setup between the two Esxi boxes so I don't get prompted for a password. I have hit a wall for the past two days on this and I just can't figure out what I am doing wrong. Has anyone done this before? My main goal is to just copy the vm's on the first esxi box directly to the second esxi box.

Thanks.

Re: Free ESXi Backup Solution for Windows

246. Dec 12, 2008 8:46 AM in response to: AdamESX
Click to view DSTAVERT's profile Virtuoso 2,464 posts since
Nov 30, 2003
You don't make it clear but have you exchanged the public keys between the ESXi boxes? Your authorized_keys files should end up with two keys. One from the scripting server and one from the oposite ESXi host. SCP the .pub file and cat id_rsa.pub >> .ssh/authorized_keys. You will also need to make sure that you specify the private key file to use ( scp -i /.ssh/id_rsa )

Be aware that the .ssh folder will go away if the ESXi host is restarted. The simplest way to restore is to make a copy to your datastore and restore it as part of the startup. Add a line to rc.local.

Re: Free ESXi Backup Solution for Windows

247. Dec 12, 2008 8:21 AM in response to: DSTAVERT
Click to view AdamESX's profile Novice 9 posts since
Nov 14, 2008

Hi,

Yes I have tried doing this and no luck. I am not sure where I might be going wrong. My current setup is two esxi boxes and then just a regular server running centos. I made a keypair on the centos and copied the .pub into the authorized_files on each esxi boxes and it works great. I tried generating keys on each esxi box and then copying the .pub file to each others authorized_keys and no luck.

I know they will be erased after startup so i am going to leave a copy of the .ssh folder on a datastore and during startup each time have it copied back over. I am not sure if I am hitting some sort of limitation or funky problem with the dropbear ssh setup the esxi boxes use.

Thanks for any help!

Re: Free ESXi Backup Solution for Windows

248. Dec 12, 2008 8:49 AM in response to: AdamESX
Click to view DSTAVERT's profile Virtuoso 2,464 posts since
Nov 30, 2003

You need to explicity specify the private key to us. scp -i .ssh/id_rsa

Re: Free ESXi Backup Solution for Windows

249. Dec 12, 2008 8:53 AM in response to: DSTAVERT
Click to view AdamESX's profile Novice 9 posts since
Nov 14, 2008
I think that did the trick. Thank you so much!

Re: Free ESXi Backup Solution for Windows

250. Dec 12, 2008 8:59 AM in response to: ChrisInTexas
Click to view Formatter's profile Hot Shot 230 posts since
Jul 27, 2008

Have a look at trilead infrastructure explorer, www.trilead.com it has some interesting features... Including ESXi backup support FREE and cloning with the purchase of a licence,, However I have found that if you backup a VM you can resotre it anyware ad it isa clone...

Thanks and I hope this helps someone.

Re: Free ESXi Backup Solution for Windows

251. Dec 12, 2008 9:11 AM in response to: Formatter
Click to view Dave.Mishchenko's profile Guru 8,948 posts since
Nov 15, 2005
What sort of performance are you getting with this?

Re: Free ESXi Backup Solution for Windows

252. Dec 12, 2008 9:17 AM in response to: Formatter
Click to view lamw's profile Champion 2,813 posts since
Nov 27, 2007
Looks like there are some limitation with the free solution:

Tasks Free Edition Licensed Edition
Task Scheduler No Yes
Backup from ESX 3i to ESX (SAN or local storage), Linux or FreeBSD No Yes
Backup from ESX 3i to VMX management station Yes Yes


I think folks here are looking for an easy/free solution that allows you to schedule set of backups for either ESX w/SC or ESXi and allowing the backups to go on any storage medium. Looks like Bullet #1 squashes scheduling, and bullet #2 confuses me because it does not say anything about straight ESXi Virtual Machine backups, it just mentions to an ESX (SAN or local storage)??? Are you saying something like what xtravirt has on their XVS ?? Sounds fishy, may not be all that complete/free for what user's are looking for.

Also Bullet #3 says you can backup ESXi Virtual machines to the VMX managment station, so it sounds like you can but it has to go to that utility/system.

If you would like to clarify these points since you may have used it that would be great for the folks that may look at a GUI solution.

Re: Free ESXi Backup Solution for Windows

253. Dec 12, 2008 10:33 AM in response to: DSTAVERT
Click to view polysulfide's profile Expert 286 posts since
Oct 25, 2006
You can also paste the key into your identity file of the user running the script. The exact location varies by distro but it's usually called identity and lives next to your key files ~/.ssh Look in your ssh_config for the exact name it looks for. Also key-based auth requires very specific permissions on the server side or it will fail. starting sshd with -ddd will give you logging verbose enough to debug.

Re: Free ESXi Backup Solution for Windows

254. Dec 12, 2008 10:48 AM in response to: lamw
Click to view Formatter's profile Hot Shot 230 posts since
Jul 27, 2008
In answer to Dave and Lawm

I have looked at what is disabled and what is not however the scheduler does not work ok on the free version and I only have NAS 2 TB and drives in my white box 2 TB that I am using right at his time I have backed up 9 machines and however only get about 5 to 7 MBs transfer .

It is not the quickest. but it does do the job.

I dont know about the san or vmx managment station I have neither. Nas and or a share to the windows client work fine.. I have all gig network.

Ahhh I can think of nothing else right now.. let me know if this is good for you and ill be back in about 1.5 hours to see whats new...

Have a great day.

Oh yes it does the backups hot or cold.

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