By mhuff on Jun 02, 2008
This is Part II as I mentioned is my previous post on Exploring Sun's xVM
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.
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.
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.
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.
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.
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.
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.
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!!!!
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.
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.
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
The next screenshot of the Sun xVM VirtualBox now shows the Virtual Machines that were created.
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.
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.
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.
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.
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.
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.
Now you'll be asked to accept the Windows XP Licensing Agreement. Hit the F8 Key.
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.
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.
The Windows XP Professional Setup will now begin to format the partition.
The Windows XP Professional Setup is now verifying the partition.
The Windows XP Professional Setup is now copying files.
Step15: You will now be presented with the Windows XP Regional and Language dialog window. Make your appropriate changes, and click the Next button.
Windows allow you to personalize your software. Fill in the appropriate fields and click the Next button.
You'll now be asked to enter your Windows XP product Key information and clicked the Next button.
You'll now be asked to enter your computer name and Administrator password, then click the Next button.
You'll now be asked to enter your Date and Timezone information, then click the Next button.
Windows will now make your changes and move on.
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.
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.
Windows is now copying files
Windows Installer is now completed file copies and is moving on.
Step16: VirtualBox will now allow you to adjust the desktop size. Click the OK button.
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.
Windows XP will now begin to launch, so that you can completed some necessary questions about your installation.
Loading Windows XP
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.
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.
Here Windows is checking Internet Connectivity. When completed, click the Next button.
Windows will now ask you if this computer connect to the Internet directly, or through another network. When completed, click the Next button.
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.
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.
You now get the Windows Thank You screen. Clicked the Finish button.
Windows will now launch, and you'll be presented with your Windows desktop.
Step18: Let's launch a browser. As you can see I can get to the Internet.
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.
Step19: Now we'll load the Sun's xVM Windows Guest Additions.
On this next screen you'll be asked to accept the License Agreement. I've checked the appropriate box and clicked the Next button.
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
The Sun's xVM Windows Guest Additions will now be installed.
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.
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.
There you go, "A basic Windows XP Guest OS on VirtualBox"