Database Clustering Tutorial 5 – Setting up Ubuntu Part 1
Articles,  Blog

Database Clustering Tutorial 5 – Setting up Ubuntu Part 1

Hello! Welcome back everyone. This is Caleb from CalebTheVideoMaker2. This is your fifth video inside of your database
clustering series. Now we are going to start setting up our database
cluster. As I mentioned in previous videos, we are
going to be using virtual machines and then connecting those guys. So each virtual machine is going to be one
of our nodes in our database cluster. So to work with virtual machines there is
an application out there called virtual box. This allows you to install a computer inside
of a computer. To download this application, click this download
button on the left and then figure out what operating system you are running. I’m running OS X so that is the one I would
use. Once you got that downloaded you can install
it. It’s really simple. I’m not going to waste your time guiding you
through that process. It will look something like this. Now you can see I have a bunch of stuff already
installed. Don’t worry about that. That’s what I have used to prepare for this
video series and I just want to keep that just incase I need to go back and reference
it. What is most important is what we are going
to be creating. We are actually going to be creating three
virtual machines. The great part is though, you don’t have to
go through the entire process of setting up a machine three times. With virtual box, you can actually just create
one and then you can make a clone into the second one and the third one. You will just want to change the MAC address
which I’ll show you how to do all of that. To install our first virtual machine we are
going to need and operating system. You can download and operating system in a
file and it will be in the type .ISO. The operating system that I am going to use
is called Ubuntu. You can download that on the Ubuntu website: Now if you are working on this series for
a production environment and you have a particular clustering software that you are going to
be using, you will want to make sure that that software will be available on whatever
operating system you are going to be using. For example, the Oracle Galera cluster is
currently no offered on odd versions of Ubuntu. It should work on this one. If I scroll down you will see 17, I don’t
think it will work on that one. So we are going to go with the 16 and just
click download. No… I don’t want to donate… gosh. And there you go! It will start downloading. Give that about four days and it will finally
finish and then you can start working on building the virtual machines. Back here in virtual box after you have that
finished downloading, you can click this new button. I’ll just give this a creative name…. Essentially we want to make an operating system
that we can continually clone. So this is the blueprint for the rest of the
operating systems. So if you want to expand your cluster to….
[ding of a phone] Clair! Come on… seriously?! This is going to be the blueprint for the
rest of our operating systems so you want to give it a name such as “Starter.” You can select your operating system. We are using a type of Linux specifically
Ubuntu and then click continue. How much memory do you want to allocate? This is pretty important. I’m going to give it a lot more. I’m going to go with 4096. Click continue. Yes we want to create a virtual hard disk
now. So for this part I am going to click dynamically
allocated and this is talking about the hard disk for the virtual machine. I want to pick dynamically allocated because
the virtual machine is only going to take up as much space as it needs and the way I
can save space on my laptop. So when you click continue, this is going
to ask you the size of the virtual machine disk. This page has given me problems before because
I have a bad habit of not really reading directions… hahah! I probably shouldn’t tell that to the entire
YouTube audience, but this is the max size. This is not the size that you start with. So if you want to cap out the size at eight
gigabytes you would leave eight. But that is not nearly enough space. So I am going to go in here and put 50. But the thing is is that it is not actually
going to take 50 gigabytes. It might only take 10 gigabytes or 15 or 40. But this allows me to expand up to 50 gigabytes
if I need. Now click create. Alright! It will appear down here on this list and
I’m actually going to take it and drag it to the top. So when we have this here, we can click start
and what this is going to do is ask you to give that ISO that you downloaded. So just click this little folder here and
find that file. Click it and click open and then start. This is going to begin the set up for the
virtual machine and this is where my computer starts growling with the fans so if you hear
a weird sounds that’s what that is. When that is done loading it is going to ask
you whether you want to try or install, obviously we are going to want to install so we can
use it more than once. Yes we are going to download updates. Continue. Yes, erase disk and install Ubuntu is fine. That is specifically talking about the virtual
disk that we created when we created this virtual machine so this does not have access
to your hard drive. It’s not going to delete everything. And you can go through the rest of the installation
process. Its not too complicated. Now here you are going to want to fill out
some information and I’m going to give a really secure password… click continue. Once that is finally done you are going to
click restart and at this screen where it says please remove the installation medium
you can just press enter. There you go! The Ubuntu desktop is now set up! Oh yeah! [Happy dancing and snapping fingers] So would
say that is probably enough information for one video. In the next video I am going to be talking
about how to instal everything we need to install to do SSH and how to clone these desktops. It’s going to be great so make sure you check
out the next video. Thank you guys for watching so much! I really appreciate it. If you don’t mind just do me a quick favor
and click the subscribe button. That will tell me that you like my content
and that will encourage me to make more stuff. So thank you for everything and I will see
you in the next video.

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *