#
# Onion Plan kvmx file - https://0xacab.org/rhatto/kvmx
#

# Hostname
hostname="onionplan"

# Which base box you should use. Leave unconfigured to use kvmx-create instead.
#basebox="bookworm"
basebox="dev"

# Set this is you want to be able to share multiple folders between host and guest using 9p.
# Needs ssh_support set to "y" and a workable SSH connection to the guest.
# Format: <id1>:<host-folder1>:<guest-mountpoint1>,<id2>:<host-folder2>:<guest-mountpoint2>[,...]
shared_folders="shared:.:/srv/shared"

# Absolute path for a provision script located inside the guest.
# Needs ssh_support set to "y" and a workable SSH connection to the guest.
#provision_command="git -C /srv/shared submodule update --init --recursive && git clone https://gitlab.torproject.org/tpo/web/onion-mkdocs.git vendors/onion-mkdocs && /usr/local/share/kvmx/provision/debian/development && /srv/shared/vendors/onion-mkdocs/scripts/onion-mkdocs-provision-host && /srv/shared/vendors/onion-mkdocs/scripts/onion-mkdocs-provision-build && /srv/shared/vendors/onion-tex-slim/scripts/onion-tex-slim-provision-build"
provision_command="/usr/local/share/kvmx/provision/debian/development && /srv/shared/scripts/provision"

# Startup command
startup_command="hydractl aperiodic-upgrade"

# Set additional hostfwd mappings
port_mapping="hostfwd=tcp:127.0.0.1:8032-:80"

# Use basebox image as a backing file for overlay images
# See https://wiki.archlinux.org/index.php/QEMU#Overlay_storage_images
backing_file="1"

# Memory
memory="512"

# Enables remote administration using SSH. With this configuration enabled,
# kvmx will be able to administer a running virtual machine using SSH access
# inside the virtual machine.
ssh_support="y"
