|
1 |
| -# Configuration |
| 1 | +# Hyperd Configuration |
2 | 2 |
|
3 | 3 | ## Configuration file
|
4 | 4 |
|
5 |
| -The configuration file of Hyper is located under `/etc/hyper/config`. The file is in INI format: |
| 5 | +The configuration file of Hyper is located under `/etc/hyper/config` by default. The file is in INI format: |
6 | 6 |
|
7 |
| - Host = tcp://localhost:1246 |
8 |
| - Kernel = /var/lib/hyper/kernerl |
9 |
| - Initrd = /var/lib/hyper/hyper-initrd.img |
10 |
| - Bridge = hyper0 |
11 |
| - BridgeIP = 192.168.123.1/24 |
| 7 | +``` |
| 8 | +# Root directory for hyperd |
| 9 | +# Root=/var/lib/hyper/ |
12 | 10 |
|
13 |
| -#### Parameters |
| 11 | +# Specify the hypervisor: libvirt, qemu, qemu-kvm, kvm, xen, vbox (for linux) |
| 12 | +# vbox (for mac). |
| 13 | +# "kvm" is equivalent to "qemu-kvm" which uses qemu with kvm acceleration. |
| 14 | +# "qemu" is equivalent to "qemu-kvm" when the system enables kvm, otherwise |
| 15 | +# the hypervisor is "qemu-tcg" (qemu without kvm acceleration). |
| 16 | +# When Hypervisor is not set, the hyperd will try to probe "qemu-kvm" or "xen" |
| 17 | +# as the containers' hypervisor according to the host, if the host doesn't |
| 18 | +# support any hardware-assisted technology, it will use "qemu-tcg". |
| 19 | +# |
| 20 | +# Hypervisor=qemu |
14 | 21 |
|
15 |
| -- `Host`: bind hyperd's socket to the IP and Port, by default hyperd listens on `unix:///var/run/hyper.sock` |
16 |
| -- `Kernel`: the path of the HyperKernel, by default `/var/lib/hyper/kernel` |
17 |
| -- `Initrd`: the path of the initrd file, by default `/var/lib/hyper/hyper-initrd.img` |
18 |
| -- `Bridge`: bridge name, default `hyper0` |
19 |
| -- `BridgeIP`: IP range of the bridge, default `192.168.123.0/24` |
| 22 | +# Boot kernel |
| 23 | +Kernel=/var/lib/hyper/kernel |
20 | 24 |
|
21 |
| -## CLI usage |
| 25 | +# Boot initrd |
| 26 | +Initrd=/var/lib/hyper/hyper-initrd.img |
| 27 | +
|
| 28 | +# Storage driver for hyperd, valid value includes devicemapper, overlay, and aufs |
| 29 | +# StorageDriver=overlay |
| 30 | +
|
| 31 | +# Bridge device for hyperd, default is hyper0 |
| 32 | +# Bridge= |
| 33 | +
|
| 34 | +# Bridge ip address for the bridge device |
| 35 | +# BridgeIP= |
| 36 | +
|
| 37 | +# If the host IP is provided, a TCP port will be listened for, same as the '--host' option |
| 38 | +# Host= |
| 39 | +
|
| 40 | +# This is only useful for hypernetes, to disable the iptables setup by hyperd |
| 41 | +# DisableIptables=false |
| 42 | +
|
| 43 | +# Enable vsock support. This only works with libvirt/qemu hypervisor and template disabled |
| 44 | +# EnableVsock=false |
| 45 | +
|
| 46 | +# VmFactoryPolicy defines the policies to create factories |
| 47 | +# VmFactoryPolicy = [FactoryConfig,]*FactoryConfig |
| 48 | +# FactoryConfig = {["cache":NUMBER,]["template":(true|false),]"cpu":NUMBER,"memory":NUMBER} |
| 49 | +# Examples: |
| 50 | +# VmFactoryPolicy={"cache":10, "cpu":1, "memory":128} |
| 51 | +# VmFactoryPolicy={"cpu":3, "memory":1024} |
| 52 | +# VmFactoryPolicy={"template":true, "cpu":1, "memory":128} |
| 53 | +# VmFactoryPolicy={"cache":1, "template":true, "cpu":1, "memory":128} |
| 54 | +# VmFactoryPolicy={"cache":10, "template":true, "cpu":1, "memory":128},{"template":true, "cpu":3, "memory":1024} |
| 55 | +# It is recommended to specify the "cache" when VmFactoryPolicy is set, |
| 56 | +# otherwise it is a less efficient factory |
| 57 | +VmFactoryPolicy= |
| 58 | +
|
| 59 | +[Log] |
| 60 | +# PodLogPrefix=/var/run/hyper/Pods |
| 61 | +# PodIdInPath=true |
| 62 | +``` |
| 63 | + |
| 64 | +## Hyperd command line |
22 | 65 |
|
23 | 66 | Usage:
|
24 | 67 | ./hyperd [OPTIONS]
|
|
0 commit comments