Starting VMs
When you start a VM, you can either enter all of the configuration information in the command line, or point the qvm process at a configuration file.
Starting a VM with a configuration file
% cd /guests/qnx-guest-1/
% qvm @config
where config is the name of the configuration file within the
current directory (e.g., qnx80.qvmconf).The qvm process opens the file and parses its contents, which
define the VM (see Assembling and configuring VMs
).
If you don't launch the qvm process from within the directory containing the configuration file, you'll get an error that the IFS can't be found. The reasons behind this requirement of being within the containing directory are that you can move the guest around and still launch it with the same command, and use a relative path for load in the *.qvmconf file, which reduces maintenance of this file.
The at sign (@
) in front of the filename in the qvm
command-line instruction designates a file as the qvm
configuration file.
Starting a VM without a configuration file
qvm cpu sched 8 ram 0x80000000,128m load /vm/images/linux.img \
cmdline "console=ttyAMA0 earlycon=pl011,0x1c090000 debug user_debug=31 loglevel=9" \
initrd load /vm/images/ramdisk.img \
vdev pl011 loc 0x1c090000 intr gic:37 hostdev /dev/ser2
Configuration information for a qvm process entered through the command line uses the same syntax as qvm configuration files.