当前位置:网站首页>[QNX hypervisor 2.2 user manual] 3.2.1 VM configuration syntax

[QNX hypervisor 2.2 user manual] 3.2.1 VM configuration syntax

2022-06-10 18:28:00 Gao Tong @bill

Write it at the front

One VM Configuration files are readable text files .

When you start a qvm Process to create VM And run guest when ,qvm The process reads the configuration information to learn how to assemble and configure VM.

One 、 The basic rule

The general rules for configuration files are as follows :

  • With “#” The first line is all comments , It can be ignored , Same as blank line ;
  • qvm Items in the configuration ( Non comment ) Can be options or parameters ;

Two 、 Rule options

The rules for options are as follows :

  • An option can affect the context in several ways :
  1. An option establishes a context , Other options can be set in ; for example ,vdev Option to establish a context , A virtual device can be defined in it through other options .
  2. One option applies to one context ; for example ,cpu Under Options sched It can be applied to the current cpu Options . therefore sched be conducive to cpu Appoint vCPU The definition of .
  3. An option can neither establish context , Nor does it apply to the context ; for example ram Option supports setting the location and size of memory allocation for applicable parameters , But it doesn't support options ;
  • stay VM in , Applying the contained specified component to the context... Is not supported . for example ,CPU command qvm Process creates a virtual CPU, Then load /vm/images/qnx7.ifs To order qvm Process Copy /vm/images/qnx7.ifs Content to guest System address space .
  • For unspecified options , No default .
  • Most options ( Not all ) A parameter is required .
  • Generally speaking ,option Order doesn't matter . for example , You define vdev The order of is irrelevant .

3、 ... and 、 Rules for parameters

A parameter must be :

  • Use of parameters
原网站

版权声明
本文为[Gao Tong @bill]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101752056067.html