VMware Cloud Community
rajOnVMware
Contributor
Contributor

Vm tool/command for playing with snapshot of VM guest machine.

Hi

I have insatlled EXS 3.5.

And I install three vm guest machine on it : WinXP,SLES10(From Novell),SLED10

I took snap shot for each guest with essentail requirement on it and started working on it.

For validating builds I have to installed them on SLES10 server and test it.

And whenever new build will come I am going back with Base snap and again start validate to build.

Like

SNAP1(Base)----->My Validation/testing will executed.

When new build come again I am going to SNAP1

And this all thing of revert backing to SNAP1, I am doing from GUI of VMware console.

I automated the build download and installation and execution of P0 test cases.

But for going to Base SNAP position I have do it manually from GUI.

So my question: *Is there any vm tools or commads , so that I can take snapshots/revert back to old/new snaps from command line terminal*

Please help me.

Thanks In Advance.

Reply
0 Kudos
9 Replies
ShanVMLand
Expert
Expert

You can try with vmware-cmd command. Refer this link http://www.esxguide.com/esx/content/view/2/25/

Shan






If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
Reply
0 Kudos
lamw
Community Manager
Community Manager

Yes, you can use the vSphere SDK for Perl Utility snapshotmanager.pl to perform any snapshot operations.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos
AndreTheGiant
Immortal
Immortal

As written before vmware-cmd could be useful to do take snapshot using script.

But be careful with snaps... do not leave them too much on your system or performance and free space will decrease.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
Reply
0 Kudos
rajOnVMware
Contributor
Contributor

Since I upgrade to EXSi(ESX4.0)

I am not able to find vmware-cmd command here.Please help me how can I proceed.

Reply
0 Kudos
lamw
Community Manager
Community Manager

There is no vmware-cmd on ESXi, there's not even a Service Console for ESXi as there is with classic ESX. You'll need to look at using the vCLI if you want to use vmware-cmd and other familiar commands such as esxcfg-* which now utilizes the vSphere API to manage the host. Remember this will only work if you have a licensed version of ESXi and will NOT work if you're using the free version, else you can use the vSphere Client to manage your VM snapshots

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

rajOnVMware
Contributor
Contributor

As my question same as first thread and I have installed free version ESXi 4.0.

How can I achive this Task with this.

Please help me.

Reply
0 Kudos
rajOnVMware
Contributor
Contributor

Hi

I have insatlled EXSi 4.0

And I install three vm guest machine on it : WinXP,SLES10(From Novell),SLED10

I took snap shot for each guest with essentail requirement on it and started working on it.

For validating builds I have to installed them on SLES10 server and test it.

And whenever new build will come I am going back with Base snap and again start validate to build.

Like

SNAP1(Base)----->My Validation/testing will executed.

When new build come again I am going to SNAP1

And this all thing of revert backing to SNAP1, I am doing from GUI of VMware console.

I automated the build download and installation and execution of P0 test cases.

But for going to Base SNAP position I have do it manually from GUI.

So my question: *Is there any vm tools or commads , so that I can take snapshots/revert back to old/new snaps from command line terminal*

As I suggested by Cummunity geek tht I can use vCLI.I installed vCLI and try to run following command

vicfg-volume.pl --server 164.99.86.153 --username root --password mypass -h

But it is giving nothing.

My ESXi on 164.99.86.153.

First i want to check that every thing is proper. How can I do that.

Please give me exact cmd. I tried to work acc. to doc but al in vain.

Please help me.....

Reply
0 Kudos
lamw
Community Manager
Community Manager

As mentioned there are no CLI tools to manage the free version of ESXi.

There is an unsupported Busybox console which you can unlock at your own risk which does has a utility called vim-cmd which can be used to manage various configurations on ESXi host including VM operations.

To enable this unsupported shell, please take a look at this link: http://www.vm-help.com/esx/esx3i/ESXi_enable_SSH.php

You'll also want to take a look at this vimsh documentation here on our site: http://engr.ucsb.edu/~duonglt/vmware/#vmware_vimsh and you should be able to find what you're looking for.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos
lamw
Community Manager
Community Manager

This thread will also be of use:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos