• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1309
  • Last Modified:

Auto rollback to baseline snapshot on Vsphere 5

Hello All,

We are currently running vsphere 5 in our SMB.   I am looking for a way to have a demo desktop hosted on one of our servers that our sales staff would use to demo our products.

Basically, I would like to take a snapshot/baseline of this hosted desktop and from there I'm wondering if there is a way to auto-revert from the current state to a specified snapshot either when the user logs of, or the RDP session is lost.

Any advice is appreciated.

Thanks,

Larry
0
TokyoRay
Asked:
TokyoRay
1 Solution
 
savoneCommented:
This link will show you a video on how to do it, right from vmware:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009402
0
 
TokyoRayAuthor Commented:
Sorry Savone,

But I see  nothing there about scripting an auto rollback to a snapshot.  That is the basics about manually working with snapshots.

In my query I did say auto-rollback.    So to be more clear with my question.   I need a way to script an automatic rollback to a target snapshot automatically when a user logs of the virtual desktop.  

Anyone now if this is possible?

Thanks,

Larry
0
 
coolsport00Commented:
I have not seen this, but sure it's possible. But, I don't think you necessarily need snapshots and scripting. What you can do is create your VM and make it exactly like you want it. Then, in the VM's Edit Settings area, change the disk to Independent -> Non-persistent. Then, users can shut down the VM (a restart or logoff doesn't work), the VM will revert back to the state upon which you enabled the VMDK to be Non-persistent. So, it's kinda like 'reverting' to a 'baseline' snapshot. It's an option. If I can find a script for you, I'll post it...if that's what you want and more comfortable with using.

Regards.
~coolsport00
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
TokyoRayAuthor Commented:
Hi Thank you,

That is certainly an option.  My only issue is that it would appear the need to have the end users (sales staff remember :)  )  start up the vmware instance.   They will be RDP'ing into the virtual desktops from around the world.   I just thought a script would be the easiest way to keep it invisible to the end users.  

It seems it might be possible with PowerCLI, I just have to figure it out I suppose.  Just thought someone may of already been down this road.

Thanks again.
0
 
Nagendra Pratap SinghDesktop Applications SpecialistCommented:
You can do all what coolsport told you and create a shortcut with the target

shutdown.exe /s /f

For icon, use C:\Windows\System32\shell32.dll, there is a good red shutdown icon in it. This will shut the machine.

Your sales staff can click on it to refresh the machine.
0
 
TokyoRayAuthor Commented:
Hi,

Putting an icon on the desktop to shutdown doesn't really solve the problem I am afraid.   How would I get the sales staff to startup the client when they need to demo again?  

They access the client via browser RDP.   Again, this needs to be automatic so I think the only way to accomplish is using the scripting I mentioned early.   Oh well, will have to go that route I suppose.

Thanks though.
0
 
TokyoRayAuthor Commented:
Oh well, I guess I'm going to have to find someone familiar with the scripting for vsphere in order to get this working.   Thanks anyways guys.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now