Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2023 11:03:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 271449] re-write 23.6.2 and 23.6.6
Message-ID:  <bug-271449-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271449

            Bug ID: 271449
           Summary: re-write 23.6.2 and 23.6.6
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Books & Articles
          Assignee: doc@FreeBSD.org
          Reporter: Steven.E.Friedrich@Gmail.com

I am new to virtualization and zfs.

Could someone re-write 23.6.2. Creating a FreeBSD Guest
to use zfs instead of ufs?

Create a file to use as the virtual disk for the guest machine. Specify the
size and name of the virtual
disk:
# truncate -s 16G guest.img


I read 23.6.6. Using ZFS with bhyve Guests

If ZFS is available on the host machine, using ZFS volumes instead of disk
image files can provide
significant performance benefits for the guest VMs. A ZFS volume can be cre=
ated
by:
# zfs create -V16G -o volmode=3Ddev zroot/linuxdisk0
When starting the VM, specify the ZFS volume as the disk drive:
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0
-s3:0,virtio
-blk,/dev/zvol/zroot/linuxdisk0 \
-l com1,stdio -c 4 -m 1024M linuxguest

but can't correlate it.
I believe the vm man page states that using a zfs volume through a /dev poi=
nt
should be avoided.
What is best practice for a mere workstation using root-on-zfs?

It looks like these two sections were written by different people.
I know much has changed over the last two years.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271449-9>