VM configuration file example
The following example shows a VM configuration file for a guest system.
The qvm process assembles and configures the VM components
specified by the options and their arguments in the configuration file:
system qnx8-x86_64-guest
ram 0xa0000
rom 0xc0000,0x40000
ram 1024M
# Specify "cpu" for each vCPU you want to assign to your guest
cpu
cpu
load /vm/images/qnx8-x86_64-guest.ifs
vdev ioapic
loc 0xf8000000
intr apic
name myioapic
vdev ser8250
intr myioapic:4
vdev timer8254
intr myioapic:0
# An example network device that connects to a peer named vp0 in the host.
# This peer is found at /dev/vdevpeers/vp0.
vdev virtio-net
name ptp
peer /dev/vdevpeers/vp0
# An example block device. This file has to be created somewhere;
# in this case, it's created in the IFS with dd.
vdev virtio-blk
hostdev /dev/qvmdisk0
# 8259s are here for legacy systems only. They take only the 'loc' option.
vdev 8259
loc 0x20
vdev 8259
loc 0xa0
vdev hpet
loc 0xf8008000
intr myioapic:2
We know that this configuration is for an x86_64 VM because 8259 devices and APIC are supported only on that architecture. For the vdevs that support it, the name option is defined to make the devices appear at /dev/qvm/system_name/vdev_name. In this case, system_name is qnx8-x86_64-guest.
Page updated: