VirtualBox for Virtualization

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello again as you know I'm Eli the computer guy over here for Eli the computer guy calm and everyman IT comm today's class is VirtualBox for virtualization so so I'm sure you guys are interested in virtualization it's one of the big new cloud technologies new been around forever but but most people think its new basically what virtualization allows you to do is to put multiple operating systems onto one physical computer why VirtualBox is nice is because especially for new technicians it is a lot easier to understand than something called a hypervisor so a hypervisor is something that's a little more complicated a little more technical well piece of software like VirtualBox aren't quite so complicated they aren't quite so technical what happens with VirtualBox is you you start with a computer a normal computer whether it's Linux you know a Bunton with a desktop whether it's Windows XP Windows 7 Mac OS X you start with your normal computer you then install VirtualBox the application onto that computer and then you install operating systems into virtual machines on VirtualBox that's installed on the computer so you still have all your GUI interfaces you can still you know move the mouse around you still have an environment that you're used to when you start going to play with these virtual machines again if you go to a hypervisor a hypervisor is a different type of virtualization software what happens is when the the hypervisor boots up you know you sit down at the computer the hypervisor boots and basically it tells you an IP address and a couple other pieces of information if you don't know what you're doing you're stuck well the nice part with VirtualBox is again you install VirtualBox on your Windows computer or your Mac computer it's an application just like any other application you then create virtual machines within VirtualBox and then you install the operating systems onto those virtual machines so basically you know you have let's say your monitor here you can literally open up one window in the monitor and have it be a little server you can open up a different window on the monitor and have it be I don't know Windows 2008 server and then if you're really screwing around you can open up another window on your computer and have it be a Windows 98 machine all of these different virtual machines these instances can run on the same physical computer and while this is happening you know you can go and check out look too so that is what makes VirtualBox cool is an application you install on your computer then you install different virtual machines onto VirtualBox there are other types of virtualization software out there like VirtualBox there's a Virtual PC from Microsoft there's VMware has a few different options I like VirtualBox best because it is completely free especially for personal and evaluation use there's some fees sometimes for commercial use but by and large it's free also for commercial use and it works with almost all operating systems I used to use Virtual PC a lot Microsoft's of virtualization software in the past but I found it did not work very well with Linux and so so that was a problem so with me I use VirtualBox to very easily be able to create little software environments or operating system environments play with the operating systems that delete the entire operating system or do do whatever I want the other thing to remember in this environment we have multiple computers virtual computers running on one physical computer is all these virtual machines can have their own real IP address through NAT they are able to talk to each other so this can have an IP address of 10.1 de 10.5 listening 10.1 and 23 10.1 and 100 what this net' why this networking is important is if you want to do things like I do you know play around with Apache web servers or try to develop web applications you can create a real web server and be able to access it from the local computer that you're on so I can create a virtual machine here with anacs apache web server and then on the computer this is installed on on the vista machine or the windows 7 machine i can open up a web browser and go to this virtual a virtual computer the other thing is if you want to play around with things is let's say if you're studying for the Windows Microsoft tests so the mcse or and the cp+ IT whatever that all that stuff is called well as long as you have enough RAM and resources you can create five or six virtual computers on your one computer and actually have them networking and talking to each other you can have Active Directory replication sites and you gone god knows what else so that is why VirtualBox is very good it's very easy to use I'm going to take you up to my computer I'm gonna sit down show you how it works again VirtualBox is completely free for a home and evaluation use and it's almost always free for most commercial uses it's pretty easy to learn as long as you know the basics of computers it's no big deal so with that let's go up to and actually show you how this thing works so here we are on my Windows 7 computer so so this is a Windows 7 computer that I use every day and of course as I experiment with things experiment with Linux experiment with different Windows operating systems I like to be able to create operating systems be able to just do really stupid things to them and then be able to just kind of throw them away or reset them back to the beginning so that's where VirtualBox makes my life very easy so the first thing that you need to do in order to get VirtualBox is simply go to virtualbox.org once you go to virtualbox.org you just go to the download section and from here you can download VirtualBox so one of the important things that you need to understand is the difference between the platform package and the extension pack so right now as I understand it this may change whatever just right now legally you are allowed to use the the base components for VirtualBox completely free for either home or commercial use so if you're a home user you know you're some geek playing around is free time you can use VirtualBox or if your your core user you can use VirtualBox so you know Microsoft could have VirtualBox running on a system somewhere as long as you use the basic platform so this is the basic configuration panel it allows you to create the virtual machines etc on top of that you can install what is called the extension pack the extension pack allows for USB 2.0 support remote desktop protocol and a couple of other things for some reason Oracle has now decided that the extension pack is something that you need to pay for so it's a license for the extension pack it says down here VirtualBox personal use and evaluation license so if you run a company and you're going to use the extension pack you're only allowed to use this free evaluation if you put this onto a mission-critical system you're supposed to pay them some amount of money I don't know what the amount of money is you know you contact them in order to figure that out but the important thing now is as you can see there are installers for Windows OS X Linux Solaris etc so for us in order to install the Windows host we would just go here and click this and this would download and then we could run the installer now this is this operating system is what you are going to install VirtualBox on not what will be installed on VirtualBox so I have a Windows 7 computer therefore I download Windows hosts if I had a Mac computer this was running on I download OS X if I had Linux so download Linux this does not mean that if I'm going to be installing Linux on my Windows 7 computer I need the Linux no no yes this is what you were going to be installing VirtualBox on so all you would do is you'll click this download leak and then you would install it I already have this installed on my computer it's a very very simple installer I don't think I have to walk you through it so I'm not going to so now that we've downloaded it you can see that I have the little Oracle VirtualBox link on my desktop in order to start the VirtualBox all you have to do is double click on it once you double click on it you will get this control panel so over on this left-hand side this will show the different virtual computers that I have created with VirtualBox so I have an abundant bun 2 server user oh and here's a little test that I was playing around with now one thing you're going to notice in this this the server name is since I play around with these little test boxes I am not worried about security I know some people are going to roll their eyes you're going to say you should always be worried about security well I'm not worried about security at least on test boxes so one of the things I do to make my life easier is I put the username and the password for the system in the Virtual Box a computer the the name here the reason is is because sometimes I'll use one password or another and if I come back five months from now I may forget what password I used but by putting the username password right in there you know just just makes makes life pretty easy then so these are the different different Virtual Box servers or instances that I've created let's go to create a new one in order to create a new one you just create this new new box right here and this wizard will walk you through creating a new virtual machine now this is not the operating system yet this is just the machine you're going to run the operating system on so you here you click Next then you say you know what is this this this computer you're going to create what is the name you want to have for us so we'll do a bun to test - and then I'll put user 1 2 3 4 5 6 then it's asking what type of operating system are you going to install Microsoft Linux Solaris BSD IBM it does say Mac Mac OS X here honestly I've never done this it says only OS X Server I'm not sure if you can really install Mac OS X you might want to try but we're going to do Linux and then we're going to select a bun - so it has the option for Fedora gin to mentor a Yeti at Red Hat the important thing here is that VirtualBox it will configure this virtual machine based on the operating system you say you're going to install so technically if you put Windows here is the operating system you could install Linux but it might act a little quirky so so so don't do it then you need to click Next then it asks you how much RAM do you want this computer half right now starts at 512 my computer has all the way for gigs now this is the RAM that is going to be allocated to this virtual computer as soon as the computer turns on so as soon as the computer turns on however much RAM you have here is automatically going to be allocated by this machine so be very very very very careful especially when you're playing around with virtual machines it's easy to open up two or three and then you end up crashing the main computer that everything is sold on because you used up all of its Bram so so only put in the amount of memory that you're going to need for the server to run so like with the Ubuntu server 512 worth of RAM is more than enough if we were doing a Vista machine we might do two gigs but that's that's something to keep in mind remember this is additive so if you have multiple virtual machines running you have to add up all the RAM you've allocated for them and then you have to remember that the machine all this is installed on is using Ram and that that's how much RAM you have to have so see next uh do we want to create this is a virtual hard disk so we'll create a new virtual hard disk that gives you a couple of options here I would say is just stay with VDI until you know any better click Next now it's going to ask you dynamically neidell dynamically allocated or fixed sized what dynamically what this means is when you're going to create the virtual hard drive it is going to ask you how big you want that hard drive to be do you want it to be five gigs 10 gigs 100 gigs well if you say fixed size then what VirtualBox will do is it will allocate whatever that can put that size is in the entirety so if you say this is going to be a 10 gig hard drive it will create a 10 gig hard drive it'll it'll allocate that much space what dynamically means is that it will grow to fill the space you said you wanted to take up so let's say you say I want this hard drive to to be up to 50 gigs in size well when you install Ubuntu and you install all your software you might only be at 5 gigs well then as you install more stuff or as more things are added to your server it will then increase in size so it'll start at 5 gigs and I'll go to 6 gigs and I'll go to 10 gigs if you need and then it'll go all the way up to 50 gigs and that that that's where it'll start so that's the difference between dynamically allocated and fixed size I would say just go with dynamically allocated and then be careful and make sure you create a hard drive size that's big enough for what you're going to be need to be doing so the basic here is an 8 gig hard drive size you know that's fine for what we're doing make sure this is going to be fine for what you're doing though because once you set this hard drive size it's just as much a pain in the butt to change the hard drive size as it is in the real world so if you if you say do you want this to be an 8 gig hard drive and then you decide later you want to be a 10 gig hard drive you have to go through partition resizing and just just a whole bunch of annoying tedious crap so try to make sure that that whatever hard drive size you pick in the beginning is what you want then you click Next and then you create the virtual machine there we go and now we have Ubuntu test to user 1 2 3 4 5 6 so when we double-click on this we will be able to install an operating system now the nice part with with this virtual machine is not only can you install an operating system using the CD drive or DVD drive on your computer but you can install an operating system straight from the ISO image so if you have downloaded an ISO of Windows you've dialed an ISO of Ubuntu you can install directly from that ISO so now in order to start this virtual server all we're going to have to do is double click it and that will be the equivalent of turning it on so we double click and then we get this page here you've started a newly created virtual machine for the first time this will helpful will help you install an operating system you then click Next and it says what where do you want to install the operating system from so do you want it to install from the CD Drive do you want it to install from an ISO etc this little folder over here is where you can go to browse for an ISO so I'm in the user download section and I can just double click this ubuntu 11.10 so from there I can then click Next and then I can click start and now look at this I am literally installing Ubuntu into this little window so this is going to be its own full-fledged operating system so it's asking if I want to English do I want to install the server it's got some other stuff you know English again United States blah blah blah do you want to detect the keyboard no so basically this is where you can go through and you can actually install the Ubuntu server or Windows server or anything else one thing with this is if your mouse gets captured within this window so you can see my mouse right over here to the right hand side if I go over it's now within this this this virtual server sometimes you have to hit the right the right so over here on the right the right control button to release your mouse from the virtual machine so if you if you click on a virtual machine and you can't get the mouse out of the virtual machine click on the right control button and that will that will get your mouse out of them so now as you can see we're running through a full installation process now I don't want to go through this whole installation process because you already know how to install Ubuntu if you don't know how to install a bun to go watch my other video class so what I can do here which is really cool is I can actually hit pause and this literally pauses the machine at this exact moment so if for some reason I need to go away I need to do something this is just a test literally you can just pause and this this this virtual machine is paused right here I can close umm close this box I can do save the Machine State and now that server is stuck in that and exactly where what so it's in the middle of the installation procedure now for me if I want to actually be able to use a server that I've always already created you'll notice it's a bun 2 server here that's powered off again I can we'll click this this will turn on this virtual server oops devices so here so right now for whatever reason this virtual server is trying to boot off that ISO that I made for the other machine so in the window up here we can go to devices cd/dvd devices and I can uncheck check the Xubuntu I so now hopefully when I restart this it'll work there we go now we're booting into normal normal a Bunter so this is an about to serve or that I've created in order to play around with some scripting that you guys have been asking for okay now it's running through and we've got a user login so I can login as user up see I can type in my password and now we're at the Ubuntu Ubuntu screen so you know I can do top I can see what this machine is doing let's see control see I can do I F config this will show you that this machine has a real IP address so 10.0 2.15 so this is a real Obon - server that really can be accessed by by other computers on this local network here so so this is a real server it works just like a real server etc etc etc now again if I want to pause the machine I can pause the machine if I can reset it basically means reboot I can do all these things here so what we'll do is we'll do an a CPI shutdown that basically sends the shutdown command to the system and we'll hit OK now so that's all there is so we've seen how to download VirtualBox we've seen how to create a virtual machine and VirtualBox and then we've seen how to install an operating system onto that virtual machine and I've shown you a little bit about playing with a virtual machine once it's up and running now you can make changes to the virtual machine as long as that the computer the virtual machine is powered off so it's powered off you can change some of the settings for the virtual machine to do that you can just right-click on the virtual machine you want to play with and you can go to settings from here you can change a number of things so you can change what the the name of it is we can go over to system we can say how much RAM do you want this thing to have so let's say you want to make sure the computer runs really well when you first install it so you can give it two gigs of RAM and then you see that it doesn't need to have two gigs of RAM well here you can adjust it to whatever you want so if you were at 512 you can say well the next time it starts I want to give 1633 and the time after that I wanted to give it 128 and you can play around with it this is very very good for testing purposes so at my repair shop right now we are playing around with creating specialized Linux servers that we are going to sell to our clients well this is a very easy way for us to test our servers based on different configurations if it's a basic Samba server and people are just doing backup stuff at night you know how much RAM does it really need well using this virtual machine we can play around with it and see how much RAM it needs you can go down to display you can say you know how much video memory you want this thing to have how many monitors you can go to storage you can add hard drives you go to audio you want audio enable networking serial ports USB etc so that is basically a VirtualBox in a nutshell again I like it the best because it just works with everything you can install it on Windows you can solve it on Linux you can install on a Mac and everything seems to install on it relatively well you can install Linux on it you can install Windows on it you can it says you can install Mac I don't know I haven't played with that some of the other stuff like virtual PC works very very very good for Windows but only things like Linux it's not always so great but that's that's just the overview of VirtualBox so with that let's go back out to the real world so for some final thoughts so that's all there is to installing VirtualBox and installing virtual machines on VirtualBox and then playing with the virtual machines on VirtualBox it's all pretty simple I say VirtualBox is easy it's nice it's free it's just a good thing all in all the the one warning or the two warnings that will give you the only warnings for this class is remember that VirtualBox was purchased by Sun Microsystems that was a lover of open source software which was then purchased by Oracle which is a hater of open source software so right now I don't really understand where the ownership of VirtualBox is in the world but the parent company VirtualBox seems to be Oracle Oracle in the past has been a bit of a bastard with with patents and things so just realize you know I'm doing this class like 11-11-11 that's kind of funny I'm doing doing this so basically November 2011 the the licensing for VirtualBox may change and so when you're installing this especially in a production environment make sure you understand what the current licensing is the only other thing that I will say is is if you're going to be doing networking you're going to be doing networking services like I talked about in the introduction is that be careful because sometimes the virtualized networking can mess with the networking of the local computer so I've installed virtual machines and then had my email stopped working on my local computer I don't really know why that is it's a problem with the whole natty so it's just something to be aware of if your local computer and your virtual machines are all going to be doing networking functions just make sure they actually work don't assume that they're going to so with that as you know I'm Eli the computer guy this was worth toolbox for virtualization I'm here for Eli the computer guy comm and every day on i.t comm as always if you like these classes please give us a thumbs up you know tell all your friends etc etc etc the Internet is a big big peer pressure group thing so you know more thumbs up you get the better so with that I'm Eli the computer guy I look forward to seeing at the next class
Info
Channel: Eli the Computer Guy
Views: 59,088
Rating: undefined out of 5
Keywords: VirtualBox, for, Virtualization, Software Tutorial
Id: lUs-lePHb0o
Channel Id: undefined
Length: 24min 25sec (1465 seconds)
Published: Mon Nov 07 2011
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.