From 56aa88c7e272ccfd645695103d5bca653005aad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 7 Dec 2021 21:42:58 +0000 Subject: roles/vmm: Use host kernels for openbsd guests --- roles/vmm/templates/autoinstall.conf.j2 | 10 +++++++--- roles/vmm/templates/vm.conf.j2 | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'roles/vmm/templates') diff --git a/roles/vmm/templates/autoinstall.conf.j2 b/roles/vmm/templates/autoinstall.conf.j2 index de64c42..829c90f 100644 --- a/roles/vmm/templates/autoinstall.conf.j2 +++ b/roles/vmm/templates/autoinstall.conf.j2 @@ -1,9 +1,13 @@ +{% set guest = hostvars[item.name] %} System hostname = {{ item.name }} +Network interfaces = vio0 +IPv4 address for vio0 = {{ host.__ip.external }} +Using DNS domainname = {{ host.__domain_name }} +Using DNS nameservers = {{ __global_domain_name_servers | join (" ") }} Password for root = {{ vmm_default_password }} -Network interfaces = run0 -IPv4 address for run0 = dhcp -Public ssh key for user = {{ vmm_default_ssh_key }} +Public ssh key for root account = {{ vmm_default_ssh_key }} Which disk is the root disk = sd0 +Allow root ssh login = yes What timezone are you in = {{ vmm_default_timezone }} Unable to connect using https. Use http instead = {{ "yes" if vmm_default_fallback_http else "no" }} Location of sets = http diff --git a/roles/vmm/templates/vm.conf.j2 b/roles/vmm/templates/vm.conf.j2 index 8653616..32e4316 100644 --- a/roles/vmm/templates/vm.conf.j2 +++ b/roles/vmm/templates/vm.conf.j2 @@ -10,6 +10,9 @@ switch "{{ vmm_network_switch.name }}" { vm "{{ vm.name }}" { {% if vm.enabled is defined and not vm.enabled %} disable +{% endif %} +{% if vm.image == "openbsd" %} + boot "/bsd.vm.{{ vm.name }}" {% endif %} memory {{ vm.memory }} disk "{{ vmm_disk_dir }}/{{ vm.name }}.{{ vmm_disk_format }}" -- cgit v1.2.3