Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/brand/bhyve/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
RNG_SLOT = 10
VIRTFS_SLOT = 11
NET_SLOT2 = 12
CONSOLE_SLOT = 17
CINIT_SLOT = 29
VNC_SLOT = 30
LPC_SLOT_WIN = 31
Expand Down Expand Up @@ -460,6 +461,13 @@ def apply_bootnext(v):

args.extend(['-l', 'com1,{0}'.format(opts['console'])])

# virtio-console/serial devices

for i, v in z.build_devlist('virtio-console', 4):
args.extend([
'-s', '{0}:{1},virtio-console,{2}'.format(CONSOLE_SLOT, i, v)
])

# CDROM

for i, v in z.build_devlist('cdrom', 8):
Expand Down
21 changes: 20 additions & 1 deletion src/man/bhyve.7
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
.\" Copyright 2016, Joyent, Inc.
.\" Copyright 2016, OmniTI Computer Consulting, Inc. All Rights Reserved.
.\" Copyright 2023 OmniOS Community Edition (OmniOSce) Association.
.\" Copyright 2026 EFit Partners
.\"
.Dd June 3, 2023
.Dd August 27, 2026
.Dt BHYVE 7
.Os
.Sh NAME
Expand Down Expand Up @@ -588,6 +589,19 @@ mount.
See the
.Sx EXAMPLES
section below.
.\" virtio-console
.It Ic virtio-console Ns Oo Ar N Oc Ar name Ns = Ns path
.Pp
Configures a named virtio-console device.
The
.Ar name
is the name of the device as seen by the guest,
.Ar path
is the path to a socket in the zone to be used for I/O.
.Pp
See the
.Sx EXAMPLES
section below.
.\" vga
.It Ic vga Ar off Ns | Ns Ar on Ns | Ns Ar io
.Pp
Expand Down Expand Up @@ -730,6 +744,11 @@ add attr
set type=string
set value=/rpool/iso/debian-9.4.0-amd64-netinst.iso
end
add attr
set name=virtio-console
set type=string
set value="org.qemu.guest_agent.0=/tmp/vm.qga.sock"
end
.Ed
.Pp
The following example shows how to share a delegated dataset called
Expand Down
Loading