-
Notifications
You must be signed in to change notification settings - Fork 0
/
vm-install.yaml
118 lines (98 loc) · 3 KB
/
vm-install.yaml
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
%YAML 1.1
---
# Configuration file for vm-install
# Special options, not passed to virt-install.
vm-install-options:
templates:
- preseed.cfg.erb
- anaconda-ks.cfg.erb
- user-data.erb
domain: kenyonralph.com
# Keys in the mappings below are virt-install(1) options, and values
# are the arguments to those options, just like you would specify on
# the virt-install(1) command line.
defaults: &defaults
connect: qemu:///system
virt-type: kvm
memory: 4096
cpu: host
network: bridge=br0
console: pty,target_type=virtio
serial: pty
# Need package ovmf for UEFI.
boot: uefi
autostart:
# OS defaults
debian_defaults: &debian_defaults
<<: *defaults
os-variant: debian10
location: https://deb.debian.org/debian/dists/stable/main/installer-amd64/
initrd-inject: preseed.cfg
vm-install-preset-options:
suite: stable
fedora_defaults: &fedora_defaults
<<: *defaults
os-variant: fedora29
location: https://mirrors.kernel.org/fedora/releases/35/Everything/x86_64/os/
# Note: https://bugzilla.redhat.com/show_bug.cgi?id=1686464
# https://github.com/virt-manager/virt-manager/commit/c6b5f22fa61d87557b5fab23be080073d2f7906e
initrd-inject: anaconda-ks.cfg
extra-args: inst.ks=file:/anaconda-ks.cfg
rhel_defauts: &rhel_defaults
<<: *defaults
cdrom: /var/lib/libvirt/images/rhel-8.0-x86_64-dvd.iso
ubuntu_defaults: &ubuntu_defaults
<<: *defaults
# 19.04 the newest ubuntu that "osinfo-query os" has, even though focal == 20.04.
os-variant: ubuntu19.04
location: http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/
initrd-inject: preseed.cfg
vm-install-preset-options:
suite: focal
# Specific VM instances
debian:
<<: *debian_defaults
disk: size=10,path=/data/vms/debian.sda
fedora:
<<: *fedora_defaults
disk: size=10,path=/data/vms/fedora.sda
rhel:
<<: *rhel_defaults
disk: size=10,path=/data/vms/rhel.sda
ubuntu:
<<: *ubuntu_defaults
disk: size=10,path=/data/vms/ubuntu.sda
ubuntu-test:
<<: *ubuntu_defaults
disk: size=10,path=/data/vms/ubuntu-test.sda
ubuntu1804: &ubuntu1804
<<: *defaults
os-variant: ubuntu18.04
disk: size=10,path=/data/vms/ubuntu1804.sda
location: http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/
initrd-inject: preseed.cfg
vm-install-preset-options:
suite: bionic
ubuntu1804test:
<<: *ubuntu1804
disk: size=10,path=/data/vms/ubuntu1804test.sda
ubuntu2004test:
<<: *defaults
os-variant: ubuntu19.04
cdrom: /var/lib/libvirt/images/ubuntu-20.04.1-live-server-amd64.iso
disk: size=10,path=/data/vms/ubuntu2004test.sda
vm-install-preset-options:
suite: focal
ubuntu2004autoinstall:
<<: *defaults
os-variant: ubuntu19.04
disk: device=cdrom,path=cidata.iso
cdrom: /var/lib/libvirt/images/ubuntu-20.04.1-live-server-amd64.iso
# add a space to make the key unique, since this is a hash and there is another disk key above.
'disk ': size=10,path=/data/vms/ubuntu2004autoinstall.sda
vm-install-preset-options:
suite: focal
# Local Variables:
# coding: utf-8
# End:
...