Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 2021 23:14:39 +0100
From:      Mario Marietto <marietto2008@gmail.com>
To:        sysadmin.lists@mailfence.com
Cc:        Freebsd Virtualization <freebsd-virtualization@freebsd.org>
Subject:   Re: Bhyve CD-ROM
Message-ID:  <CA%2B1FSiiarPVt55iZXQZ8-cidvp_iHBkomQFsg8gORVYrq2=xJQ@mail.gmail.com>
In-Reply-To: <1786593170.587714.1638135091567@ichabod.co-bxl>
References:  <1786593170.587714.1638135091567@ichabod.co-bxl>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a0d43d05d1e0a838
Content-Type: text/plain; charset="UTF-8"

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.

--000000000000a0d43d05d1e0a838--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiiarPVt55iZXQZ8-cidvp_iHBkomQFsg8gORVYrq2=xJQ>