Author Topic: How To: Windows XP Mode In...Ubuntu Linux...Part 2  (Read 1063 times)

Online javajolt

  • Administrator
  • Hero Member
  • *****
  • Posts: 36003
  • Gender: Male
  • I Do Windows
    • windows10newsinfo.com
How To: Windows XP Mode In...Ubuntu Linux...Part 2
« on: October 08, 2009, 06:20:51 AM »
Creating A Virtual Machine

When you get back to the Ubuntu desktop you can now open VirtualBox via Applications /SystemTools/SunVirtualBox. Since we are using the free version of Sun VirtualBox, and not the free and open-source version, we need to agree to the license agreement. To do this, scroll all the way down and then click I Agree.


Next, the VirtualBox Registration Dialog window should open. If you already have a Sun Online account, enter your email and password and click Register. If not, you can enter your information and click Register. Alternatively, you can also just click Cancel to continue. Once VirtualBox opens, click on the New button in the navigation bar. This opens the Create New Virtual Machine wizard. Click Next.


In the Name field, enter a name for your new virtual machine. If you plan on having several VMs, name each VM descriptively to avoid confusion (such as “Windows XP SP3 32-bit”). You could also name the VM for its intended purpose, such as “Gaming,” “MS Office,” or “Compatibility Testing.” Under OS Type, you can choose the operating system and version. Since VirtualBox defaults to Microsoft Windows in the Operating System field and Windows XP in the Version field, we can leave it alone and click Next.


Now we must decide how much system memory we want to allocate to the virtual machine. In this respect, the VM is much like a real system; the more memory, the better. You can allocate up to half of your system's RAM to the VM. My test system has 4GB, so I'm going to give 1GB to the Windows XP VM. This will leave the host OS (Ubuntu) with 3GB when XP is running. After you have decided how much RAM to give to your VM, click Next.


Since this is the first time you're running VirtualBox, there won't be any virtual hard disks to chose from. Therefore, we must select Create new hard disk, and then click Next. This opens the Create New Virtual Disk wizard. Click Next again.


On this screen, we are presented with the choice between Dynamically expanding storage and Fixed-size storage. The difference is that Dynamically expanding storage will only take up the amount of space used by data in the VM. Fixed-size storage immediately takes up the entire size of the virtual disk. With either option, you will need to specify the size of the virtual disk after clicking Next.


The Location field on this page should already be indicating the name that you gave the VM earlier. Using either the text box or the slider, you can specify the size that you want your virtual hard disk to be. Remember, if you chose Fixed-size storage, your real hard disk will lose whatever amount you decide here. If you chose Dynamically expanding storage, this is the maximum amount of space your virtual hard disk will be allowed to consume. I'm happy with the default size of 10.00GB, but you can specify any size that works for you. Click Next.


The Summary Screen will display the type and size of your virtual hard disk as well as it's location on your real hard drive. Verify that the options are correct, and perhaps make note of the virtual disk's location. This is a good idea in case you want to backup, or even take your virtual hard disks with you. When satisfied, click Finish. The more space you've given to Fixed-size storage, the longer this will take. After your virtual hard disk is created, that wizard will close and another summary screen will display the Name, OS Type, Base Memory, and Boot Hard Disk that you selected for your new virtual machine. Verify the information and then click Finish.

Tweaking Windows XP's VM Settings

Now that we have created a VM (including the virtual hard disk) for Windows XP, we need to tweak some settings. You should be back to the main VirtualBox window with your new VM highlighted. Click the Settings button in the navigation bar to open the settings window for the XP VM.


You'll now see the Basic tab of the General page. Here, you can change the Name, Operating System, and Version. We just set those options when we created the VM, so ignore this page and open the System page in the left pane.


Now we're on the Motherboard tab, which houses options for adjusting the VM's Base Memory, Boot Order, and Extended Features. We do not need to change any of these options, so click the Processor tab. If you're lucky enough to have a sickening amount of system RAM (enough to give your VM 4GB or more), you will need to check the box next to Enable PAE/NX in order for a 32-bit OS on your VM to address that much. Click on the Acceleration tab to continue.


If your CPU has hardware-accelerated virtualization capabilities, you will want to check the box next to Enable VT-x/AMD-V so that the VM can utilize them to boost performance. If your CPU has nested paging capabilities, check the box next to Enable Nested Paging for another performance boost. If your CPU doesn't have either of these, the selections will be grayed out.


Click the Display option so that we can adjust the Video Memory Size. My PC has up to 128MB of video memory that I can allocate to the VM. You can choose whatever size that you think you'll need. A good rule of thumb is that the more high-resolution gaming you do, the more video memory you'll want to allocate. Also click on the checkbox next to Enable 3D Acceleration if you anticipate any gaming.


Next, click on the CD/DVD-ROM page in the left pane. We need to check the box next to Mount CD/DVD-ROM. Now, check the box next to Host CD/DVD Drive. If you have multiple optical drives, select the one you will use to install Windows XP from the drop-down menu. If you have your Windows XP disc handy, insert it into your optical drive of choice. If your file manager automatically opens after inserting the disc, simply close it.


Before we're ready to install XP, we need to set up a folder to share files between the Linux host OS and the XP guest OS. Click the Shared Folders page in the left pane. First, click on the Add button on the far right (blue folder with green plus sign) to open the Add Share window. Next, click on the drop-down menu next to the Folder Path field, then choose Other. Now, find or create a folder in your Ubuntu file tree where you want data to be shared with your XP installation. I chose the Public folder in my Home directory located at /home/adam/Public. Click Open, and then OK. Wherever you create that shared folder, make sure you remember where it is. Click OK to finish tweaking the Windows XP VM's settings.




Installing Windows XP On The VM

Now that we are done configuring the VM's settings and the XP CD is in your optical drive, we can boot the VM for the first time. We are back to the VirtualBox main window and your Windows XP VM should be highlighted. Click the Start button in the navigation bar. A new window will open for the XP virtual machine. After a few seconds of nothing, and maybe a window resize or two, the familiar blue screen of Windows' pre-installation will appear. When you first press a key with the VM window selected or click the mouse inside of it, a Keyboard/Mouse capture pop-up window may appear. You can decide to read it or not before you close it; in a few pages, you won't need to use the Host key anyway.


From here, you can install Windows XP as you normally would. In a nutshell: Enter, F8, Enter, Enter, Restart. As long as the XP VM window is the currently selected window, any keystrokes will register in the VM and not in your host OS. When the VM reboots, you should be in the XP graphical installation that we all know and love.


When the loading stops, the Regional and Language Options need to be dealt with. To use your mouse in the VM, left-click once anywhere inside of the VM window. The mouse is now being used by the VM and not the host OS. Also, its movements are restricted to inside the VM window. The little mouse icon directly to the left of Right Ctrl has been filled with color to indicate the mouse is bound to the VM. Press the right Ctrl key (that is, the Ctrl key on the right-hand side of your keyboard) in order to unbind the mouse and return it to the host OS.


Now that you know how the keyboard and mouse interact with the VM, go ahead and finish the graphical installation of XP. Basically: Next, enter name, Next, enter product key, Next, Next, time zone, Next, Next, workgroup name, Next. After another pause, the graphical installer will perform another reboot. Do Not "press any key..." to boot from CD-ROM
if prompted. That will only result in going back to the beginning of the installation.


The familiar Windows XP loading screen should be showing up. If you are asked to resize the screen, click OK and then Yes. If all went well, the VM's window should become larger. If not, don't worry, we'll be changing it later anyway.


Depending on your edition of Windows XP and how old the CD is, another phase of the graphical installer may appear. Follow it until you get to a working desktop. There should be some music, and the little help icon in the lower-right should also be making sounds. Note: If you don't hear any sound, or if the sound comes out garbled, you'll need to tweak your VM audio settings later. Finish the graphical installation first.


Whenever you do get to your first working desktop screen, as with any other Windows installation, update the operating system before proceeding!


« Last Edit: October 12, 2009, 01:38:39 AM by javajolt »