Monday Jun 02, 2008

Exploring Sun's xVM VirtualBox Part II

This is Part II as I mentioned is my previous post on Exploring Sun's xVMVirtualBox



You'll first need to download VirtualBox, by clicking here.

Select the Platform and Language you desire. In my case since my Toshiba M9 laptop has a Intel dual core processor, and running Solaris Nevada Build 90, I selected the Platform OpenSolaris AMD64.

With VirtualBox, you can run unmodified operating systems – including all of the software that is installed on them – directly on top of your existing operating system, in a special environment that is called a “virtual machine”. Your physical computer is then usually called the “host”, while the virtual machine is often called a “guest”.


Part II

Step1: Let's start by launching Sun xVM VirtualBox.

 root@sunrise8 # /opt/VirtualBox/VirtualBox

You will now see the Welcome to VirtualBox window.

Click image to enlarge

Step2: Let's create a new virtual machine. Start by clicking on the New button in the VirtualBox. You now get a dialog window stating, Welcome to the New Virtual machine Wizard box! Select the Next button.


Click image to enlarge

Step3: In the VM Name and OS Type dialog window, give the name to the new Virtual Machine and the OS Type. In this case you'll notice the name I've selected is WinXP and the OS Type I've selected from the OS Type drop-down menu is Windows XP. Now click the Next button.


Click image to enlarge

Step4: In the Create New Virtual Machine Memory dialog you can adjust the memory size of your virtual machine. You'll notice it gives you a recommended base memory size of 192MB. In this case I've chosen to give this virtual machine 512MB. You do this by moving the Base Memory Size Slide Bar or just change the number in the associated box. After making your the necessary changes click the Next button.


Click image to enlarge

Step5: In the Create New Virtual Machine Virtual Hard Disk dialog, you will select the image to be used as the boot hard disk for the virtual machine. You can either create a new hard disk using the New button or select an existing hard disk image from the drop-down list or by pressing the Existing button to invoke the Virtual Disk Manager dialog.


In this case I will choose New to create a new hard disk.


Click image to enlarge

Step6: The Welcome to the New Virtual Disk Wizard dialog will appear which will help you create a new virtual hard disks image for your virtual machine.


In this case we will using the Next button to go to the next page of the wizard.


Click image to enlarge

Step7: The Virtual Disk Image Type dialog window, you will now have two choices for your virtual disk image type. You can have either a dynamic expanding image, or a fixed-sized image. Please read the captions for each choice. Choice wisely!!!


In our case here, since I have enough disk space, we'll choose the dynamic expanding image.


Click image to enlarge

Step8: In the Virtual Disk Location and Size dialog you can press the select buttonto select the location and name of the file to store the virtual hard disk image, or type the file name in the entry field.


For the Image File Name I've selected the name WinXP.  Also in this dialog window you will select the size of the virtual hard disk image in megabytes. This size will be reported to the Guest OS as the size of the virtual hard disk.


By default the wizard has chosen 10.00GB for our virtual hard disk image size. For this exercise we'll leave it at 10GB Then click the Next button


Note: If you selected dynamic expanding image in the previous Virtual Disk Image Type dialog window above, the size of the image that is created here will not necessarily be 10GB, but could expand if needed to the full 10GB size. Keep your disk space in mind!!!!


Click image to enlarge

Step9: The Create New Virtual Disk Summary dialog window will appear to give you a summary of the how your new virtual hard disk will be created.


The following screen shows your virtual hard disk image parameters. You can go back and change things if you'd like or in our case we will click the Finish button.


Click image to enlarge

Step10: The Virtual Hard Disk dialog showing the Boot hard Disk (Primary Master)


This dialog well show you the path to the Virtual Hard Disk Image file. Click the Next button. 


Click image to enlarge

Step11: The Create New Virtual Machine Summary dialog will now show you the parameters of your new soon to be created virtual machine. Click the Finish button 


Click image to enlarge

The next screenshot of the Sun xVM VirtualBox now shows the Virtual Machines that were created.


Click image to enlarge

Step12: From the Sun xVM VirtualBox dialog window, in our case here, we will need change some details shown on the right in the dialog window. For installing the Windows XP image we will click on the CD/DVD-ROM details link and change the following parameters.


Note: I ignored the following error dialog box that appeared, warning you about the USB Proxy Service has not been ported to this host. I just clicked OK to move ahead.


Click image to enlarge

In the WinXP Settings dialog window, I've selected the Mount CD/DVD-ROM checkbox, and the ISO Image File checkbox. Click the Select folder next to the drop-down  box, to tell the installer the location of the OS image file. The Virtual Disk Manager dialog will open where you can added image locations. After adding the location of the image, click the Select button, then you can click the OK button, in this case the WinXP Settings dialog window.


Click image to enlarge

Step13: Now you will see the Sun xVM VirtualBox dialog window with changes you made above, showing the details of the new WinXP virtual machine.


Highlight the Virtual Machine you want to install, in this case WinXP, and click the Start button.


Click image to enlarge

After clicking the Start Button you will now see the following WinXp Running Sun xVM VirtualBox informational dialog box.


Note: At this point, the Auto capture keyboard option is turned on. This will cause the Virtual Machine to automatically capture the keyboard everytime the VM window is activated and make it unavailable to other applications running on your host machine. You can press the host key identified here as the Right Ctrl key to uncapture the keyboard and mouse.


Click image to enlarge

Step14: The above dialog window will now change to a blue Windows Setup dialog window, where you will be prompted for various key strokes.  This will begin the setup of the Windows XP OS for the new Virtual Machine.


Click image to enlarge

If you are at all familiar with setting up Windows XP, the next several screenshots will be very familiar to you then. You'll now be prepare the live image for the new virtual machine for installation. On the this next Windows XP Setupp dialog window, you prepare your new WinXP VM for installation. For this exercise we will just hit the Enter Key to continue.


Click image to enlarge

Now you'll be asked to accept the Windows XP Licensing Agreement. Hit the F8 Key


Click image to enlarge

After accept the Windows XP Licensing Agreement, you'll now be presented with the Windows XP Professional dialog window showing you the disk partition layout for you new WinXP virtual machine. As you'll notice the size of the partition is what we stated in the beginning when you were setting up the WinXP VM. Hit the Enter Key to start the installation.


Click image to enlarge

This following Windows XP Professional dialog window we will select the Filesystem type for Windows XP. In this exercise we will format the partition to be NTFS.


Click image to enlarge

The Windows XP Professional Setup will now begin to format the partition.


Click image to enlarge

The Windows XP Professional Setup is now verifying the partition.


Click image to enlarge

The Windows XP Professional Setup is now copying files.


Click image to enlarge

Step15: You will now be presented with the Windows XP Regional and Language dialog window. Make your appropriate changes, and click the Next button.


Click image to enlarge

Windows allow you to personalize your software. Fill in the appropriate fields and click the Next button.


Click image to enlarge

You'll now be asked to enter your Windows XP product Key information and clicked the Next button.


Click image to enlarge

You'll now be asked to enter your computer name and Administrator password, then click the Next button.


Click image to enlarge

You'll now be asked to enter your Date and Timezone information, then click the Next button.


Click image to enlarge

Windows will now make your changes and move on.


Click image to enlarge

You will will now be presented with the Network Settings dialog window. Here you have two choices, Typical or Custom. For this exercise we will select the Typical check box and click the Next button.


Click image to enlarge

Windows will now ask about your Workgroup and Computer Domain. For this exercise we will except the default as shown and click the Next button.


Click image to enlarge

Windows is now copying files


Click image to enlarge

Windows Installer is now completed file copies and is moving on.


Click image to enlarge

Step16: VirtualBox will now allow you to adjust the desktop size. Click the OK button.


Click image to enlarge

You;ll now see a Monitor Settings dialog box, where Windows has now adjusted your screen resolution. If you can read the text then click the OK button.


Click image to enlarge

Windows XP will now begin to launch, so that you can completed some necessary questions about your installation.


Click image to enlarge


Click image to enlarge

Loading Windows XP


Click image to enlarge

Step17: You now see the Welcome To Microsoft Windows window thanking you for purchasing Windows. The next several screens you be setting up various pieces of Windows XP such as Security, Internet Connectivity, and Windows activation. Click the Next button.


Click image to enlarge

Here you will be asked to setup Windows Security features. For this exercise we will elect not to set up security at this time. I've checked the Not Right Now box and then click the Next button.


Click image to enlarge

Here Windows is checking Internet Connectivity. When completed, click the Next button.


Click image to enlarge

Windows will now ask you if this computer connect to the Internet directly, or through another network. When completed, click the Next button.


Click image to enlarge

Windows is now ready to be activated. For the purpose of this exercise I will not activate Windows at this time. I checked the appropriate box and clicked the Next button.


Click image to enlarge

Windows will now ask you you will use this computer. You can set-up multiple users at this time if you'd like. For this exercise I just set-up one user,
and clicked the Next button.


Click image to enlarge

You now get the Windows Thank You screen.  Clicked the Finish button.


Click image to enlarge

Windows will now launch, and you'll be presented with your Windows desktop.


Click image to enlarge

Step18: Let's launch a browser. As you can see I can get to the Internet.


Click image to enlarge

This next screenshot, I've launched a terminal window showing I've successfully booted a VM running OpenSolaris on a ZFS root filesystem, along with my WIndows XP VM as well.


Click image to enlarge

Step19: Now we'll load the Sun's xVM Windows Guest Additions.


Click image to enlarge

On this next screen you'll be asked to accept the License Agreement. I've checked the appropriate box and clicked the Next button.


Click image to enlarge

The Sun's xVM Windows Guest Additions will now ask you to choose a location to install the software. for this exercise I will take the default location, and clicked the Install button


Click image to enlarge

The Sun's xVM Windows Guest Additions will now be installed.


Click image to enlarge

You'll now be presented with a Hardware Installation dialog window that will tell you the the software you installed for the VirtualBox Graphics Adapter does not pass the Windows logo testing to verify it's compatibility with Windows XP. Read carefully!!  For this exercise I clicked the Continue Anyway button.


Click image to enlarge

This next screen, you'll be asked to complete the Sun's xVM Windows Guest Additions, by rebooting the Windows XP Guest OS. Check the appropriate box and clicked the Finish button.


Click image to enlarge<

There you go, "A basic Windows XP Guest OS on VirtualBox"


Click image to enlarge

Friday May 16, 2008

Exploring Sun's xVM VirtualBox

If you're like most people, when it comes to Virtualization you've probably heard the names VMware or Xen.


There is a new name in town, VirtualBox. VirtualBox


VirtualBox is a family of powerful x86 virtualization products for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL). See "About VirtualBox" for an introduction.


Since being acquired by Sun Microsystems, VirtualBox Version 1.6  is the first major release since the acquisition.


Version 1.6, has new host platform support, for Mac and Solaris, as well as new high performance virtual devices, and improved scalability.


VirtualBox also runs on Windows, Linux, Macintosh and OpenSolaris hosts and supports a large number of guest operating systems including but not limited to Windows (NT 4.0, 2000, XP, Server 2003, Vista), DOS/Windows 3.x, Linux (2.4 and 2.6), and OpenBSD.



Well let's give it a look!  In this exercise, I already have VirtualBox installed, and wanted to create two local VM's (local machines). Part I OpenSolaris 2008.05, and Part II Windows XP


Equipment Used:



  • Toshiba M9 laptop
    Intel® Core™2 Duo Processor
    4gb memory


You'll first need to download VirtualBox, by clicking here.


Select the Platform and Language you desire. In my case since my Toshiba M9 laptop has a Intel dual core processor, and running Solaris Nevada Build 87, I selected the Platform OpenSolaris AMD64.


With VirtualBox, you can run unmodified operating systems – including all of the software that is installed on them – directly on top of your existing operating system, in a special environment that is called a “virtual machine”. Your physical computer is then usually called the “host”, while the virtual machine is often called a “guest”.


Part I


Step1: Let's start by launching Sun xVM VirtualBox.


 root@sunrise8 # /opt/VirtualBox/VirtualBox

You will now see the Welcome to VirtualBox window



Click image to enlarge



Step2: Let's create a new virtual machine. Start by clicking on the New button in the VirtualBox. You now get a dialog window stating, Welcome to the New Virtual machine Wizard box! Select the Next button.



Click image to enlarge



Step3: In the VM Name and OS Type dialog window, give the name to the new Virtual Machine and the OS Type. In this case you'll notice the name I've selected is OpenSolaris2008.05 and the OS Type I've selected from the OS Type drop-down menu is Solaris. Now click the Next button.


Click image to enlarge

Step4: In the Create New Virtual Machine Memory dialog you can adjust the memory size of your virtual machine. You'll notice it gives you a recommended base memory size of 512mb. In this case I've chosen to give this virtual machine 1024mb or 1gb. You do this by moving the Base Memory Size Slide Bar or just change the number in the associated box. After making your the necessary changes click the Next button.



Click image to enlarge



Step5: In the Create New Virtual Machine Virtual Hard Disk dialog, you will select the image to be used as the boot hard disk for the virtual machine. You can either create a new hard disk using the New button or select an existing hard disk image from the drop-down list or by pressing the Existing button to invoke the Virtual Disk Manager dialog.


In this case I will choose New to create a new hard disk.



Click image to enlarge



Step6: The Welcome to the New Virtual Disk Wizard dialog will appear which will help you create a new virtual hard disks image for your virtual machine.


In this case we will using the Next button to go to the next page of the wizard.



Click image to enlarge



Step7: The Virtual Disk Image Type dialog window, you will now have two choices for your virtual disk image type. You can have either a dynamic expanding image, or a fixed-sized image. Please read the captions for each choice. Choice wisely!!!


In our case here, since I have enough disk space, we'll choose the dynamic expanding image.



Click image to enlarge



Step8: In the Virtual Disk Location and Size dialog you can press the select buttonto select the location and name of the file to store the virtual hard disk image, or type the file name in the entry field.


In our case shown here the Image File Name was pre-selected for us call OpenSolairs2008.05.  Also in this dialog window you will select the size of the virtual hard disk image in megabytes. This size will be reported to the Guest OS as the size of the virtual hard disk.


By default the wizard has chosen 16.00gb for our virtual hard disk image size. I will change this to 10gb for this exercise. Then click the Next button


Note: If you selected dynamic expanding image in the previous Virtual Disk Image Type dialog window above, the size of the image that is created here will not necessarily be 10gb, but could expand if needed to the full 10gb size. Keep your disk space in mind!!!!



Click image to enlarge



Step9: The Create New Virtual Disk Summary dialog window will appear to give you a summary of the how your new virtual hard disk will be created.


The following screen shows your virtual hard disk image parameters. You can go back and change things if you'd like or in our case we will click the Finish button.



Click image to enlarge



Step10: The Virtual Hard Disk dialog showing the Boot hard Disk (Primary Master)


This dialog well show you the path to the Virtual Hard Disk Image file. Click the Next button. 



Click image to enlarge



Step11: The Create New Virtual Machine Summary dialog will now show you the parameters of your new soon to be created virtual machine.


Click the Finish button 



Click image to enlarge



Note: To conserve the amount of reading in this post, I repeated Step1 through Step11 for my Windows XP virtual machine.


The next screenshot of the Sun xVM VirtualBox now shows the two Virtual Machines that are ready to be created and loaded.



Click image to enlarge



Step12: From the Sun xVM VirtualBox dialog window, in our case here, we will need change some details shown on the right in the dialog window. For installing the the OpenSolaris2008.05 OS image and the WIndows XP image we will click on the CD/DVD-ROM details link and change the following parameters.


Note: I ignored the following error dialog box that appeared, warning me about the USB Proxy Service has not been ported to this host. I just clicked OK to move ahead.


In the OpenSolaris2008.05 Settings dialog window, I've selected the Mount CD/DVD-ROM checkbox, and the ISO Image File checkbox. Click the Select folder next to the drop-down  box, to tell the installer the location of the OS image file. The Virtual Disk Manager dialog will open where you can added image locations. After adding the location of the image, click the Select button, then you can click the OK button, in this case the OpenSolaris2008.05 Settings dialog window.



Click image to enlarge



Step13: Now you will see the Sun xVM VirtualBox dialog window with changes you made above, showing the details of the new OpenSolaris2008.05 virtual machine.


Highlight the Virtual Machine you want to install and click the Start button.



Click image to enlarge



After clicking the Start Button you will now see the following informational dialog box. As you will notice the Auto capture keyboard option is turned on. this will cause the Virtual Machine to automatically capture the keyboard everytime the VM window is activated and make it unavailable to other applications running on your host machine. You can press the host key identified here as the Right Ctrl key to uncapture the keyboard and mouse. Please read it carefully, and click the OK button



Click image to enlarge



Step14: After clicking the OK button in the VirtualBox - Information dialog, you will now begin the installation of the OS for the new Virtual Machine. You will be asked several questions before the OS actually starts loading. For this first installation we will be installing OpenSolaris 2008.05 release. Select OpenSolaris 2008.05 in the Grub menu, and hit enter.



Click image to enlarge



After selecting OpenSolaris 2008.05 from the Grub menu, You'll now be prepare the live image for the new virtual machine for installation. On the new screen you will be asked to select a keyboard type. The default is 41 US English. For this exercise we'll take the default.



Click image to enlarge



Now you'll be asked to select the desktop language you'd prefer. The default is English.  In this case we'll take the default!! The system will now start configuring the devices, mount local partitions/cdrom, and read ZFS configuration.



Click image to enlarge



After the virtual machine is configured you will see the following VirtualBox Informational dialog appear. Read the dialog for virtual machine optimization, and click OK to accept. After clicking the OK.



Click image to enlarge



Please read the "OpenSolaris License". When finished click the Close button



Click image to enlarge



After reading the "OpenSolaris License", your OpenSolaris 2008.05 Virtual Machine is running and ready to be installed with you Operating System. As shown below. Let's start by shutting down the virtual machine and restart it. From the Systems drop-down menu select shutdown


Click image to enlarge

To restart the new OpenSolaris 2008.05 virtual machine, from the VitualBox widow select the OpenSolaris 2008.05 virtual machine and click the Start button.



Click image to enlarge


Step15: You are now ready to install OpenSolaris 2008.05 release on the Virtual Machine. From the Virtual Machine click on the Install OpenSolaris icon to invoke the OpenSolaris 2008.05 installer. 



Click image to enlarge


You will now be presented with the OpenSolaris 1008.05 Installer dialog window. Read and click the Next button



Click image to enlarge


The installer will now ask you where should OpenSolaris be install? The following dialog window is for Disk partition configuration. For this exercise we will take the default shown below. Click the Next button



Click image to enlarge


 Select Time Zone & Date Information. I've select the appropriate values for the OpenSolaris Virtual machine and clicked the Next button



Click image to enlarge


 You select the appropriate Locale for you OpenSolaris installation, then click the Next button



Click image to enlarge


Next the installer will ask you for the Users information. The Root users password, you will create a new user as welll as naming you system.



Click image to enlarge


A review on the installation settings before proceeding. You have the option of going back to change information. In our case we'll accept the setting and click the Install button.



Click image to enlarge



Installing OpenSolaris 2008.05 on your Virtual Machine.



Click image to enlarge



Your installation of OpenSolaris 2008.05 is now complete. As stated review the OpenSolairs install log for information. You now must reboot to start the system. However first I found you needed to quit and shutdown the virtual machine and unmount the ISO image or it will just read the mounted information and try to install again. So click on the Quit button, the install dialog window will go away. 



Click image to enlarge



Now select System and shutdown your virtual machine. 



Click image to enlarge



From the Sun xVM VirtualBox window, click on the CD/DVD-ROM link the following OpenSolaris2008.05 Settings dialog window will open.



Click image to enlarge



Uncheck the Mount CD/DVD-ROM drive checkbox to unmount the ISO Image.




Click image to enlarge




Step16: From the Sun xVM VirtualBox window, highlight the Virtual Machine you want to Power-on and click the Start button. In this case we'll highlight the newly installed OpenSolaris2008.05 virtual machine.



Click image to enlarge



Again by clicking the Start button, this will Power-on the new OpenSolaris2008.05 virtual machine, and you will again see the familiar VirtualBox informational dialog box. As you will notice the Auto capture keyboard option is turned on. this will cause the Virtual Machine to automatically capture the keyboard every time the VM window is activated and make it unavailable to other applications running on your host machine. You can press the host key identified here as the Right Ctrl key to uncapture the keyboard and mouse. Please read it carefully, and click the OK button



Click image to enlarge



Step17: After clicking the OK button above your virtual machine, will now be running and you will be presented with the Grub menu showing your new VirtualBox boot environment. Shown here. Select the OS from the Grub menu and boot OpenSolaris2008.08.




Click image to enlarge



OpenSolaris 2008.05 should now be boot as shown below here.



Click image to enlarge


Step18: Now that we have OpenSolaris 2008.05 booted, let's log in using the userID and password (or the Root User), we created when we installed the OpenSolaris2008.05 Operating System.



Click image to enlarge



This next screenshot, I've launched a terminal window showing I've successfully booted a VM running OpenSolaris on a ZFS root filesystem.



Click image to enlarge



There you go, "Basic VirtualBox in a Nutshell"   Part II Running Windows XP in a VirtualBox VM next post.











About

mhuff

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today