What's up guys? It is Bernardo from the BTNHD and yes, ahhhh
deploying Hyper-V VDI with Windows Server 2019. I think I did this video, a live video for
you guys many, many years ago, I think I did it with server 2012 R2 and I had to do it
within my lab to do some testing. I'm going to get you guys up and running with
this video. And then later on, I'm going to continue doing
like the gateway setup and the rd licensing and all that good stuff, okay, plus attaching
an SSL certificate to your VDI web access portal as well. But for now, I'm going to give you guys like
the basic stuff so let's get into it. Alright, so first things first, I'm going
to right click on the Start Menu going to go to run and I'm going to type in WINVER
hit OK, and I'm running everything within a Windows Server 2019 build 1809 within my
testing lab again, I'm testing stuff out before I deploy into the production world. I need to set the environment up So I went
to find my file explorer, not really best practice went inside C drive and I created
two folders, an ISO folder and a VM folder, the VM folder, this is where I'm going to
drop my, my template, which I'm going to go over pretty soon and the ISO because I'm going
to be downloading and like a Windows 10 ISO, and I want to drop it in there. Now best practice in a production while you're
not going to drop inside the C drive, most likely, you're going to drop it into your
secondary partition like a D drive within my ISO folder already dropped in a Windows
10 LTSB ISO, because that's what I'm going to use for my template. I'm going to click on Start and I'm going
to click on Server Manager and it's going to start loading up and Once it loads up,
the first thing that we need to do is click on Manage add Roles and Features, you're going
to get the Add Roles and Features wizard just click on Next. Next again, next, again, a lot of next, next
next. So the first role that we need to install
within our server is Hyper-V. Now I'm going to do everything In one box,
best practice is you're installing Hyper-V on a separate machine, you're installing your
RDS stuff on another machine. But for this video, I'm doing everything in
one solid machine just for testing purposes and then later on, I'm going to replicate
it within a production environment. From here we are going to select Hyper-V,
it's gonna want you to select required features just hit add features. Hit next here next again, next again. Now, one of the key things that I learned
is one for this to work properly for Hyper-V slash RDS slash VDI infrastructure to work
correctly. You have to have a couple of things working
behind the scenes Active Directory needs to be present. You have to have a working DHCP server and
also a working DNS. Those are three very important things that
hopefully you guys have already in place within your nine to five job. I'm not going to go over that stuff on this
video. So it makes sure those three things are working
and are functional from here. I'm going to select my Ethernet and I'm going
to click on Next, I'm going to leave everything as the default here, click Next. Again, for the default stores, I'm actually
going to change everything to the C drive to VMs. Again, that is the folder that I created with
you guys early on, click next here, once you get this check off, restart the destination,
you're going to get this nice little warning, hit yes on that, click on install, it's going
to start installing. And once the installation is done is going
to reboot and done right. Now what we need to do is click on starts
and go inside Windows Administrative Tools and locate your Hyper-V manager let it load
up, open it up wide. And the first thing that we need to do is
create our first virtual machine. Because this virtual machine is going to be
our template. That our RDS, right or VDI, or a collection
which I want to go over pretty soon is going to take this template and it's going to create
multiple other machines using this template. I'm going to right click on my node Hyper-V,
I'm going to go to new and click on virtual machine, you're going to get the new virtual
machine wizard, click next here. From here, we're going to provide a name. And I don't need to change the location because
it's going to drop it at the default location which was the C drive because that's what
I told it to go right click next there, you are able to pick which generation you want. I'm going to leave it as default as generation
one click next here provide a you know memory, your connection, hit the drop down menu and
pick your connection your your switch for the virtual hard disk, this is really up to
you. I'm not going to tell you best practices,
50 gigs or 10 gigs, so it really depends on you. Okay, click Next. And from here, I am going to select install
an operating system from a bootable CD or DVD drive, I'm going to do an ISO and I'm
going to point to that ISO file that I dropped into the C drive and then going to click Next. And then finish is going to start creating
the disk for me and then voila, we're done. From here, we are going to right click on
our template, I'm going to click on Connect. I'm going to hit starts is going to start
loading up, you're going to get the windows prompt. I'm not going to show you guys the whole installation
of the Windows 10 because you guys should already know how to do that right, hopefully
you guys know how to do that right? So once I was done, right I was on a desktop
I went in make sure that had internet access. I install a lot of programs like fileZilla. Notepad, VLC made sure that the template was
fully up to date with all the Windows 10 updates. And once everything is done, now you're probably
saying to yourself, do you need to add it to the domain? No, you don't need to add it to the domain
because when you're using RDS, and you're creating your collection, it's going to add
it with an active directory for you automatically. Don't worry, I'm going to show you guys. So from here, I need to right click on the
Start Menu within the virtual machine within my template. I'm going to click on command prompt as an
admin, I'm going to hit yes on the user Control. Once the command prompt loads up, the first
command that I'm going to do is a CD sysprep, hit enter, because I need to get inside the
sysprep folder and within the folder, I'm going to run the following command, I'm going
to do a sysprep dot exe. I'm going to do a parameter of OOBE another
parameter of generalize another parameter shut down. And the last parameter is mode, colon VM. Hit Enter is going to start processing the
cleanup phase for the sysprep and eventually it's going to shut down the virtual machine. Now that we have Hyper-V up and running, we
have our template up and running. Now the next thing that we need to do is install
our RDS. So we are going to click on our start menu,
click on Server Manager it's going to load up we are going to click on Manage add Roles
and Features. click next here and we're not going to do
a role base. So we are going to pick Remote Desktop Services
installation click Next. We're going to do a standard deployment. Click Next. And we have two options we have session base
and virtual machine. Now we're going to do a virtual machine based
desktop deployment. So we're going to select that click Next,
we're going to click Next, I'm going to select my machine and just hit that little arrow
to bring it to the other side. And click Next. The same thing for the web access, I want
this machine to have the RD Web Access Server. So select your server and then click on that
arrow to bring it to the right click Next. I also want this machine to house the virtualization
host server. So select a click on that arrow to bring it
to your right and then click Next. Nice little confirmation, it's going to want
you to reboot the machine. And so Click on Restart the destination server
automatically because it's required. Once you get that check, you're going to see
like the button deploy is going to highlight so click on deploy. It's going to start installing and eventually
it's going to reboot the machine for you. Once it reboots the machine and you log into
your machine, you want to go into start Click on Server Manager once Server Manager loads
up, you're going to see that the progress of installing the RDS is going to continue. And it's going to complete it just takes some
time. So don't worry about that. Once everything is completed, you're good
to go. Not yet. We're going to close that up. On your left hand side within the Server Manager,
we're going to click on Remote Desktop Services. We're going to go into collections. And within collections on your right hand
side, we're going to click on tasks and we are going to pick Create Virtual Desktop collection. You're going to get the nice little wizard
so click on Next, Provide a name for your collection. I gave it BTNHD VDI POOL, click next there,
we're going to do a pool virtual desktop collection. Leave everything as the default click Next. And if everything works out, you should see
your template from here. So once your template is there, click on your
template Click on Next. I'm not going to provide an answer file So
I left it as the default. Click Next, you're able to pick your timezone
and also your Active Directory. Now on this right here, I didn't show you
guys that I actually told it what type OU I wanted, I created a VDI OU that I wanted
these virtual machines to be dropped into. But you are able to create an OU within your
Active Directory and then just drop them in there automatically. Okay, so click next there. Now from here you're able to specify the user
group who has access to these virtual machines and how many virtual desktops Do you want
to create during this process. Now within my testing lab, I only did two
now you are able to change the prefix and the suffix. Now my virtual machines are going to be BTN
dash zero, BTN dash one and so on. So click next from here will give you a final
count of how many virtual machines you will have. Click Next. From here you able to change the location
of where you want to store your virtual machines. I left that as the default location. But you are able to change it to a network
share, which is pretty cool, right. So again, left everything as the default and
click on Next. From here, you are able to provide your users
a profile, right. So provide the profile location here. And once you're done, if you don't need it,
just uncheck enable user profile disk, and then click on next nice little confirmation
and then click on Create. Once you click on Create, it's going to start
creating your virtual machines, which is a good thing, eventually, you're going to get
this. This is a nice informative information at
the bottom stating that you are able to close this like, you know dialog box, you could
close it up. Now if you open up your Hyper-V manager, you're
going to see a new virtual machine again, mine was BTN dash zero. And if you double click on it to view it,
it's going to start installing the operating system and doing all that stuff. Now eventually, if you just leave it alone,
you're going to see that your first virtual machine is going to be saved. The additional virtual machine is going to
start doing its thing and start running. I look like it depends on how many many virtual
machines you have if you have five of them. The first one once it's finished, it is placed
in a save mode. First one wants to finish this place on the
save mode. And that's how it goes. Just to save resources. I dropped everything within it OU, you called
VDI, you're going to see your virtual machines in there, which is a good thing. That's always a good thing. If you're like me, you're very impatient. And you want to know what's going on. Just go back inside the Server Manager, go
to site collections, pick your collection that we created together, right click on it,
go to task status details, you're going to get this nice little status dialog box. And as you can see, my zero was completed. My one is still in progress. But if you click on that button refresh constantly
like a madman, you're going to see that both of them are going to be completed which is
a good thing. And if you go back inside the Hyper-V manager
now you're going to see that both of them are in a state of running and that's it guys,
hopefully you guys enjoyed this video again. I'm going to continue later on how to configure
the gateway server how to do the RD licensing how to insert a SSL certificate within your
web access portal and all that other good stuff but this is to get you up and running. These are the first steps that you need to
do. Hopefully you guys enjoy this video do not
forget to by hitting that like button also make sure to hit that subscribe button, do
whatever you need to do, punch it, smash it, elbow it, do whatever you need to do to hit
that subscribe button, and make sure you share out the video and I catch you guys on the
next one. Peace out!