Rewrite virtio-console support

Guest "virt_consoleX" option now supports both numbered & named ports.
Up to 16 can be added to a guest.
This commit is contained in:
Matt Churchyard
2018-06-21 11:12:20 +00:00
parent 1dc6135cc9
commit ea58aaf6d7
6 changed files with 40 additions and 35 deletions

21
vm.8
View File

@@ -1375,18 +1375,17 @@ Set this option to
in order to provide an XHCI mouse device to the guest.
This tracks much better than the default PS2 mouse in VNC settings, although
this mouse may not supported by older guests.
.It virt_consoles
This can be used to specify a number of
.Sy virtio_console
ports to provide to the guest.
This should be a number between 1 and 16, which is the maximum number of ports
supported by the current virtio_console device.
.It virt_consoleX
Allows the creation of up to 16 virtio-console devices in the guest. The value
to this option can be
.Sy yes|on|1
to create a numbered port. This is the only method supported by some guests.
.Pp
If enabled, each port will correspond to a unix socket named
.Sy vconsoleX.sock
in the guest's data/configuration directory, where
.Sy X
is the port number (1-16).
If any other value is provided, this will be used as the name of the port. The
name
.Sy org.freenas.byhve-agent
can be useful, as it ties in with utilities written for the FreeNAS
bhyve-agent interface.
.It zfs_dataset_opts
This allows you to specify one or more ZFS properties to set on the dataset
when a guest is created.