VirtualBox/Setting up a Virtual Machine/Windows

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Remarks[edit]

  • Please check the images. They are not perfectly aligned.
  • As Windows is not open-source, no screenshots of Windows are present here to prevent any kind of copyright infringement.

Create Installation Media[edit]

  1. Get a copy of Windows OS from Microsoft Official Website.
  2. Open the .exe file.
  3. Select the Installation Media Type. Choose "Create a bootable disk image".
  4. Create file destination.
  5. Wait for a while. When the creation of installation media completes, you will be redirected to the file destination. You should see a .iso file in that folder.

Install in VirtualBox[edit]

  1. Open VirtualBox
    CreateVirtualHardDisk.png
  2. Press "New" Button on the Left Upper Corner
    VDIsize.png
  3. You will see the screen on the right. Enter a suitable name for the Virtual Machine. Also, Choose "Windows" for "Type" and your downloaded version for "Version".
    StorageVM.png
  4. For Memory, choose a suitable value (usually more than 2048 MB).
    WindowsVmSystem.png
  5. As shown on the right, choose "create a virtual hard disk".
    WindowsVMNetwork.png
  6. Select "VDI"
    SelectVDI.png
  7. Select "Dynamically Allocated".
    DynamicallyAllocated.png
  8. Select the name and a suitable size (at least 50GB, this is the maximum size of virtual machine)for the virtual storage.Also, create a file location.
  9. After that, a virtual machine will be created. However, do not boot.
    VirtualBoxWindowsChoose.png
  10. Go to "Storage" Section.
    WindowsVMMemory.png
  11. Add a SATA Controller
  12. Choose Add Optical Hard Drive
  13. Choose the .iso file created above.
  14. Go to "System" Section.
  15. Set the Boot Order to: Optical Hard Drive, Hard Disk
  16. Go to "Network" Section.
  17. Tick the "Enable Netork Adapter Checkbox" and the "Cable Connected" checkbox. (The latter checkbox is in the Advanced Section).
  18. Quit Settings and Boot by clicking "Start".
  19. You will see a installation screen. Click "Install Now".
  20. Then enter the product key in the spaces provided. Otherwise, click "I don't have a product key". This enables you to have limited functions.
  21. Accept End User License agreement.
  22. Wait for Installation.
  23. After installation completes, shut down machine and go to Settings.
  24. Go to "Systems" Section and revert boot order.]
  25. Click "Processor" tab and set the number of CPUs.
  26. Go to "Display" Section and set the video memory to maximum value.

GREAT! YOU HAVE FINISHED THE SET UP. EXPLORE YOURSELF!!!

Resize[edit]

Here is the DOS command for six gigs (the size must be in megabytes):

"C:\Program Files\Oracle\VirtualBox\VBoxManage" modifyhd "MyVMPath.vdi" --resize 6000

NB: you may need to resize the internal VM partition after, for example to enlarge "/" in Linux :

  • boot with gparted
  • move the other partitions at the disk end
  • then resize /

FAQ[edit]

The Windows installation page doesn't allow me to skip product key entry. How to skip this?[edit]

If this is the case, it would be quite complicated.

  1. First, you will need to mount the iso file by your own means: Windows does not have built-in function to unpack iOS files. But there is a software called Virtual CD-ROM Control Panel. If you are using OS X, mount it by "Disk Utility".
  2. Open the .iso file and search for a file called "ei.cfg".
  3. If this file exists, open with Notepad/TextEdit. Otherwise, create a CFG file. (Save it as "All Files" and type "ei.cfg" for name.
  4. Type the following (type all content as is if bracketed in [], write by instructions if bracketed in {}):
   [Edition ID]
   {Edition you desire (e.g. Home/Professional)}
   [Channel]
   {OEM/Retail}
   [VL]
   {0/1}
  • For any other problems, see this Microsoft page
  • Save this file and you should see the "Skip for now" option.