Re: Bhyve CD-ROM

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Sun, 28 Nov 2021 22:14:39 UTC
if the cd is not bootable,you can attach it like this :

-s 1,ahci-cd,/home/marietto/Downloads/virtio/virtio-win-0.1.208.iso \

or you can grab the files that you want when the os is loaded,declaring the
folder on the host os where are stored the files like this :

-s 9,virtio-9p,sharename=/mnt \


Il giorno dom 28 nov 2021 alle ore 22:31 Sysadmin Lists via
freebsd-virtualization <freebsd-virtualization@freebsd.org> ha scritto:

> Hi. How do I attach a CD-ROM device (in this case an ISO file) to a VM
> without bhyve booting into it?
>
> bhyve -c 1 -m 512M -w -H \
>         -s 0,hostbridge \
>         -s 3,ahci-cd,/media/Debian-11.1.0-amd64-DVD-1.iso \
>         -s 4,virtio-blk,/dev/zvol/zroot/bhyve_vms/debianvm \
>         -s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait \
>         -s 31,lpc \
>         -l com1,stdio \
>         -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd debianvm
>
> /dev/zvol/zroot/bhyve_vms/debianvm already contains the installed OS, so
> now I want to boot into it while still having access to the packages on the
> ISO (to selectively install packages I want).
>
> --
> Sent with https://mailfence.com
> Secure and private email
>
>

-- 
Mario.