How to convert VM from Proxmox To VMware

I mean these steps you’re find here in the forum or in the man pages (I use some of these ideas for my script).
For me it’s annoying.
You could paste the entire script in ChatGPT Gemini or copilot it would explain everything.
I have no need to do it here. Everyone who uses scripts should be able to read it.
 
Sorry, as I said I wasn't trying to be annoying... which is why I specifically asked whether there was some command referenced elsewhere in the script which itself used jq since I saw no step myself.

Before I posted, for the record, I did paste the script into ChatGPT, as I did again, with the question "What does thus script use jq for?":

In the script you posted, the jq command-line tool is checked for existence (using check_command jq) but is not actually used anywhere else in the script.


Where it's mentioned:​

bash
CopyEdit
<span><span>check_command jq<br></span></span>
And in the comment:

bash
CopyEdit
<span><span><span># It uses the jq command-line tool to parse</span></span><span><br></span></span>
That comment is incomplete and misleading—it suggests jq is used for parsing (likely JSON), but there is no actual jqusage in the script body.


Conclusion:​

  • jq is not used in this version of the script.
  • It's likely that the script was originally intended to use jq—perhaps to parse JSON output from a qm or pveshcommand—but that logic was either removed or never implemented.
  • The presence of check_command jq is currently unnecessary and can safely be removed unless future modifications will use jq.
Let me know if you’d like help modifying or improving the script!
 
Ah now i understand.
You're absolutely right.
I used it in the first few scripts i tested.
These scripts uses jq as a JSON parsing utility. after retrieving VM metadata from Proxmox (likely via pvesh get), the output is in JSON. jq is then used to extract specific fields—such as disk names, storage information, memory, CPU, and more—so the script can dynamically build the right commands for conversion.

But i ended up with too much struggeling at this time :(

Something like:
pvesh get /nodes/$(hostname)/qemu/${VMID}/config | jq -r '.scsi0'

And this:

VMNAME=$(jq -r '.name' <<< "$VMCONFIG")

From my memory...

i missed to remove it. I think the lines:

# Check required tools
check_command qemu-img
check_command jq

have to be changed to:

# Check required tools
check_command qemu-img

the reason why it wants to be installed jq is only this line.
 
But you were faster and found it. And no, help is welcome. You’re not annoying me. Things in my head annoying things in my head … and so on