Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 756281c

Browse files
authored
Merge pull request #415 from laijs/template-config-example
add VmFactoryPolicy examples for template in /etc/hyper/config
2 parents 7da3a92 + 3542a84 commit 756281c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package/dist/etc/hyper/config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ Cbfs=/var/lib/hyper/cbfs-qboot.rom
4646

4747
# VmFactoryPolicy defines the policies to create factories
4848
# VmFactoryPolicy = [FactoryConfig,]*FactoryConfig
49-
# FactoryConfig = {["cache":NUMBER,]"cpu":NUMBER,"memory":NUMBER}
49+
# FactoryConfig = {["cache":NUMBER,]["template":(true|false),]"cpu":NUMBER,"memory":NUMBER}
5050
# Examples:
5151
# VmFactoryPolicy={"cache":10, "cpu":1, "memory":128}
5252
# VmFactoryPolicy={"cpu":3, "memory":1024}
53+
# VmFactoryPolicy={"template":true, "cpu":1, "memory":128}
54+
# VmFactoryPolicy={"cache":1, "template":true, "cpu":1, "memory":128}
55+
# VmFactoryPolicy={"cache":10, "template":true, "cpu":1, "memory":128},{"template":true, "cpu":3, "memory":1024}
5356
# It is recommended to specify the "cache" when VmFactoryPolicy is set,
5457
# otherwise it is a less efficient factory
5558
VmFactoryPolicy=

0 commit comments

Comments
 (0)