VMware 7 - Adding Datastores & Virtual Machines

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everybody we're back here live with vmware lab buildup and today we're going to be looking at what is storage and virtual machines so before we can build any virtual machines we have to have somewhere to put them and you may be wondering if you followed the last couple of videos why we installed the vmware software on a usb stick and that was so that we have the full access to the put a data store on the ssd that we installed in there so i'm going to log into my esxi box here and click on storage and go to the new data store and basically just follow the defaults here so they call it a vmf s data store click next on that give it a name i like to give them very simple names if you had like a spinning disk versus an ssd you may have a performance group or a capacity group but in this case it's all just ssd i'll just call datastore01 and again it's going to let us choose how much of the disk we want to use i want to use it all vms six the newest always makes the most sense unless you have some sort of compatibility reason to go backwards next on that and that kind of shows you what you're doing so yes i'm sure i want to use the entire disk for this purpose it will erase it very quickly and now i have 223 gigabytes available for storage and the first thing i need to put on there are my install files my isos so that i can install some virtual machines so if we click on this data store and go to browse you'll see this there's a little stub file there but not really much so i like to create a directory called media or installs whatever you want to call it just to hold my install files and then i want to upload a file to this so click on upload and we'll forget about that directory we need to go to my desktop all right and the lab i've got them stationed here and this would be a whole lot easier to see if it was details okay perfect so if we go by size we'll see them they're big i've got a windows 10 this is a windows 2019 server i believe and ubuntu server so let's grab uh 2019 first and let's see if that's gonna start uploading yep i see it if we close this you can now see down here in the log file it's starting to upload so let's get a few more going here while that's going i do not want to put it there okay select the media folder click upload and then pick ubuntu and then i could probably multi-select these if i no i guess not one at a time it is and then windows 10. i don't know if we'll actually use all these right now but those will start uploading so that's going to take a few minutes let's see while it's going we can actually start our build process on the vm we don't need the actual iso until later on in the process so if we click on virtual machine and click right there create or register vm pick a new vm and hit next should we go back really quick this deploy from ovf or ova these are kind of pre-built vm files that you'll find a lot of times online and those are handy if you are if somebody has built a vm already and they're kind of handing it out to you so a lot of various uh kind of public projects like open source projects will have vms already made they're on linux so the os does not have any licensing restrictions and it's all pre-configured and pre-made for you um so that's something to just be aware of or if you are moving the vm from one host to another without vsphere you may be just copying the files and then you register that vm here so let's create a new one for our purposes and again um nothing fancy here we'll just call this vm01 and let's see we have to pick the os so we'll probably do the windows one first and probably server 2019 which up is available here perfect 64-bit and there we're picking where we're going to put it on data store 01. all right um i'm good with two cpus on this one it's okay to over provision cpus the only problem you have if you have a lot of vms asking for cpu resources at the same time they will start to be queued up and there will be a limitation on that so giving a particular vm especially if it's more active less cpu cores is going to prevent it from locking up other vms that have cores assigned to them so that's the main reason to give give less so it's best practice you want to give the minimum that you need you don't really want to over provision if you don't have to but i don't like to provision less than two in most cases i've only got eight gigs total on this machine so four gigs for this one vm is going to be very hard you can share ram there's ways to do that i never like to do that i like to dedicate actual physical ram to a machine and not do any dynamic ram allocation so i'm going to give this one 124 which is not going to be a lot but it will be enough and like i mentioned before i'm going to give this 100 gigabytes i'm going to do it thin so that it'll grow as needed in this situation there's a little performance hit there it's not recommended it's the best practice in production anymore now that ss is now that ssd is prevalent brilliant but for the lab it helps helps up tremendously all right and then everything else oh yeah the uh network card i'm going to make a vm x net three everything else i'm going to leave the same so once we know that we have an iso ready i'll go ahead and link it here but i'm not going to do that right now so hit next confirm all the settings and finish and we did get one of the isos uploaded i'm not sure which one let's go browse and see go back to the data store browse media you'll see now we have a new folder called vmo1 this is the vm we just created the vm dk is the hard drive this is that virtual hard drive that we set up that's currently at zero bytes because we did it with thin provision it will not grow until we actually add data to it and it'll only grow as big as it needs to to hold the data that we're installing i'm not sure what vmsd is exactly but vmx is the configuration this is the file it's actually a text file that you can edit if you were to get it out of here that actually holds the configuration data the specifics about this vm like how many cores it has and where the storage is located all that so these are the two most important files if you wanted to move this vm somewhere else you would definitely need the vmdk and the vmx if we look at our media what do we have downloaded so far looks like two out of the three are downloaded and i can't tell here which ones are fully downloaded or not but we'll not worry about that right now there's only one left all right let's create another vm really quick while we're waiting for those to finish up and you can like you saw there right click on virtual machines to create that's typically what i'll be doing i'll just go through this quickly vm02 make this one the linux one and we were doing ubuntu i believe that was 64-bit lot of this will be the same um i'm still going to give it two cores i'm going to give it 100 gigabytes thin but i am going to leave this one the vm network on e1000e for compatibility reasons i don't know what compatibility this version of linux is going to have with vmx net 3. so i'm going to leave it on the e100e and i think that is it finish all right let's do one more next normally i would give these more more uh descriptive names if uh if i was going to use these permanently but these are just going to be thrown away for test purposes all right this is another version of windows but this one is windows 10 64-bit and again let's give this guy let's give this one 2048 two gigs of ram 100 gig hard drive and actually for let's give this guy 50 gigs thick just to show you what the difference is and lazy zero um means that it's going to fill it up with blank spots but it's not going to actively write those blank spots it's just going to leave the data that was in those allocated sectors there eager 0 it actually goes and it actively writes a 0 in every one of those sectors not necessary and on ssds that just going to prematurely wear out the ssd i see no reason for that all right this is another windows machine so we want a better network card perfect i believe the rest we can leave the same all right let's take a look at that really quick if we browse o3 and go to the vmdk this thing is now taking up 50 gigs because we did uh thick and thick means even if we've only installed windows and we still have let's say 20 or so gigs free on the os vmware's already taken all that space away from our local ssd it's already allocated all that space to it much like we do with ram so that it can't be used by anybody else but again vm 02 0. so we've done copy we're done copying things let's allocate some isos to some vms right now these are kind of just generic placeholders they don't actually have any os tied to them so i have to right click on it and edit the settings this one i believe was the server so i will go to my host device and say under media i'm going to do my server vm02 i see that's the linux box so let's edit these settings and make this one oh i'm doing a media make that ubuntu perfect save that and then 03 let's make this one [Music] the windows 10 machine perfect and i'm noticing that connected is not selected that needs to be i did not do that on the others so let's check that box there let's check that out the others as well edit settings we need to make sure just like the vm network is connected we need to make sure that the data store this is kind of the equivalent of it being that drive being plugged in you can assign resources but still not have the drive virtually plugged in which would so we can now boot these up and start installing the os's here you should have a console let me try that again i'm missing the mark here okay launch remote console you'll see here this download vmrc you're going to want that you can do it in the web but it actually doesn't give you an option here but it's not very capable so you definitely want to get the free console and bring it into view for you here nope it's not letting me let's see now i can move it all right it was warning me about the certificate of this host so i had to click allow this host before it would let me drag the screen over here this is my vm this is where i'm going to see my vm boot up and if we bring this in hit play nope it's upset so this is where we were before basically saying that my um remember video 2 on this series it still complained when i was installing vmware esxi that my computer could not do virtualization which i thought was strange so let's visit that computer and find out why that is the case all right i've got that computer here i believe but i do not easily have a keyboard in mouse let me go grab one really quick i was not prepared to go into dos okay so i'm gonna hit f12 to reboot and look at this didn't take it okay there we go um yes forcefully shut down there's nothing running so and then i'm going to restart f11 now we want to do is go back into the bios and take a look at this so as soon as it reboots i'm going to catch the reboot prompt i believe on this machine it's f10 to get into bios quickly and i made it perfect okay so i know that there's some stuff under security that's what it was talking about right there vtxt i think so let's enable that we might as well do this one while we're here this is direct io vtd i don't think i use that feature very often but it can't hurt to enable it so f10 to accept let's try that and see what happens um save changes and exit yes perfect all right so that's going to boot up vmware we just need a few minutes for that to fully boot back up if anybody is watching live um while we got a break here and has any questions feel free to throw them in the comments and i'll answer them if i can all right looks like we're almost all the way up and one other thing i'll show you here if you go to microsoft and search for or just google and search for server 2019 evaluation you will find a free download that you can get i think you just might have to put in an email address where you can download for 180 day evaluation which is a pretty decent amount of time and you can always just do it again after that yeah so they just want a little bit of information from you and then they will email you a link to download that and that's pretty fantastic that's an easy way to get oss and it's not just server 2019 it's pretty much any major microsoft software they do this with exchange you can do this with other versions of server it's pretty sql i think you can do this with so it really lets you test drive these things um without having to pay anything all right we are now fully booted and we still have that same 115 ip so that hit refresh here probably need to log in again so let's try this again and see if it lets us boot this time that's looking faster okay enter to boot from dvd and you do have to click inside this black window so if i hit control alt it gives me my mouse back i can now control my local os if i click within this black window my mouse goes away and i have a mouse inside the window but not and you see sometimes it kind of bleeds out but really it captures the the mouse and keyboard controls when you've clicked inside and to let go of that you hit control alt and then it releases you all right so now just leave all this default and this is like a normal server installation which the whole point of having a lab is so that you can practice installing software you can practice using software linked together so i really see the value of iterating and doing things more and more and more you know installing server 2019 one time is kind of a nice experience and it's pretty easy to do it you know you just hit next a couple of times but installing it many times under different conditions and installing multiple instance instances of it well you know trying to link them together and network them together that's where you're going to start to really break things and learn things since we're doing evaluation version i'm going to go ahead and do the best i can do 2019 data center evaluation and next on that and of course i accept custom new here apply gives you a couple more yeah a bunch more partitions and then it'll just automatically give you the largest one and hit next to install on there and that's going to be off and running we can now go on to our next vm and leave that in the background vmo2 and right away you may start to see the benefit of virtualization if you have not played with virtualization much you're going to see how quick you can iterate and how quick you can practice and install things simultaneously when you're doing it virtual because you're not you know switching between multiple windows or the once you get that physical server working the physical just kind of fades away and everything becomes just software and it really lets you do a lot in a short period of time and it gets even better once you get further along in the process all right let's install ubuntu all right looks good to me i used to be a big centos fan i guess i still am but i've been favoring ubuntu lately just because it's so so many of the things i want to install on it are well documented for ubuntu and a little bit less so for for a centos all right normal sure let's not download updates i don't want to take extra time during this demo and yep give it the whole virtual disk it's showing us which disk it's using it's the only disc we have in there that's fine so each one of these again if you're not super familiar with virtualization each one of these os's only has visibility to the disk that we gave it and it's partitioned off so it cannot see the other you know the windows one cannot see anything on the linux one i don't know why that's hung up this 10 machine and hit play on that guy end up with a lot a lot like vcr controls where you can play pause stop all right this happens to be an iso that has both the 32 and 64 bit so i was trying to install it on some older hardware but we'll go with the 64. all right that's moving along minimize this for now all right where is this at um why is this stuck is my question not able to do anything in this window so i'm going to restart this and try again meanwhile here's my windows 10 we'll install this guy and i'm noticing i do not have a product key windows 10 is easy to get media creation tool now you can create the iso it does not require any purchases or software until you actually need to activate it and you can install it without a key so you can basically evaluate windows 10 for free as well right from the microsoft website and i always like to go pro pro is the lowest edition that allows you to install onto a domain you'll see this one is down the 50 gig thick partition looks like 450 just like the other ones looked like a full 100 and there's a lot of our partitions hit next that's moving along all right i am noticing that that data center server 2019 i installed happened to be um without a desktop experience i think i just clicked on non-test experience so we need to set a password here all right and we're just going to get this this is all you get with windows 2019 what used to be called the core edition now they've they've changed that language i believe now or this is just server 2019 and then the desktop experience is when you get the gui um i'm trying to remember i can't remember i haven't done this in a few months um there's there's some command to bring up the more graphical interface to do some basic functions like get windows updates and get set ips and stuff like that let's go back and look at our ubuntu what's it doing nothing all right ubuntu has failed miserably let's shut this down we'll give it one more try while windows 10 is installing okay install continue continue normal install now this is where we got stuck last time continue there we go lets us go so for some reason just got hung up yep i'm in new york i do have to put in a password here i'm gonna put in my normal password i put in for labs capital p password the number one and an exclamation point perfect and yeah well for this purpose we'll do login automatically it's not secure but it's just a lab saves me from having to type it a bunch of times all right that is thinking looks like we're at 93 let's find that command really quick all right server 2019 shell and uh that's probably not what i want no thank you okay let's try that again commands let's start with that server core perfect why just keep trying to get me along and i do not want to log in that's really annoying not sure what that's doing but it's annoying all right here we go how do we get to this is the question i remember it being something useful there's a bunch of commands that's not what i want hmm none of those manage server core all right i don't think we're going to find it right now all right so windows 10 is moving along this is moving along on ubuntu and we've successfully installed this so one cool thing that we can do um on our vm here if we go back to our kind of control panel if we look at vm1 is we can right click on it and we can take snapshots so this is one of the cool things about vms is the ability to snapshot and if we take a snapshot we'll just give it a name and it'll uncheck this box because that takes extra time and take a snapshot it takes about two seconds it's done and now anything that we do to this vm is is uh happening after that snapshot and if we right click and go back to view snapshots manage i guess right so you can see here this is the vm this is the snapshot and this is where we are so everything that we do is happening after the snapshot if i want to test a piece of software or run a piece of code or you know execute a virus just to see how it works kind of in a test vm i can do that and then all i do afterwards is right click or not right click click on it and say restore to snapshot click that button hit restore and now the vm is back at this level it's going back in time to here and you can see the vm turned off because of that so i hit play and it boots back up but it boots back up exactly with with the same hard drive status as if it basically lost power at the time of the snapshot it's kind of like the equivalent of pulling the plug if you take a snapshot and leave this snapshot the virtual machine memory it even remembers what's in memory that's why it takes longer has to dump all that to disk and it'll boot up it'll restore already booted um it'll be kind of already in a booted position it just pushes all that back into memory and then hits play again so that's amazing technology it lets you iterate again very quickly and you don't have to have just one you can create multiple snapshots you kind of want to keep track of what you're doing right here's testo 2 and i did check did not uncheck that box so it's going to take a few extra seconds to do the ram on this one but you want to keep track of what you're doing but you can have multiple snapshots and kind of switch between them as you want to test different things so that's extremely powerful and that's one of the best things about virtualization is your ability to take snapshots and each one is not recorded as a whole extra hard drive or at least the whole capacity of the hard drive if we were to look at our hard drive again under storage let's browse this guy we run vmo1 what it's doing is it's taking a point in time and it's writing all future changes to that next thing so here's my first my true you know hard drive of that 100 gigs it's using 5.71 for a full install of server 2019 and then my first snapshot is going here anything any changes made after that first snapshot are being written to this disk then once i made a new one any changes from after that one are being written to this disk and so on and so forth it is not healthy to maintain too many snapshots especially in production and you don't want to maintain snapshots for too long it can cause performance issues but it can also just lead to some general instability because it has to track all those changes so you're just adding unnecessary complications to your vms but for a lab environment it's fantastic all right so there's my ubuntu completed install and then windows 10 and this is always fun windows 10 asks a bunch of annoying questions every time and we can go through this pretty quickly you'll see here i'm on this desktop there this is a we talked about it before this is a pretty small ultra slim hp 8300 desktop it's only got eight gigs of ram and an ssd and an i5 processor with four cores i currently have three vms booted on this thing and they're all feeling snappy i mean there's nothing slow about these install processes so this is a very capable lab machine i'm not giving them a lot of ram fortunately with an ssd they don't need a ton of ram this is not something that you're going to be using to you know do real work on you're just booting them up in order to prove that you can and to test a couple of major features maybe sharing some files between them maybe eventually putting you know office on them or outlook in an exchange server in a vm and then connecting it to that you know connecting it to active directory joining it to the domain all things that you don't really need a ton of resources to do and the this is just one of these i recommend running two or three of these hp desktops in a group and that's probably the next step in this series that i'm doing here so probably i have several of these available to me some of them with 16 gigs of ram and i will probably be linking them together and then um breaking out of the this limited interface of esxi and going into vsphere where we can then see them all the hosts together and start making changes as a as a group as a batch rather than independently so that's all i got for today's video any questions comments thoughts in this video anything else you want to see throw it in the comments below i'll get to them um as i can and i want to thank you for watching
Info
Channel: SysAdmin Show
Views: 306
Rating: undefined out of 5
Keywords:
Id: A13ubto4fdU
Channel Id: undefined
Length: 38min 23sec (2303 seconds)
Published: Mon Aug 17 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.