-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathqemu.confd
159 lines (127 loc) · 5.04 KB
/
qemu.confd
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
# /etc/conf.d/qemu
# vim: set ft=sh:
# source: https://github.com/jirutka/qemu-openrc
###############################################################################
# This configuration file defines default options for all QEMU machines #
# managed by qemu.* runscripts. #
# #
# Specific configuration for each VM should be defined in a file #
# /etc/conf.d/qemu.<VM_NAME>. #
###############################################################################
#
# This is an example configuration for qemu runscript. It contain all
# user-definable variables with their default values. If the default value is
# suitable for you, then you can omit that variable in your VM config.
#
# User to run the QEMU process.
#user="qemu"
# Group to run the QEMU process.
#group="qemu"
# Where to store the QEMU process PID.
#pidfile="/run/qemu/${VM_NAME}/qemu.pid"
# Where to redirect stdout/stderr of the QEMU process.
#logfile="/var/log/qemu/${VM_NAME}.log"
# Number of milliseconds to wait after starting to check if the VM is still
# running (used only with start-stop-daemon). Set to empty string to disable.
#start_wait=100
# How many seconds to wait after sending "system_shutdown" before force
# stopping the VM.
#shutdown_timeout=40
# QEMU system to emulate; you need qemu-system-${system_type} binary.
#system_type="x86_64"
# Whether to enable KVM (hardware-assisted virtualization).
#enable_kvm="yes"
# Select CPU model. Value "host" is allowed only for KVM.
# Run `qemu-system-$system_type -cpu help` for list of options.
#cpu_model="host"
# Simulate an SMP system with n CPUs.
#smp_cpus="1"
# Maximum number of hotpluggable CPUs, i.e. how many CPUs may be added to the
# VM after startup from the monitor console.
#smp_cpus_max="$smp_cpus"
# Amount of RAM to allocate for the VM on startup. Use suffix "M" or "G" for
# megabytes or gigabytes respectively.
#memory="1G"
# Maximum amount of RAM the VM can reach, i.e. how much memory may be allocated
# for the VM after startup from the monitor console. Use suffix "M" or "G" for
# megabytes or gigabytes respectively.
#memory_max="$memory"
# Number of memory slots for additional hotpluggable memory. If it's 0, then
# memory hotplug won't be enabled and the VM startup RAM will never increase.
# If $memory == $memory_max, then this is forced to 0.
#memory_slots=2
# Whether to use hugetlbfs mounted on $hugepages_path for the VM RAM.
#memory_hugepages="no"
# Mount point of the hugetlbfs.
#hugepages_path="/dev/hugepages"
# Start the RTC at the current UTC, or local time? Use "utc", or "localtime".
# Note: "localtime" is required for correct date in Windows.
#rtc_base="utc"
# Select type of VGA card to emulate. Valid values for type are: cirrus, std,
# vmware, qxl, tcx, cg3, and none. See option -vga in man qemu for more
# information.
#vga="std"
# Address to listen for VNC (TCP) connections.
#vnc_listen="0.0.0.0"
# VNC display number. If empty, then VNC will be disabled.
# Note: By convention the TCP port is 5900+$vnc_display.
#vnc_display=
# Password required for client connections on VNC. If empty, then password
# base authentication is disabled.
#vnc_password=
# Path of the QEMU monitor socket for this VM.
#monitor_socket="/run/qemu/${VM_NAME}/monitor.sock"
##
# Network interfaces
#
# You can specify up to 10 NICs using variables netX and netX_OPTION. For list
# of available options open man qemu and find -netdev.
#
# MAC address of the NIC is automatically generated from the VM name and
# sequence number of the NIC, so it's always the same for particular VM and NIC
# and it should be unique as well. You can override the MAC address with
# variable netX_mac.
#
# The default driver for NICs is virtio-net-pci (requires virtio-net driver
# to be installed in the VM). You can override it with variable netX_device.
#
# Example:
# net0="bridge"
# net0_br="br0"
# net0_mac="52:54:12:34:56:78"
# net0_device="e1000"
#
net0="bridge"
##
# Hard-drives
#
# You can specify up to 10 drives using variables diskX_OPTION. For list of
# available options open man qemu and find -drive.
#
# These drives will use driver scsi-disk connected to virtio-scsi-pci (requires
# virtio-scsi drivers to be installed in the VM).
#
# Example:
# disk0_file="/dev/mapper/${VM_NAME}-disk0"
# disk0_format="raw"
# disk0_cache="none"
#
# disk1_file="/var/lib/qemu/${VM_NAME}/disk0.qcow2"
# disk1_format="qcow2"
#
##
# CD-ROMs
#
# You can specify up to 10 cdrom drives using variables cdromX_file.
#
# These drives will use driver ide-cd connected to an emulated IDE controller
# (no virtio). This is slow, but doesn't require any special drivers in the VM.
#
# Example:
# cdrom0_file="/var/lib/qemu/virtio-win.iso"
#
# Any additional arguments to be passed to qemu-system-x86_64 command.
#extra_args=""
# Specify service dependencies. You can use the same directives as in the
# depend() function, but as variables prefixed by "rc_" (e.g. rc_need, rc_use).
#rc_need=""