This document explains how to configure the vm.conf file, which is used to define the settings for virtual machines launched by the IDV solution. Proper configuration of this file is essential for ensuring the VMs are set up correctly with the desired resources and parameters.
-
Modify the
launcher/vm.confto specify the number of VMs to launch and their respective settings.- Set the
guestvariable to the number of VMs to launch. - Set the
OVMF_CODE_FILEvariable to the path of OVMF_CODE.fd file. - Fill in the required configuration parameters for each VM in the right order. If
guestis set to2, modify/set the variables starting withvm1_*andvm2_*
Example:
# Number of VMs to launch guest=2 # Path of OVMF_CODE.fd file OVMF_CODE_FILE=/opt/qcow2/OVMF_CODE.fd # Configuration for VM1 vm1_ram=3 vm1_os=windows vm1_name=windows_vm1 vm1_cores=3 vm1_firmware_file=/opt/qcow2/OVMF_VARS_windows1.fd vm1_qcow2_file=/opt/qcow2/win1.qcow2 vm1_connector0=HDMI-1 vm1_usb=3-1.1,3-1.2,3-1.3,3-1.4 vm1_ssh=4444 vm1_winrdp=3389 vm1_winrm=5986 # Configuration for VM2 vm2_ram=3 vm2_os=ubuntu vm2_name=ubuntu_vm1 vm2_cores=3 vm2_firmware_file=/opt/qcow2/ubuntu.fd vm2_qcow2_file=/opt/qcow2/ubuntu.qcow2 vm2_connector0=HDMI-1 vm2_usb=3-3.1,3-3.2,3-3.3,3-3.4 vm2_ssh=2222
Note:
vm1_usb: Use the<hostbus>-<hostport>format to specify USB devices. For example,3-1.1refers to a device connected to bus 3, port 1.1.vm1_winrdpandvm1_winrm: These parameters are only applicable for Windows VMs. Leave them unset for Ubuntu or other Linux-based VMs.- Set unique values for
ssh,winrdpandwinrmports to avoid conflicts when launching multiple Windows VMs.
- Set the