summaryrefslogtreecommitdiff
path: root/kvmxfile
blob: bdf07a5e405e1d08ac5f8c94436ce258b18d1bbe (plain)
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
#
# Sample kvmx file
#

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

# First user name
user="user"

# First user password
password="$RANDOM"

# Set this is you want to be able to share folders between host and guest.
#shared_folder="."
#shared_folder_mountpoint="/home/user/code/$VM"

# Set this is you want to be able to share multiple folders between host and guest.
# Format: <id1>:<host-folder1>:<guest-mountpoint1>,<id2>:<host-folder2>:<guest-mountpoint2>[,...]
shared_folders="debian:.:/home/$user/code/debian,distros:/var/data/distros:/var/data/distros"

# Folder to sync during provisioning in the format "/host/folder /guest/folder".
provision_rsync="puppet /etc/puppet/"

# Absolute path for a provision script located inside the guest.
provision_command="/usr/local/share/kvmx/provision/debian/development && /home/user/code/$VM/bin/debian-dev-setup"

# Set this if you want to automatically attach an spice client when the machine
# boots.
run_spice_client="0"

# Set additional hostfwd mappings
#port_mapping="hostfwd=tcp:127.0.0.1:8080-:80,hostfwd=tcp:127.0.0.1:8443-:443"

# Where the guest image is stored
#image="$HOME/.local/share/kvmx/$VM/box.img"

# Image size
size="10G"

# Image format: raw or qcow2
format="qcow2"

# Image compression (qcow2 only)
qcow2_compression="1"

# Bootstrap method: custom or vmdeboostrap
method="custom"

# Hostname
hostname="debian"

# Domain
domain="example.org"

# System arch
arch="amd64"

# Box distribution when bootstraping a new image
version="bullseye"

# Debian mirror
mirror="http://http.debian.net/debian/"  

# 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"

# Use a custom, per-virtual-machine generated SSH keypair. If you disable this
# configuration but still want guest administration using SSH, the default
# insecure keypair will be used.
#
# Please note that this setting won't take effect if you're using a basebox.
# In that case the basebox keypair will be used if it exists, otherwise kvmx
# fallsback to the default insecure keypair.
#
# This setting is used during virtual machine bootstrapping by kvmx-create.
ssh_custom="y"

# Bootloader (used only during bootstrapping by kvmx-create).
bootloader="grub"