Solved Trying to install... *cough* Windows to da0 via bhyve

Trying to install Windows 10 to a portable SSD USB disk. It's not possible directly, so I'm trying to do so via bhyve but cannot get the installer to recognize the:
Code:
disk0_type="ahci-hd"
disk0_dev="/dev/da0"
as a target disk. (using vm-bhyve) Also tried virtio-blk, no luck either.
Any suggestions please? The da0 has only an empty GPT table on it.

I only have a single XHCI controller, no way how to passtrough only the disk I guess.
 
I think you have messed up the variables. They should be something like this:
Code:
disk0_type="ahci-hd"
disk0_name="/dev/da0"
disk0_dev="custom"
I have a Linux Mint install on a USB stick, and boot it without problems with bhyve (don't know if will be possible with Windows though).

EDIT: Corrected typo.
 
I think you have messed up the variables. They should be something like this:
Code:
disk0_type="ahci-hd"
disk0_name="/dev/da0"
disk0_type="custom"
I have a Linux Mint install on a USB stick, and boot it without problems with bhyve (don't know if will be possible with Windows though).
You enlisted disk0_type twice... intentionally?
 
For anybody interested and future newcomers running this command has successfully installed Windows on my USB SSD. In my case:
  • VNC on 127.0.0.1:5999
  • Target device /dev/da0
  • Installation CD ISO /zroot/vms/.iso/Win10_22H2_English_x64v1.iso
Code:
doas bhyve \-c 6,sockets=1,cores=3,threads=2 \
               -m 8G \
               -H \
               -w \
               -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
               -s 0,hostbridge \
               -s 31,lpc \
               -s 4:0,ahci-hd,/dev/da0 \
               -s 6:0,fbuf,tcp=127.0.0.1:5999,wait \
               -s 7:0,xhci,tablet \
               -s 3:0,ahci-cd,/zroot/vms/.iso/Win10_22H2_English_x64v1.iso,ro \
               -l com1,/dev/nmdm-win10.1A \
               -U b500466f-7f0e-11ef-92ba-482ae38f483f \
               -A -P -S \
               win10
 
Back
Top