We help IT Professionals succeed at work.

use a script to shutdown virtual machine and copy

Medium Priority
1,009 Views
Last Modified: 2012-06-21
I would like to schedule a script that can automatically shutdown a virtual machine, then copy those vm files to a storage location.
Comment
Watch Question

za_mkhIT Manager

Commented:
What are you using to host your VM's. Vmware ESX or ESXi or VMWare Server?

Author

Commented:
Vmware ESXi
I forgot to mention after copying the files I will want the script to start the VM as well.
za_mkhIT Manager

Commented:
As I may not answer quick enought, plese find this link ... hopefully it will help you achieve what you want ...
http://www.petri.co.il/images/virtual_script_startup_shutdown_vmware_servers_01.jpg
 

Author

Commented:
I have the VMWare CLI installed so I will see if I can get this to work on my own but if anyone has the documentation put together already that would be great.
za_mkhIT Manager

Commented:
If your ESXi is unlicensed i.e. Free Edition, then the best way and only way is to use a freeware tool like VEEAMs Fast SCP which will allow you to create a scheduled file transfer.
http://www.veeam.com/esx-fastscp.html
 
za_mkhIT Manager

Commented:
This thread will also help you with the specifics if you don't want to use Veeam's solution ...
http://communities.vmware.com/thread/161168
 

Author

Commented:
Veeam FactSCP only seems to allow connections to ESX servers. I have gone into our esxi server and allowed the SSH port 22 and can connect via PUTTY.

Author

Commented:
I found the BETA that now supports ESXi. I will try that.
IT Manager
Commented:
Oh, I can forget thing sometimes .. I should go and sleep ... -------------------

There is a Veeam FastSCP 3.0 for ESX/ESXi Public Beta that has been officially launched!

http://forum.veeam.com/forums/viewtopic.php?t=596
I will be trying it out next week once I am back at the office
--------------
 

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
I am testing it now.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.