Home
Username:
Password:
Using Security Tools Tutorials

General Utilities / VMware pt. 2

Subtitles of the Movie

The next thing I want to do is show you how to install one. Let's go ahead and do that. We're going to put a CD in and we're going to actually install a virtual machine so we're going to go up here and say Virtual Machine Create and we have to tell it a few things before it can create a virtual machine. We're going to install an Ubuntu box. This is actually quite easy to do. We'll give it a name, click Next and you want to set up the virtual machine on a partition or drive that has enough space to contain it. Now, virtual machines basically are files on your hard disk, even their own virtual hard drives are simply huge files so you want to make sure you have enough room on the disk that you install it on. So you can choose different operating systems. I'm going to choose Linux. As you can see, you can install a wide variety of operating systems. I'm going to go with 32-bit Ubuntu Linux, click Next and I can choose the different memory sizes I would like. I'm going to go with the recommended; half a gig. And I can also choose to assign multiple processors as well. We're going to go with the defaults and choose one. Now, the hard disk options are where you probably need to make your best choices. You can use an existing virtual disk if you already have one from another virtual machine or you can create one. If you know that this virtual machine is just simply going to be something like a CD boot machine where you might test live distributions on, you don't have to add a hard disk at all. Let's go ahead and create a new virtual disk though and you don't have to assign it a huge amount of space. In fact, unless this is a production machine, a test machine with eight gig is probably just fine to do some testing with but it's up to you. Keep in mind it will occupy a huge amount of space on your actual hard drive so I have 20 gig of space available on this drive so I don't want to make it too big. So I'm going to go with the standard eight gig size and you can have different file options. You can allocate all the disk space right now and make it a huge eight-gig file or you can split the disk into two-gig files and it will allocate the space as it grows; as it needs the space. For performance purposes, I usually recommend that you allocate the disk space immediately. We're going to go ahead for not for timeliness sake and split the disk. When you allocate all this space now, it takes usually a good amount of time to format and prepare the disk. You can also pick the disk mode and we're going to say that it is not affected by snapshots. We're going to leave the changes to the disk as Persistent. In other words, any changes we make, let's say we install a new piece of software on the disk, if it's persistent, those changes will be saved. If it's not persistent, then any changes we make will go away when we turn the disk, when we turn the computer off. So if we screw something up, it doesn't have to be that way forever. We can make it a non-persistent of we like. We can also change virtual device nodes here and we can make them different SCSI adapters or device ids if we so choose. There's also a policy node here we can look at and basically optimize write caching for safety or for performance. For a lab environment, performance might be your best bet. For safety you might want to use that in a production environment when changes to the disk are important enough that you want to make sure that everything writes correctly. So we made our settings there and we're going to go ahead and leave it that way. Now one note here as well, we could go with an IDE disk of we like but VMware in general treats SCSI devices a little bit better. The performance is usually a little bit better so I would go with SCSI disks both on the Linux and Windows virtual machines just for performance. So we've made our changes to our hard disk. Let's go ahead and click next. Now, we can choose to add a network adapter this time and a lot of these hardware changes we can make after the fact as well, after they computer's already installed and running. Let's go ahead and add a network adapter and you have three different options here normally. You've got bridged, which means it will pick up an IP address on the host network. In other words, it's like having a separate, physical computer. It will go to your own physical network's DHCP server and get an IP address. You can also have host only which means it will only connect to another VM and will not interact with anything on the outside network in the outside world and that's a good option if you're doing some things that may be a little dangerous security wise, if you're testing some malware or trying to look and see what makes malware tick if you're trying to reverse engineer it or if you know you have a possible virus on the virtual machine and you want to analyze it you might want to do that. Oh, or if you simply just want to isolate machines from the network so you can get a clear picture of how they're interacting. You can also use NAT and NAT essentially uses your host operating systems network card to get a connection to the outside world or the Internet and it actually takes the DHCP address from your host operating system from VMware. So we're going to make this a NAT for right now. We're going to click Next and you can also choose to use different options for your CD-ROM drive and use the actual physical drive that's attached to your host system or you can use an ISO image. Let's say you want to boot off a live Linux distribution, for example. You can do that as well or you can choose not to add one. I'm going to go with the default and use the physical drive and you can actually determine which drive loader that's going to pop up as and whether it's connected at power on and so forth and you can also determine whether it's an IDE drive or SCSI or so forth. Let's click Next and then we're going to determine whether we want to be able to use a floppy image. I'm going to leave the defaults as they are. If you want to use an image file, you would specify it there. We're not going to use that floppy image so you can also determine what kind of USB controller is attached to the virtual machine. You can add one or not. That way you can choose USB devices that are plugged into the physical host machine to be used on the virtual machine as well. Let's go ahead and choose to add one. Now we've set up the virtual machine. Notice we haven't even installed the operating system yet but we had to configure this. In other words, we just built a computer; a virtual computer. We added hardware, we added memory, we determined how the hard drive was going to function and so forth and what size it was going to be so now we have our options. We can choose to add hardware now as well; an additional network card or we can do this later and that's what we're going to do. Let's go ahead and finish this up and what it's going to do is create this virtual machine setup and basically all these are is files on the operating system now. They're sitting on the hard drive. Ubuntu is not loaded yet so how we would get this to work is we would power this on and then we would actually install our operating system. So let's power it on and let's go ahead and activate a console so we can interact with the virtual machine and see what it's doing and it's detected the CD because right now there's nothing on that virtual hard drive and as you can see, it's actually started the CD setup into Ubuntu so we can make the different changes we want to make and if you've ever installed Ubuntu or any other Linux distribution before, then you kind of know how it's going to go from here. We can choose to install it or we can run the live image as we see fit. From here on out this is just like installing a normal computer. Now, once you install it, you would configure of course its hardware, its network address and so forth and again, we can switch back and forth between virtual machines from this console or we can go ahead and make this a little bit bigger there and now it looks like we have the full Desktop and we're going to install Ubuntu. Now this is installing, we basically have a new virtual machine, a new computer. So let's switch back here. I'm going to let this installation go ahead and run and occasionally we may have to interact with it. As you can see, we have some other virtual machines here that are running. We've got the openSUSE 11 box still running of course and we can interact with it as we see fit and that essentially is all there is to VMware Server. That's the version we're going to use throughout this course so you'll get to see a little bit more as we go and you can see how security professionals use VMware or any other virtualization product to test security tools and use them in security configurations. So you're going to see a little bit more of this as we go through the course.

Tutorial Information

Course: Using Security Tools
Author: Bobby Rogers
SKU: 34068
ISBN: 1-935320-88-2
Release Date: 2009-12-04
Duration: 9 hrs / 91 lessons
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available