You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
4.9 KiB
155 lines
4.9 KiB
# /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" |
|
|
|
# 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=""
|
|
|