-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.config
163 lines (145 loc) · 4.46 KB
/
default.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#################
# boot settings #
#################
# boot options (floppy, harddisk, cdrom, network)
#VM_BOOT_DEV="cdrom"
# path to the image file or cd
#VM_CDROM="/path/to/iso"
# using kernel+initrd
# VM_KERNEL & VM_INITRD must be set to use this feature
# VM_APPEND is optional
#VM_KERNEL=""
#VM_INITRD=""
#VM_APPEND=""
#############################
# guest settings (required) #
#############################
# guest architecture, defaults to host arch
#VM_ARCH="x86_64"
# host user to start guest with (only required when running as root)
#VM_USER="nobody"
# kill wait time in seconds (defaults to 80 sec)
#VM_KILL_WAIT="80"
###################
# guest features #
###################
# Default Value | Description
# ON | daemonize
#VM_ENABLE_DAEMONIZE="true"
# ON | enable usb support
#VM_ENABLE_USB="true"
# OFF | qemu-guest-agent
#VM_ENABLE_QGA="false"
# OFF | enable opengl (only with SDL/virtio)
#VM_ENABLE_GL="false"
# OFF | enable snapshot mode
#VM_ENABLE_SNAPSHOTMODE="false"
# OFF | enable qemu machine protocol
#VM_ENABLE_QMP="false"
##########################
# virtio guest features #
##########################
# ON | virtio serial (clipboard sharing)
#VM_ENABLE_VIRTSERIAL="true"
# OFF | enable experimental in kernel accelerator
#VM_ENABLE_VHOST="false"
# OFF | enable virtio pmem (default size 4G)
#VM_ENABLE_VPMEM="false"
#############################
# guest settings (optional) #
#############################
### guest system ###
# Default Value | description
# kvm | select accelerator (kvm|xen|hax|...) see: qemu-system-x86_64 -accel ?
#VM_ACCEL="kvm"
# 512 | guest memory
VM_MEMORY="4G"
# 2 | number of cores
VM_SMP="cores=4,threads=1,sockets=1"
# de | keyboard layout language
VM_LC="de"
# pc | machine typ see: qemu-system-x86_64 -machine ?)
VM_MACHINE="q35"
# qxl | video card type: (std|cirrus|vmware|qxl|xenfb|tcx|cg3|virtio|none)
VM_VGA="virtio"
# none | display mode (spice-app|gtk|sdl|none)
#VM_DISPLAY_MODE="none"
# host | guest cpu settings see: qemu-system-x86_64 -cpu ?
#VM_CPU="host"
# 4 | number of usb redirctions ports
#VM_USB_REDIR="4"
# 4 | number of pcie ports
#VM_PCIE_PORTS="4"
### remote access ###
## enable: true|false
## password: default: empty
## listening ip: default: host ip
## listening port: default port 5800/5900
#
# enable;password;listening_ip;listening_port
#
VM_REMOTE_ACCESS_SPICE="true"
#VM_REMOTE_ACCESS_VNC="false"
### guest network ###
## network typ: user|tap|bridge[DEFAULT] (required)
## mac address: default: random (base: 56:6E:17:xx:xx:xx)
## network-driver: e1000|rtl8139[DEFAULT]|virtio-net-pci
## * qemu-system-ARCH -net nic,model=? shows available devices
## bridge interface: required for tap interfaces
## tap interface: use specific tap interface (default auto generated)
#
#-- multiple interfaces are possible: VM_NETWORK1|VM_NETWORK2|... --#
#
# network_typ;mac_address;network_driver;bridge_dev;tap_interface
#
VM_NETWORK="bridge;;virtio-net-pci;br0"
### guest harddisk ###
## harddisk: path to image (required)
## interface: virtio|ide[DEFAULT]|scsi
## cache setting: writethrough[DEFAULT]|writeback|none|unsafe
## asynchronous IO (AIO) setting: threads[DEFAULT]|native
#
#-- multiple harddisks are possible: VM_HARDDISK1|VMHARDDISK2|... --#
#
# harddisk;interface;cache;aio
#
VM_HARDDISK="/path/to/image"
### guest 9p filesystem sharing ###
## mount_tag: any name (required)
## path: path which should be avaiable (required)
## security mode: mapped|passthrough|none[DEFAULT]
## readonly mode: on|off[DEFAULT]
#
#-- multiple 9p shares are possible: VM_9P_SHARE1|VM_9P_SHARE2|... --#
#
# mount_tag;path;security_mode;readonly
#
#VM_9P_SHARE="name;/path/to/share;secmode"
### guest virtiofsd filesystem sharing ###
## mount_tag: any name (required)
## path: path which should be avaiable (required)
#
#-- multiple 9p shares are possible: VM_VFSD_SHARE1|VM_VFSD_SHARE2|... --#
#
# mount_tag;path
#
#VM_VFSD_SHARE="name;/path/to/share"
### guest sound support ###
## audiodev: sdl[DEFAULT]|alsa|oss|none
## see: qemu-system-x64 -audiohelp for supported audiodevs
## device: ich9-intel-hda[DEFAULT]|sb16|ac97|...
## see: qemu-system-x64 -device for suppored devices
#
#-- multiple devices are possible: VM_AUDIO1|VM_AUDIO2|... --#
#
# audiodev;device
#
#VM_AUDIO="sdl;ich9-intel-hda"
### guest devices
## for a list of all possible devices see: qemu-system-x86_64 -device ?
#
#-- multiple devices are possible: VM_DEVICES1|VM_DEVICES2|... --#
#
#example: --device usb-tablet --device usb-mouse
#
VM_DEVICES="--device usb-tablet"