VMware Communities
valerio_vanni
Enthusiast
Enthusiast

Cloning failed: one of the parameters supplied is invalid

It's a Workstation 14 Pro, and the issue happens only with this virtual machine (or, better, with this virtual disk, see later).

I tried to clone other VMs, and it works.

The VM itself works. It starts, it shuts down etc. vmdk is single file, not preallocated. "Defrag" and "Compact" return no error.

But when I try to clone it I get this error. Both from specified snapshot and current state. In the end, I tried to delete all snapshot and now I have none of them, only current state. I got no error during snapshot deletion / consolidation phase.

I'm trying a full clone.

I also tried to delete VM, create another and mount the same disk: it fails again to clone, so it seems that the issue is inside vmdk and not in VM config.

vmware.log is untouched at the time of cloning attempt, and inside ui-log in /tmp/ I find these lines:

 

2023-05-28T14:29:08.581+02:00| vthread-12| I125: VTHREAD initialize thread 12 "vthread-12" tid 19613
2023-05-28T14:29:08.585+02:00| vthread-12| I125: DISKLIB-DSCPTR: Opened [0]: "Ravenna-orig.vmdk" (0xe)
2023-05-28T14:29:08.585+02:00| vthread-12| I125: DISKLIB-LINK : Opened '/mnt/sata2/WinXP-RA/Ravenna-orig.vmdk' (0xe): monolithicSparse, 117247536 sectors / 55,9 GB.
2023-05-28T14:29:08.585+02:00| vthread-12| I125: DISKLIB-LIB : Opened "/mnt/sata2/WinXP-RA/Ravenna-orig.vmdk" (flags 0xe, type monolithicSparse).
2023-05-28T14:29:08.615+02:00| vthread-12| I125: SNAPSHOT: SnapshotClone: Failed to set the mode for the new config file: 2
2023-05-28T14:29:08.615+02:00| vthread-12| I125: SNAPSHOT: SnapshotConfigInfoOpenVmsd: Creating new snapshot dictionary, '/home/valerio/vmware_machines/Clone of WinXP-RA/Clone of WinXP-RA.vmsd'.
2023-05-28T14:29:08.616+02:00| vthread-12| I125: DISKLIB-DSCPTR: Opened [0]: "Ravenna-orig.vmdk" (0xe)
2023-05-28T14:29:08.616+02:00| vthread-12| I125: DISKLIB-LINK : Opened '/mnt/sata2/WinXP-RA/Ravenna-orig.vmdk' (0xe): monolithicSparse, 117247536 sectors / 55,9 GB.
2023-05-28T14:29:08.616+02:00| vthread-12| I125: DISKLIB-LIB : Opened "/mnt/sata2/WinXP-RA/Ravenna-orig.vmdk" (flags 0xe, type monolithicSparse).
2023-05-28T14:29:08.616+02:00| vthread-12| I125: DISKLIB-LIB_CLONE : Couldn't get adapter type of src disk while creating clone param : One of the parameters supplied is invalid (1).
2023-05-28T14:29:08.616+02:00| vthread-12| I125: SNAPSHOT: SnapshotCloneDisk: Failed to get createParam for '/home/valerio/vmware_machines/Clone of WinXP-RA/Ravenna-orig-cl1.vmdk': One of the parameters supplied is invalid (1).SNAPSHOT: SnapshotCloneDisk failed: One of the parameters supplied is invalid.
2023-05-28T14:29:08.616+02:00| vthread-12| I125: SNAPSHOT: SnapshotCloneDisks failed: One of the parameters supplied is invalid (5)
2023-05-28T14:29:08.616+02:00| vthread-12| I125: SNAPSHOT: SnapshotClone failed: One of the parameters supplied is invalid (5)
2023-05-28T14:29:08.616+02:00| vthread-12| I125: SNAPSHOT: Snapshot_CloneWithFlags failed: One of the parameters supplied is invalid (5)
2023-05-28T14:29:08.616+02:00| vthread-12| I125: Vix: [19613 hostAgentStuff.c:347]: Error VIX_E_FAIL in VixVM_CloneObsolete(): Unknown error
2023-05-28T14:29:08.616+02:00| vthread-12| I125: Cmd /vm/#e389d50c39d7a6fb/cmd/##410/op/snapshotClone/ failed: Cloning failed:
2023-05-28T14:29:08.616+02:00| vthread-12| I125+ One of the parameters supplied is invalid
2023-05-28T14:29:08.616+02:00| vthread-12| I125:

 

Labels (1)
Reply
0 Kudos
5 Replies
hadjer1
Enthusiast
Enthusiast

Hello,

I'm not sure where the problem is, but as a workaround, you can export the VM to ovf format and then import it back with another name, it will be a copy of the VM that you need to clone.

Regards,

Reply
0 Kudos
valerio_vanni
Enthusiast
Enthusiast

Exported, then I'll try to reimport.

Is it fair that export ends without a confirmation? It reaches 99% but then I can't see a "Done" window.

 

Reply
0 Kudos
valerio_vanni
Enthusiast
Enthusiast

Tried: reimport works. At least it seems: no error nor "done" window.

And VM works like before: boots, can be used etc.

And it continues to fail if I try "clone".

I also tried to clone it with a trial of 17.0.2, thinking it could be a bug of my old 14 version.

But it says the same: "Cloning failed: one of the parameters supplied is invalid"

 

Reply
0 Kudos
hadjer1
Enthusiast
Enthusiast

Hello,

Does this VM have snapshots? did you try to delete them ?

Reply
0 Kudos
valerio_vanni
Enthusiast
Enthusiast

As I said in my first message, I deleted all of them (to reach a simpler condition).

All merges happened without errors, and now VM has only "current state".

 

I copied the vmdk and, on another host, created a VM and attached it.

VM works, I cannot try "clone" there because it's a Player edition.

And I'm worried, I'm carrying around a vmdk with something wrong inside.

Reply
0 Kudos