- type: VM_SW_KVM for KVM or VM_SW_VBOX for VirtualBox OSE
- vmName: Name of the VM.
- diskName: Name of the image file without extension.
- size: Size of the image file in MB.
- imageDir: Base directory to store the VM files.
- BASH code to create a virtual disk image.