VMware Cloud Community
ben_ayling
Contributor
Contributor
Jump to solution

vmware-cmd /vmfs/volumes/storage.... /createsnapshot does not work on vSphere????

vmware-cmd /vmfs/volumes/storage/VM/VM.vmx createsnapshot "name" "description" quiesce memory

This comes up with the error below. *Worked absolutely fine with 3.5*

Traceback (most recent call last):

File "/usr/bin/vmware-cmd", line 88, in ?

main()

File "/usr/bin/vmware-cmd", line 63, in main

operationName, result = CommandProcessor.Process(host, args)

File "/usr/lib/vmware/vmware-cmd/CommandProcessor.py", line 11, in Process

result = operation.DoIt(*processedArgs)

TypeError: DoIt() takes exactly 7 arguments (13 given)

Reply
0 Kudos
1 Solution

Accepted Solutions
marcelo_soares
Champion
Champion
Jump to solution

Change the words "quiesce" and "memory" for 1 or 0 (enable or disable).

Marcelo Soares

VMWare Certified Professional 310/410

Technical Support Engineer

Globant Argentina

Consider awarding points for "helpful" and/or "correct" answers.

Marcelo Soares

View solution in original post

Reply
0 Kudos
4 Replies
marcelo_soares
Champion
Champion
Jump to solution

Change the words "quiesce" and "memory" for 1 or 0 (enable or disable).

Marcelo Soares

VMWare Certified Professional 310/410

Technical Support Engineer

Globant Argentina

Consider awarding points for "helpful" and/or "correct" answers.

Marcelo Soares
Reply
0 Kudos
ben_ayling
Contributor
Contributor
Jump to solution

This is actually the error message when doing the full command as above

Traceback (most recent call last):

File "/usr/bin/vmware-cmd", line 88, in ?

main()

File "/usr/bin/vmware-cmd", line 63, in main

operationName, result = CommandProcessor.Process(host, args)

File "/usr/lib/vmware/vmware-cmd/CommandProcessor.py", line 11, in Process

result = operation.DoIt(*processedArgs)

File "/usr/lib/vmware/vmware-cmd/operations/SnapshotOps.py", line 87, in DoIt

memory = bool(int(memory))

ValueError: invalid literal for int(): memory

Reply
0 Kudos
marcelo_soares
Champion
Champion
Jump to solution

vmware-cmd /vmfs/volumes/storage/VM/VM.vmx createsnapshot "name" "description" 1 1

It worked for me Smiley Happy

Marcelo Soares

VMWare Certified Professional 310/410

Technical Support Engineer

Globant Argentina

Consider awarding points for "helpful" and/or "correct" answers.

Marcelo Soares
Reply
0 Kudos
ben_ayling
Contributor
Contributor
Jump to solution

super great

Reply
0 Kudos