Date: Wed, 26 Oct 2016 11:13:19 -0600 From: Randy Terbush <randy@terbush.org> To: Matt Churchyard <matt.churchyard@userve.net> Cc: Peter Grehan <grehan@freebsd.org>, "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: Installing SQL Server on Windows 2012 bhyve guests Message-ID: <CALmWkDZO065bn3Rk=TavgsS98=YQPg5W3TrehjPwOZmhW9qDjw@mail.gmail.com> In-Reply-To: <CALmWkDZ3sJnosEhGTfuurkXCEWmAtYGrvvKEY%2BmG-WQXFoxEjA@mail.gmail.com> References: <CALmWkDZvFPgmub5x_rAu_S3Ksf6xxn3pcQM3z22wr%2BbgMEpLQA@mail.gmail.com> <212f161a-d2d1-d164-3910-eeb256ae68ec@freebsd.org> <4febd210b57742b780eefc0132709be2@SERVER.ad.usd-group.com> <CALmWkDZ3sJnosEhGTfuurkXCEWmAtYGrvvKEY%2BmG-WQXFoxEjA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I can confirm that the following template file and vm-bhyve allows me to do an unattended install of win2012r2 that will also allow a successful install of SQL Server 2014. guest="windows" uefi="yes" cpu=2 memory=4G network0_type="virtio-net" network0_switch="public" disk0_type="ahci-hd" disk0_name="disk0.img" disk0_opts="sectorsize=512" I'll see about trying with 4k blocks but for some reason, was having trouble booting new VMs yesterday which led me to try 512 which also failed, but after a fresh buildworld on 11-stable, the 512 block image booted just fine. Thanks for the help here -- Randy On Wed, Oct 26, 2016 at 7:08 AM, Randy Terbush <randy@terbush.org> wrote: > Thanks guys, I'll report back once I nail this down. > > I've tried both 4096 and 512 and cannot seem to get an image to boot past > the failed EFI message. Not sure if something has changed lately in stable > to create that result, but will investigate and report back. > > Thanks again for the guidance here. > > -- > Randy > > On Wed, Oct 26, 2016 at 3:30 AM, Matt Churchyard < > matt.churchyard@userve.net> wrote: > >> -----Original Message----- >> From: owner-freebsd-virtualization@freebsd.org [mailto: >> owner-freebsd-virtualization@freebsd.org] On Behalf Of Peter Grehan >> Sent: 25 October 2016 19:19 >> To: Randy Terbush >> Cc: freebsd-virtualization@freebsd.org >> Subject: Re: Installing SQL Server on Windows 2012 bhyve guests >> >> >Hi Randy, >> >> > I've followed the info provided here >> > https://wiki.freebsd.org/bhyve/Windows >> > to create a Windows Server 2012 image that I successfully installed on >> > the bhyve hypervisor. After getting a working Win2012 image running, >> > applying updates, etc. I attempted to install SQL Server 2014. In the >> > late stages of that install, the process attempts to start the SQL >> server engine and fails. >> >> > There have been some reports of this previously. What might be >> happening is that SQL Server has stricter requirements on the underlying >> block >size than NTFS itself has. >> >> > Since you are using a file-backed image, the reported block size from >> the emulated storage controller may be 8KB or even higher, depending on >> >the underlying filesystem type. >> >> > A suggestion is to force the block size to 4KB (has to be done during >> install as well), and if the problem persists, try 512 bytes. This is done >> by using >the 'sectorsize=<bsz>' parameter to the disk configuration e.g. >> >> > -s 4,ahci-hd,/path/to/disk.img,sectorsize=4096 >> >> Just to add, if you're using vm-bhyve you should be able to add this with >> the diskX_opts template/config option >> >> disk0_opts="sectorsize=4096" >> >> I may adjust the sample templates to include a sectorsize option for >> Windows guests, although I'm not 100% clear on what exact OS versions or >> applications require specific settings. I do know that SQL Server has been >> reported to suddenly fall over unless a valid block size is used (although >> I believe it did install and run), but again I'm not sure exactly what the >> "correct" settings are. >> >> Also note that you shouldn't need any grub_* template options if you're >> using UEFI. Those options only apply to grub-bhyve. >> >> Matt >> >> >later, >> >> >Peter. >> >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALmWkDZO065bn3Rk=TavgsS98=YQPg5W3TrehjPwOZmhW9qDjw>