handbook/virtualization: Suggest using supported RELEASE for bhyve
Since 10.3-RELEASE has gone EOL a while ago, update instructions to match the newest -RELEASE on the newest releng branch as of writing. While here, also correct at typo that instructed people to look in /usr/shared which doesn't exist in hier(7).
This commit is contained in:
parent
b45a44fa61
commit
4ace6ff83e
1 changed files with 4 additions and 4 deletions
|
@ -590,15 +590,15 @@ Download an installation image of FreeBSD to install:
|
|||
|
||||
[source,bash]
|
||||
....
|
||||
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.3/FreeBSD-10.3-RELEASE-amd64-bootonly.iso
|
||||
FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
|
||||
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.2/FreeBSD-12.2-RELEASE-amd64-bootonly.iso
|
||||
FreeBSD-12.2-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
|
||||
....
|
||||
|
||||
FreeBSD comes with an example script for running a virtual machine in bhyve. The script will start the virtual machine and run it in a loop, so it will automatically restart if it crashes. The script takes a number of options to control the configuration of the machine: `-c` controls the number of virtual CPUs, `-m` limits the amount of memory available to the guest, `-t` defines which [.filename]#tap# device to use, `-d` indicates which disk image to use, `-i` tells bhyve to boot from the CD image instead of the disk, and `-I` defines which CD image to use. The last parameter is the name of the virtual machine, used to track the running machines. This example starts the virtual machine in installation mode:
|
||||
|
||||
[source,bash]
|
||||
....
|
||||
# sh /usr/shared/examples/bhyve/vmrun.sh -c 1 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-10.3-RELEASE-amd64-bootonly.iso guestname
|
||||
# sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-12.2-RELEASE-amd64-bootonly.iso guestname
|
||||
....
|
||||
|
||||
The virtual machine will boot and start the installer. After installing a system in the virtual machine, when the system asks about dropping in to a shell at the end of the installation, choose btn:[Yes].
|
||||
|
@ -607,7 +607,7 @@ Reboot the virtual machine. While rebooting the virtual machine causes bhyve to
|
|||
|
||||
[source,bash]
|
||||
....
|
||||
# sh /usr/shared/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img guestname
|
||||
# sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img guestname
|
||||
....
|
||||
|
||||
[[virtualization-bhyve-linux]]
|
||||
|
|
Loading…
Reference in a new issue