# configurations for hyperd

# Root directory for hyperd
# Root=/var/lib/hyper/

# Specify the hypervisor: libvirt, qemu, qemu-kvm, kvm, xen, xenpv, kvmtool
# "kvm"  is equivalent to "qemu-kvm" which uses qemu with kvm acceleration.
# "qemu" is equivalent to "qemu-kvm" when the system enables kvm, otherwise
#        the hypervisor is "qemu-tcg" (qemu without kvm acceleration).
# When Hypervisor is not set, the hyperd will try to probe "qemu-kvm" or "xen"
# as the containers' hypervisor according to the host, if the host doesn't
# support any hardware-assisted technology, it will use "qemu-tcg".
#
# Hypervisor=qemu

# Boot kernel
Kernel=/var/lib/hyper/kernel

# Boot initrd
Initrd=/var/lib/hyper/hyper-initrd.img

# BIOS image, qboot bios will accelarate the bootup
# Bios=/var/lib/hyper/bios-qboot.bin

# CBFS coreboot fs for boot image, if it is set, Kernel and Initrd will be ignored
# Cbfs=/var/lib/hyper/cbfs-qboot.rom

# Boot CDROOM for "vbox" hypervisor (for mac only)
# Vbox=/opt/hyper/static/iso/hyper-vbox-boot.iso

# Storage driver for hyperd, valid value includes rawblock, devicemapper, overlay, and aufs
# StorageDriver=overlay

# Bridge device for hyperd, default is hyper0
# Bridge=

# Bridge ip address for the bridge device
# BridgeIP=

# If the host IP is provided, a TCP port will be listened for, same as the '--host' option
# Host=

# This is only useful for hypernetes, to disable the iptables setup by hyperd
# DisableIptables=false

# Enable vsock support. This only works with libvirt/qemu hypervisor and template disabled
# EnableVsock=false

# VmFactoryPolicy defines the policies to create factories
# VmFactoryPolicy = [FactoryConfig,]*FactoryConfig
# FactoryConfig   = {["cache":NUMBER,]["template":(true|false),]"cpu":NUMBER,"memory":NUMBER}
# Examples:
# VmFactoryPolicy={"cache":10, "cpu":1, "memory":128}
# VmFactoryPolicy={"cpu":3, "memory":1024}
# VmFactoryPolicy={"template":true, "cpu":1, "memory":128}
# VmFactoryPolicy={"cache":1, "template":true, "cpu":1, "memory":128}
# VmFactoryPolicy={"cache":10, "template":true, "cpu":1, "memory":128},{"template":true, "cpu":3, "memory":1024}
# It is recommended to specify the "cache" when VmFactoryPolicy is set,
# otherwise it is a less efficient factory
VmFactoryPolicy=

<% node['hypercontainer']['config']['global'].each {|key, value| %>
<%= key %>=<%= value %>
<% } %>

[Log]
# PodLogPrefix=/var/run/hyper/Pods
# PodIdInPath=true

<% node['hypercontainer']['config']['Log'].each {|key, value| %>
<%= key %>=<%= value %>
<% } %>
