Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2016 09:58:07 -0600
From:      Randy Terbush <randy@terbush.org>
To:        "Dave Shariff Yadallee - System Administrator a.k.a. The Root of the Problem" <root@doctor.nl2k.ab.ca>
Cc:        The Doctor <doctor@doctor.nl2k.ab.ca>, Matt Churchyard <matt.churchyard@userve.net>,  "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: Windows 2016 Server
Message-ID:  <CALmWkDbwiVQQBQjd2bp8zuXgQ2BuSJeSFxLJiu_TzwArgHQ87Q@mail.gmail.com>
In-Reply-To: <20161025153820.GA69757@doctor.nl2k.ab.ca>
References:  <20161021183120.GA21232@doctor.nl2k.ab.ca> <20161021190122.GA30602@doctor.nl2k.ab.ca> <alpine.BSF.2.20.1610212216310.22551@z.fncre.vasb> <0406d06f-aa1a-677c-775a-b09a3ebd3073@freebsd.org> <20161021222342.GA80184@doctor.nl2k.ab.ca> <33e8e02d845145918591d25196402491@SERVER.ad.usd-group.com> <20161025060637.GA20650@doctor.nl2k.ab.ca> <4cec0d5457ca45e1b2dee0b92055a439@SERVER.ad.usd-group.com> <20161025135818.GA28314@doctor.nl2k.ab.ca> <CALmWkDamTgz4VJg5wX_s8JohfX_dRC26SDDGVQzmdCMjUtg%2B5g@mail.gmail.com> <20161025153820.GA69757@doctor.nl2k.ab.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
--
Randy

On Tue, Oct 25, 2016 at 9:38 AM, Dave Shariff Yadallee - System
Administrator a.k.a. The Root of the Problem <root@doctor.nl2k.ab.ca> wrote=
:

> On Tue, Oct 25, 2016 at 08:33:47AM -0600, Randy Terbush wrote:
> > On Tue, Oct 25, 2016 at 7:58 AM, The Doctor <doctor@doctor.nl2k.ab.ca>
> > wrote:
> >
> > > On Tue, Oct 25, 2016 at 09:20:28AM +0000, Matt Churchyard wrote:
> > >
> > > > One other issue is that Windows doesn't support the virtio-net
> network
> > > device by default.  The easiest way to get this working is to boot th=
e
> > > guest with the virtio driver ISO attached instead of the Windows
> install
> > > disk (once Windows is installed and working). You can then install th=
e
> > > driver for the network interface from the CD using the VNC console.
> > > >
> > > > Depending on what you are doing you may find it easier to use
> something
> > > like iohyve/chyves/vm-bhyve/vmrc that handles all the raw bhyve
> commands
> > > for you.
> > > >
> > > > Matt
> > >
> > > I will look into the iohyve , saw that last night.
> > >
> > > Does this also apply to UEFU BSDs / Linuxes ?
> > >
> >
> > ???Just to chime in quickly on this thread... I am a big fan of
> vm-bhyve. It
> > has made it much easier to sort bhyve out in general and get through so=
me
> > of these new options for supported guests.
> >
> > Regarding Linux and UEFI, much of this also applies there. I've
> > successfully installed a LinuxMint guest. I will offer that after the
> > install, the boot process hung at the EFI. After exiting from the Shell=
>
> > prompt that eventually appears, it is possible to navigate the UEFI bio=
s
> > settings to pick a bootable device. Only after rerunning 'grub2-install=
'
> > was I able to have a Linux guest that would boot without fiddling.
> > ???
> Let me give you my setup.
>
> No Zpool here.
>
> I am running FreeBSD 11 UEFI on x86_64.
>
> I have set up some non-UEFI guest successfull ,
>
> Fedora, Centos and Ubuntu.
>
> If it the UEFI part using a non-zpool environment
>
> that I am trying to wrap my head around.
>
> Smilir to Windows, I did install Fedora using
> UEFI but then
> could not go to the
> second stage, i.e. booting into the VM.
>
> Hence I do need to understand how to this with my environment using
> purely bhyve.


=E2=80=8BAs mentioned, I'm using vm-bhyve to insulating me from the learnin=
g curve
of "pure bhyve". https://github.com/churchers/vm-bhyve

A few more details about my setup.

FreeBSD 11-stable (reguired for vnc graphics to work with UEFI guests)

Relevant installed packages:
vm-bhyve
bhyve-firmware
grub2-bhyve
uefi-edk2-bhyve
uefi-edk2-bhyve-csm

=E2=80=8BWhile vm-bhyve is running in a zpool, the guests are using disk im=
age
files.

The following template allowed me to install LinuxMint through graphic VNC
interface.

=E2=80=8Bguest=3D"linux"
uefi=3D"yes"
cpu=3D1
memory=3D2G
graphics=3D"yes"
graphics_res=3D"1600x1200"
graphics_wait=3D"yes"
xhci_mouse=3D"yes"
network0_type=3D"virtio-net"
network0_switch=3D"public"
disk0_type=3D"virtio-blk"
disk0_name=3D"disk0.img"
grub_run_partition=3D"1"

=E2=80=8Bvm create -t mint -s 30G mint
vm install mint=E2=80=8B linuxmint-18-cinnamon-64bit.iso (32bit would not i=
nstall
as a UEFI guest)
vm list (shows running bhyve guests and indicates the IP and port that VNC
is running on for this guest)
vncviewer 127.0.0.1:5900

Top-level listing of the vm zpool shows the layout which includes a
.template and .iso directory to collect your configs and install isos. Nice
clean setup.

[root: /vm]# ls -l
total 171
drwxr-xr-x  2 root  wheel   5 Jul 20 10:01 .config
drwxr-xr-x  2 root  wheel  10 Oct 24 12:10 .iso
drwxr-xr-x  2 root  wheel  17 Oct 24 11:56 .templates
drwxr-xr-x  2 root  wheel   8 Oct  3 21:41 kali
drwxr-xr-x  2 root  wheel   6 Oct  2 18:13 macos
drwxr-xr-x  2 root  wheel   8 Oct 25 05:37 mint
drwxr-xr-x  2 root  wheel   7 Oct 22 15:31 win2012
drwxr-xr-x  2 root  wheel   5 Oct 10 16:58 winapp

(NOTE: still trying to get a working MacOS guest running...)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALmWkDbwiVQQBQjd2bp8zuXgQ2BuSJeSFxLJiu_TzwArgHQ87Q>