xref: /freebsd/usr.sbin/bhyve/bhyve.8 (revision b51f459a2098622c31ed54f5c1bf0e03efce403b)
1.\" Copyright (c) 2013 Peter Grehan
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
26.\"
27.Dd March 18, 2021
28.Dt BHYVE 8
29.Os
30.Sh NAME
31.Nm bhyve
32.Nd "run a guest operating system inside a virtual machine"
33.Sh SYNOPSIS
34.Nm
35.Op Fl AaCDeHhPSuWwxY
36.Oo
37.Sm off
38.Fl c\~
39.Oo
40.Op Cm cpus=
41.Ar numcpus
42.Oc
43.Op Cm ,sockets= Ar n
44.Op Cm ,cores= Ar n
45.Op Cm ,threads= Ar n
46.Oc
47.Sm on
48.Op Fl G Ar port
49.Op Fl k Ar file
50.Oo Fl l
51.Sm off
52.Cm help | Ar lpcdev Op Cm \&, Ar conf
53.Sm on
54.Oc
55.Oo Fl m
56.Sm off
57.Ar memsize
58.Oo
59.Cm K No | Cm k No | Cm M No | Cm m No | Cm G No | Cm g No | Cm T No | Cm t
60.Oc
61.Sm on
62.Oc
63.Op Fl o Ar var Ns Cm = Ns Ar value
64.Op Fl p Ar vcpu Ns Cm \&: Ns Ar hostcpu
65.Op Fl r Ar file
66.Oo Fl s
67.Sm off
68.Cm help | Ar slot Cm \&, Ar emulation Op Cm \&, Ar conf
69.Sm on
70.Oc
71.Op Fl U Ar uuid
72.Ar vmname
73.Sh DESCRIPTION
74.Nm
75is a hypervisor that runs guest operating systems inside a
76virtual machine.
77.Pp
78Parameters such as the number of virtual CPUs, amount of guest memory, and
79I/O connectivity can be specified with command-line parameters.
80.Pp
81If not using a boot ROM, the guest operating system must be loaded with
82.Xr bhyveload 8
83or a similar boot loader before running
84.Nm ,
85otherwise, it is enough to run
86.Nm
87with a boot ROM of choice.
88.Pp
89.Nm
90runs until the guest operating system reboots or an unhandled hypervisor
91exit is detected.
92.Sh OPTIONS
93.Bl -tag -width 10n
94.It Fl a
95The guest's local APIC is configured in xAPIC mode.
96The xAPIC mode is the default setting so this option is redundant.
97It will be deprecated in a future version.
98.It Fl A
99Generate ACPI tables.
100Required for
101.Fx Ns /amd64
102guests.
103.It Fl c Op Ar setting ...
104Number of guest virtual CPUs
105and/or the CPU topology.
106The default value for each of
107.Ar numcpus ,
108.Ar sockets ,
109.Ar cores ,
110and
111.Ar threads
112is 1.
113The current maximum number of guest virtual CPUs is 16.
114If
115.Ar numcpus
116is not specified then it will be calculated from the other arguments.
117The topology must be consistent in that the
118.Ar numcpus
119must equal the product of
120.Ar sockets ,
121.Ar cores ,
122and
123.Ar threads .
124If a
125.Ar setting
126is specified more than once the last one has precedence.
127.It Fl C
128Include guest memory in core file.
129.It Fl D
130Destroy the VM on guest initiated power-off.
131.It Fl e
132Force
133.Nm
134to exit when a guest issues an access to an I/O port that is not emulated.
135This is intended for debug purposes.
136.It Fl G Ar port
137Start a debug server that uses the GDB protocol to export guest state to a
138debugger.
139An IPv4 TCP socket will be bound to the supplied
140.Ar port
141to listen for debugger connections.
142Only a single debugger may be attached to the debug server at a time.
143If
144.Ar port
145begins with
146.Sq w ,
147.Nm
148will pause execution at the first instruction waiting for a debugger to attach.
149.It Fl h
150Print help message and exit.
151.It Fl H
152Yield the virtual CPU thread when a HLT instruction is detected.
153If this option is not specified, virtual CPUs will use 100% of a host CPU.
154.It Fl k Ar file
155Set configuration variables from a simple, key-value config file.
156Each line of the config file is expected to consist of a config variable
157name, an equals sign
158.Pq Sq = ,
159and a value.
160No spaces are permitted between the variable name, equals sign, or
161value.
162Blank lines and lines starting with
163.Sq #
164are ignored.
165.It Fl l Op Ar help|lpcdev Ns Op , Ns Ar conf
166Allow devices behind the LPC PCI-ISA bridge to be configured.
167The only supported devices are the TTY-class devices
168.Ar com1
169through
170.Ar com4 ,
171the boot ROM device
172.Ar bootrom ,
173and the debug/test device
174.Ar pc-testdev .
175.Pp
176.Ar help
177print a list of supported LPC devices.
178.It Fl m Ar memsize Ns Op Ar K|k|M|m|G|g|T|t
179Guest physical memory size in bytes.
180This must be the same size that was given to
181.Xr bhyveload 8 .
182.Pp
183The size argument may be suffixed with one of K, M, G or T (either upper
184or lower case) to indicate a multiple of kilobytes, megabytes, gigabytes,
185or terabytes.
186If no suffix is given, the value is assumed to be in megabytes.
187.Pp
188.Ar memsize
189defaults to 256M.
190.It Fl o Ar var Ns Cm = Ns Ar value
191Set the configuration variable
192.Ar var
193to
194.Ar value .
195.It Fl p Ar vcpu:hostcpu
196Pin guest's virtual CPU
197.Em vcpu
198to
199.Em hostcpu .
200.It Fl P
201Force the guest virtual CPU to exit when a PAUSE instruction is detected.
202.It Fl r Ar file
203Resume a guest from a snapshot.
204The guest memory contents are restored from
205.Ar file ,
206and the guest device and vCPU state are restored from the file
207.Dq Ar file Ns .kern .
208.Pp
209Note that the current snapshot file format requires that the configuration of
210devices in the new VM match the VM from which the snapshot was taken by specifying the
211same
212.Op Fl s
213and
214.Op Fl l
215options.
216The count of vCPUs and memory configuration are read from the snapshot.
217.It Fl s Op Ar help|slot,emulation Ns Op , Ns Ar conf
218Configure a virtual PCI slot and function.
219.Pp
220.Nm
221provides PCI bus emulation and virtual devices that can be attached to
222slots on the bus.
223There are 32 available slots, with the option of providing up to 8 functions
224per slot.
225.Bl -tag -width 10n
226.It Ar help
227print a list of supported PCI devices.
228.It Ar slot
229.Ar pcislot[:function]
230.Ar bus:pcislot:function
231.Pp
232The
233.Ar pcislot
234value is 0 to 31.
235The optional
236.Ar function
237value is 0 to 7.
238The optional
239.Ar bus
240value is 0 to 255.
241If not specified, the
242.Ar function
243value defaults to 0.
244If not specified, the
245.Ar bus
246value defaults to 0.
247.It Ar emulation
248.Bl -tag -width 10n
249.It Li hostbridge | Li amd_hostbridge
250.Pp
251Provide a simple host bridge.
252This is usually configured at slot 0, and is required by most guest
253operating systems.
254The
255.Li amd_hostbridge
256emulation is identical but uses a PCI vendor ID of
257.Li AMD .
258.It Li passthru
259PCI pass-through device.
260.It Li virtio-net
261Virtio network interface.
262.It Li virtio-blk
263Virtio block storage interface.
264.It Li virtio-scsi
265Virtio SCSI interface.
266.It Li virtio-9p
267Virtio 9p (VirtFS) interface.
268.It Li virtio-rnd
269Virtio RNG interface.
270.It Li virtio-console
271Virtio console interface, which exposes multiple ports
272to the guest in the form of simple char devices for simple IO
273between the guest and host userspaces.
274.It Li ahci
275AHCI controller attached to arbitrary devices.
276.It Li ahci-cd
277AHCI controller attached to an ATAPI CD/DVD.
278.It Li ahci-hd
279AHCI controller attached to a SATA hard-drive.
280.It Li e1000
281Intel e82545 network interface.
282.It Li uart
283PCI 16550 serial device.
284.It Li lpc
285LPC PCI-ISA bridge with COM1 and COM2 16550 serial ports, a boot ROM, and,
286optionally, the debug/test device.
287The LPC bridge emulation can only be configured on bus 0.
288.It Li fbuf
289Raw framebuffer device attached to VNC server.
290.It Li xhci
291eXtensible Host Controller Interface (xHCI) USB controller.
292.It Li nvme
293NVM Express (NVMe) controller.
294.It Li hda
295High Definition Audio Controller.
296.El
297.It Op Ar conf
298This optional parameter describes the backend for device emulations.
299If
300.Ar conf
301is not specified, the device emulation has no backend and can be
302considered unconnected.
303.Pp
304Network backends:
305.Bl -tag -width 10n
306.It Ar tapN Ns Oo , Ns Ar mac=xx:xx:xx:xx:xx:xx Oc Ns Oo , Ns Ar mtu=N Oc
307.It Ar vmnetN Ns Oo , Ns Ar mac=xx:xx:xx:xx:xx:xx Oc Ns Oo , Ns Ar mtu=N Oc
308.It Ar netgraph,path=ADDRESS,peerhook=HOOK Ns Oo , Ns Ar socket=NAME Oc Ns Oo , Ns Ar hook=HOOK Oc Ns Oo , Ns Ar mac=xx:xx:xx:xx:xx:xx Oc Ns Oo , Ns Ar mtu=N Oc
309.Pp
310If
311.Ar mac
312is not specified, the MAC address is derived from a fixed OUI and the
313remaining bytes from an MD5 hash of the slot and function numbers and
314the device name.
315.Pp
316The MAC address is an ASCII string in
317.Xr ethers 5
318format.
319.Pp
320With virtio-net devices, the
321.Ar mtu
322parameter can be specified to inform the guest about the largest MTU
323that should be allowed, expressed in bytes.
324.Pp
325With netgraph backend, the
326.Ar path
327and
328.Ar peerhook
329parameters must be specified to set the destination node and corresponding hook.
330The optional parameters
331.Ar socket
332and
333.Ar hook
334may be used to set the
335.Xr ng_socket 4
336node name and source hook.
337The
338.Ar ADDRESS ,
339.Ar HOOK
340and
341.Ar NAME
342must comply with
343.Xr netgraph 4
344addressing rules.
345.El
346.Pp
347Block storage devices:
348.Bl -tag -width 10n
349.It Pa /filename Ns Oo , Ns Ar block-device-options Oc
350.It Pa /dev/xxx Ns Oo , Ns Ar block-device-options Oc
351.El
352.Pp
353The
354.Ar block-device-options
355are:
356.Bl -tag -width 8n
357.It Li nocache
358Open the file with
359.Dv O_DIRECT .
360.It Li direct
361Open the file using
362.Dv O_SYNC .
363.It Li ro
364Force the file to be opened read-only.
365.It Li sectorsize= Ns Ar logical Ns Oo / Ns Ar physical Oc
366Specify the logical and physical sector sizes of the emulated disk.
367The physical sector size is optional and is equal to the logical sector size
368if not explicitly specified.
369.It Li nodelete
370Disable emulation of guest trim requests via
371.Dv DIOCGDELETE
372requests.
373.El
374.Pp
375SCSI devices:
376.Bl -tag -width 10n
377.It Pa /dev/cam/ctl Ns Oo Ar pp . Ns Ar vp Oc Ns Oo , Ns Ar scsi-device-options Oc
378.El
379.Pp
380The
381.Ar scsi-device-options
382are:
383.Bl -tag -width 10n
384.It Li iid= Ns Ar IID
385Initiator ID to use when sending requests to specified CTL port.
386The default value is 0.
387.El
388.Pp
3899P devices:
390.Bl -tag -width 10n
391.It Pa sharename=/path/to/share[,9p-device-options]
392.El
393.Pp
394The
395.Ar 9p-device-options
396are:
397.Bl -tag -width 10n
398.It Li ro
399Expose the share in read-only mode.
400.El
401.Pp
402TTY devices:
403.Bl -tag -width 10n
404.It Li stdio
405Connect the serial port to the standard input and output of
406the
407.Nm
408process.
409.It Pa /dev/xxx
410Use the host TTY device for serial port I/O.
411.El
412.Pp
413Boot ROM device:
414.Bl -tag -width 10n
415.It Pa romfile
416Map
417.Ar romfile
418in the guest address space reserved for boot firmware.
419.El
420.Pp
421Pass-through devices:
422.Bl -tag -width 10n
423.It Ns Ar slot Ns / Ns Ar bus Ns / Ns Ar function
424Connect to a PCI device on the host at the selector described by
425.Ar slot ,
426.Ar bus ,
427and
428.Ar function
429numbers.
430.El
431.Pp
432Guest memory must be wired using the
433.Fl S
434option when a pass-through device is configured.
435.Pp
436The host device must have been reserved at boot-time using the
437.Va pptdevs
438loader variable as described in
439.Xr vmm 4 .
440.Pp
441Virtio console devices:
442.Bl -tag -width 10n
443.It Li port1= Ns Pa /path/to/port1.sock Ns ,anotherport= Ns Pa ...
444A maximum of 16 ports per device can be created.
445Every port is named and corresponds to a Unix domain socket created by
446.Nm .
447.Nm
448accepts at most one connection per port at a time.
449.Pp
450Limitations:
451.Bl -bullet -offset 2n
452.It
453Due to lack of destructors in
454.Nm ,
455sockets on the filesystem must be cleaned up manually after
456.Nm
457exits.
458.It
459There is no way to use the "console port" feature, nor the console port
460resize at present.
461.It
462Emergency write is advertised, but no-op at present.
463.El
464.El
465.Pp
466Framebuffer devices:
467.Bl -tag -width 10n
468.It Xo
469.Oo rfb= Ns Oo Ar IP\&: Oc Ns Ar port Oc Ns Oo ,w= Ns Ar width Oc Ns Oo ,h= Ns
470.Ar height Oc Ns Oo ,vga= Ns Ar vgaconf Oc Ns Oo Ns ,wait Oc Ns Oo ,password= Ns
471.Ar password Oc
472.Xc
473.Bl -tag -width 8n
474.It Ar IPv4:port No or Ar [IPv6%zone]:port
475An
476.Ar IP
477address and a
478.Ar port
479VNC should listen on.
480The default is to listen on localhost IPv4 address and default VNC port 5900.
481An IPv6 address must be enclosed in square brackets and may contain an
482optional zone identifier.
483.It Ar width No and Ar height
484A display resolution, width and height, respectively.
485If not specified, a default resolution of 1024x768 pixels will be used.
486Minimal supported resolution is 640x480 pixels,
487and maximum is 1920x1200 pixels.
488.It Ar vgaconf
489Possible values for this option are
490.Dq io
491(default),
492.Dq on
493, and
494.Dq off .
495PCI graphics cards have a dual personality in that they are
496standard PCI devices with BAR addressing, but may also
497implicitly decode legacy VGA I/O space
498.Pq Ad 0x3c0-3df
499and memory space
500.Pq 64KB at Ad 0xA0000 .
501The default
502.Dq io
503option should be used for guests that attempt to issue BIOS calls which result
504in I/O port queries, and fail to boot if I/O decode is disabled.
505.Pp
506The
507.Dq on
508option should be used along with the CSM BIOS capability in UEFI
509to boot traditional BIOS guests that require the legacy VGA I/O and
510memory regions to be available.
511.Pp
512The
513.Dq off
514option should be used for the UEFI guests that assume that
515VGA adapter is present if they detect the I/O ports.
516An example of such a guest is
517.Ox
518in UEFI mode.
519.Pp
520Please refer to the
521.Nm
522.Fx
523wiki page
524.Pq Lk https://wiki.freebsd.org/bhyve
525for configuration notes of particular guests.
526.It wait
527Instruct
528.Nm
529to only boot upon the initiation of a VNC connection, simplifying the
530installation of operating systems that require immediate keyboard input.
531This can be removed for post-installation use.
532.It password
533This type of authentication is known to be cryptographically weak and is not
534intended for use on untrusted networks.
535Many implementations will want to use stronger security, such as running
536the session over an encrypted channel provided by IPsec or SSH.
537.El
538.El
539.Pp
540xHCI USB devices:
541.Bl -tag -width 10n
542.It Li tablet
543A USB tablet device which provides precise cursor synchronization
544when using VNC.
545.El
546.Pp
547NVMe devices:
548.Bl -tag -width 10n
549.It Li devpath
550Accepted device paths are:
551.Ar /dev/blockdev
552or
553.Ar /path/to/image
554or
555.Ar ram=size_in_MiB .
556.It Li maxq
557Max number of queues.
558.It Li qsz
559Max elements in each queue.
560.It Li ioslots
561Max number of concurrent I/O requests.
562.It Li sectsz
563Sector size (defaults to blockif sector size).
564.It Li ser
565Serial number with maximum 20 characters.
566.El
567.Pp
568AHCI devices:
569.Bl -tag -width 10n
570.It Li nmrr
571Nominal Media Rotation Rate, known as RPM. value 1 will indicate device as Solid State Disk. default value is 0, not report.
572.It Li ser
573Serial Number with maximum 20 characters.
574.It Li rev
575Revision Number with maximum 8 characters.
576.It Li model
577Model Number with maximum 40 characters.
578.El
579.Pp
580HD Audio devices:
581.Bl -tag -width 10n
582.It Li play
583Playback device, typically
584.Ar /dev/dsp0 .
585.It Li rec
586Recording device, typically
587.Ar /dev/dsp0 .
588.El
589.El
590.It Fl S
591Wire guest memory.
592.It Fl u
593RTC keeps UTC time.
594.It Fl U Ar uuid
595Set the universally unique identifier
596.Pq UUID
597in the guest's System Management BIOS System Information structure.
598By default a UUID is generated from the host's hostname and
599.Ar vmname .
600.It Fl w
601Ignore accesses to unimplemented Model Specific Registers (MSRs).
602This is intended for debug purposes.
603.It Fl W
604Force virtio PCI device emulations to use MSI interrupts instead of MSI-X
605interrupts.
606.It Fl x
607The guest's local APIC is configured in x2APIC mode.
608.It Fl Y
609Disable MPtable generation.
610.It Ar vmname
611Alphanumeric name of the guest.
612This should be the same as that created by
613.Xr bhyveload 8 .
614.El
615.Sh CONFIGURATION VARIABLES
616.Nm
617uses an internal tree of configuration variables to describe global and
618per-device settings.
619When
620.Nm
621starts,
622it parses command line options (including config files) in the order given
623on the command line.
624Each command line option sets one or more configuration variables.
625For example,
626the
627.Fl s
628option creates a new tree node for a PCI device and sets one or more variables
629under that node including the device model and device model-specific variables.
630Variables may be set multiple times during this parsing stage with the final
631value overriding previous values.
632.Pp
633Once all of the command line options have been processed,
634the configuration values are frozen.
635.Nm
636then uses the value of configuration values to initialize device models
637and global settings.
638.Pp
639More details on configuration variables can be found in
640.Xr bhyve_config 5 .
641.Sh DEBUG SERVER
642The current debug server provides limited support for debuggers.
643.Ss Registers
644Each virtual CPU is exposed to the debugger as a thread.
645.Pp
646General purpose registers can be queried for each virtual CPU, but other
647registers such as floating-point and system registers cannot be queried.
648.Ss Memory
649Memory (including memory mapped I/O regions) can be read and written by the debugger.
650Memory operations use virtual addresses that are resolved to physical addresses
651via the current virtual CPU's active address translation.
652.Ss Control
653The running guest can be interrupted by the debugger at any time
654.Pq for example, by pressing Ctrl-C in the debugger .
655.Pp
656Single stepping is only supported on Intel CPUs supporting the MTRAP VM exit.
657.Pp
658Breakpoints are supported on Intel CPUs that support single stepping.
659Note that continuing from a breakpoint while interrupts are enabled in the
660guest may not work as expected due to timer interrupts firing while single
661stepping over the breakpoint.
662.Sh SIGNAL HANDLING
663.Nm
664deals with the following signals:
665.Pp
666.Bl -tag -width indent -compact
667.It SIGTERM
668Trigger ACPI poweroff for a VM
669.El
670.Sh EXIT STATUS
671Exit status indicates how the VM was terminated:
672.Pp
673.Bl -tag -width indent -compact
674.It 0
675rebooted
676.It 1
677powered off
678.It 2
679halted
680.It 3
681triple fault
682.It 4
683exited due to an error
684.El
685.Sh EXAMPLES
686If not using a boot ROM, the guest operating system must have been loaded with
687.Xr bhyveload 8
688or a similar boot loader before
689.Xr bhyve 4
690can be run.
691Otherwise, the boot loader is not needed.
692.Pp
693To run a virtual machine with 1GB of memory, two virtual CPUs, a virtio
694block device backed by the
695.Pa /my/image
696filesystem image, and a serial port for the console:
697.Bd -literal -offset indent
698bhyve -c 2 -s 0,hostbridge -s 1,lpc -s 2,virtio-blk,/my/image \\
699  -l com1,stdio -A -H -P -m 1G vm1
700.Ed
701.Pp
702Run a 24GB single-CPU virtual machine with three network ports, one of which
703has a MAC address specified:
704.Bd -literal -offset indent
705bhyve -s 0,hostbridge -s 1,lpc -s 2:0,virtio-net,tap0 \\
706  -s 2:1,virtio-net,tap1 \\
707  -s 2:2,virtio-net,tap2,mac=00:be:fa:76:45:00 \\
708  -s 3,virtio-blk,/my/image -l com1,stdio \\
709  -A -H -P -m 24G bigvm
710.Ed
711.Pp
712Run an 8GB quad-CPU virtual machine with 8 AHCI SATA disks, an AHCI ATAPI
713CD-ROM, a single virtio network port, an AMD hostbridge, and the console
714port connected to an
715.Xr nmdm 4
716null-modem device.
717.Bd -literal -offset indent
718bhyve -c 4 \\
719  -s 0,amd_hostbridge -s 1,lpc \\
720  -s 1:0,ahci,hd:/images/disk.1,hd:/images/disk.2,\\
721hd:/images/disk.3,hd:/images/disk.4,\\
722hd:/images/disk.5,hd:/images/disk.6,\\
723hd:/images/disk.7,hd:/images/disk.8,\\
724cd:/images/install.iso \\
725  -s 3,virtio-net,tap0 \\
726  -l com1,/dev/nmdm0A \\
727  -A -H -P -m 8G
728.Ed
729.Pp
730Run a UEFI virtual machine with a display resolution of 800 by 600 pixels
731that can be accessed via VNC at: 0.0.0.0:5900.
732.Bd -literal -offset indent
733bhyve -c 2 -m 4G -w -H \\
734  -s 0,hostbridge \\
735  -s 3,ahci-cd,/path/to/uefi-OS-install.iso \\
736  -s 4,ahci-hd,disk.img \\
737  -s 5,virtio-net,tap0 \\
738  -s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait \\
739  -s 30,xhci,tablet \\
740  -s 31,lpc -l com1,stdio \\
741  -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \\
742   uefivm
743.Ed
744.Pp
745Run a UEFI virtual machine with a VNC display that is bound to all IPv6
746addresses on port 5900.
747.Bd -literal -offset indent
748bhyve -c 2 -m 4G -w -H \\
749  -s 0,hostbridge \\
750  -s 4,ahci-hd,disk.img \\
751  -s 5,virtio-net,tap0 \\
752  -s 29,fbuf,tcp=[::]:5900,w=800,h=600 \\
753  -s 30,xhci,tablet \\
754  -s 31,lpc -l com1,stdio \\
755  -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \\
756   uefivm
757.Ed
758.Sh SEE ALSO
759.Xr bhyve 4 ,
760.Xr netgraph 4 ,
761.Xr ng_socket 4 ,
762.Xr nmdm 4 ,
763.Xr vmm 4 ,
764.Xr bhyve_config 5 ,
765.Xr ethers 5 ,
766.Xr bhyvectl 8 ,
767.Xr bhyveload 8
768.Pp
769.Rs
770.%A Intel
771.%B 64 and IA-32 Architectures Software Developer’s Manual
772.%V Volume 3
773.Re
774.Sh HISTORY
775.Nm
776first appeared in
777.Fx 10.0 .
778.Sh AUTHORS
779.An Neel Natu Aq Mt neel@freebsd.org
780.An Peter Grehan Aq Mt grehan@freebsd.org
781