Bhyve and windows 2012/2016

Rodney W. Grimes freebsd-rwg at pdx.rh.CN85.dnsmgr.net
Fri Oct 13 15:37:55 UTC 2017


> 
> > Hello
> > 
> > I'm trying to install Windows 2012 evaluation in bhyve. It looks like 
> > neither HDD (ahci-hd) nor CD (ahci-cd) are available.
> 
> What version of FreeBSD are you doing this on?  uname -a?
> 
> > Command is
> > 
> >   /usr/sbin/bhyve  -c 2 -m 17179869184 -H -A -w -s 0:0,hostbridge    -s 
>                                            ^^^^^^^^^^^ read the manual page very carefully,
> if you do not specify a unit for -m the default is to use it as megabytes, this is requesting
> a VM of 17G x 10^6, or 17 x 10^15 bytes of memory, you probalby want to say
> -m 16G
> 
> > 3:0,ahci-hd,/usr/jails/jails-data/serv1c-data/dsk1.vhd,sectorsize=512 -s 
>                                                      ^^^
> bhyve does not support .vhd format disks, it supports only raw
> images, how was this file created?
> 
> > 2:0,ahci-cd,/usr/jails/src/iso/windows2012.iso  -s 
> > 4:0,e1000,tap6,mac=00:a0:98:cf:ab:82 -s 5:0,virtio-rnd  -s 
> > 6,fbuf,tcp=0.0.0.0:5902,w=1024,h=768,wait -s 30,xhci,tablet -s 31,lpc -l 
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Ooopss.. ignore my comments about fbuf/vnc, I missed it.

> > com1,stdio -l bootrom,/usr/local/cbsd/upgrade/patch/efi.fd serv1c
>                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> where is this bootrom from?  The officially supported firmware
> should be at /usr/local/share/uefi-firmware/BHYVE_UEFI.fd 
> 
> > 
> > Only X: drive is available, seems to be some memory image
> 
> I believe your X: drive is the ramdisk image of the windows 2012
> installer?
> 
> I do not see any setup for a fbuf/vnc console, you probalby want a
> -s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait
> line added to above and connect to it once your vm is started.
> Windows wants a graphical device, and unless you have handcrafted
> an autoinstall .iso that can run unattended you wont get very 
> far without one.
> 
> > 
> > What should I check? What could have I done wrong?
> > 
> > Alex
> 
> -- 
> Rod Grimes                                                 rgrimes at freebsd.org

> _______________________________________________
> freebsd-virtualization at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"

-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the freebsd-virtualization mailing list