Can I create a VM from an ISO via a script?

JayN@VI

Bit poster
Is it possible to write a bash script for my Mac that will take an OpenSuse Linux ISO and create a Parallels VM? Using the File -> New -> VM-creation-Wizard is tedious and error prone. I'd like to automate the process from a script.

Ideas?
 
I am aware of prlctl, but I don't see documentation in the man page nor online for the task of creating a VM from an ISO.
 
I have tried google to find some examples and found this script:
http://testdrive.sourcearchive.com/documentation/3.13/parallels_8py_source.html

So, generally you need execute several commands:

export $VM_NAME="virtual_machine_name"
export $PATH_TO_ISO="path_to_iso_image_file"

$prlctl create $VM_NAME --ostype linux --distribution suse
$prlctl set $VM_NAME --device-set cdrom0 --image $PATH_TO_ISO --connect
$prlctl start $VM_NAME

and so on.

Also you can use UUID value instead of VM name
 
Back
Top