From fbd1c92001a5962546a62537c45b6130b339a4d1 Mon Sep 17 00:00:00 2001 From: Raoul Scarazzini Date: Thu, 27 Apr 2023 17:03:37 +0200 Subject: [PATCH] Libvirt: add consoles and graphics docs This commit adds the documentation related to the consoles and graphics lists that can be declared for the VM. --- Libvirt.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Libvirt.md b/Libvirt.md index 71fae14..5abfbdb 100644 --- a/Libvirt.md +++ b/Libvirt.md @@ -114,6 +114,25 @@ Note the value of the `cpu_mode` variable that makes this VM able to do nested virtualization, because of the `host-passthrough` value. Omitting the parameter will keep the default CPU mode. +Other options are supported for the specific virtual machine, it is possible to +specify one or more terminal consoles, by adding: + +```yaml + consoles: + - type: 'pty' + target_type: 'serial' + target_port: '0' +``` + +or even one or more graphics, by adding: + +```yaml + graphics: + - type: 'vnc' + listen_type: 'address' + autoport: 'true' +``` + ## Using Terraform binary to deploy the Libvirt infrastructure You can use this role to generate Terraform resource files necessary to