The configuration file of Hyper is located under /etc/hyper/config
by default. The file is in INI format:
# 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
# Storage driver for hyperd, valid value includes devicemapper, overlay, rawblock, 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=
[Log]
# PodLogPrefix=/var/run/hyper/Pods
# PodIdInPath=true
Usage:
./hyperd [OPTIONS]
Application Options:
-config="" configuration for ./hyperd
—v=0 log level for V logs
—log_dir log directory
—host host address and port for hyperd (such as —host=tcp://127.0.0.1:12345)
—logtostderr log to stderr instead of log file
—alsologtostderr log to stderr as well as log file
Help Options:
-h, —help Show this help message