VirtualBox/Setting up a Virtual Machine/Windows

RemarksEdit

  • 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 MediaEdit

Using Media Creation Tool (for Windows 10 VM)Edit

  1. Download the Media Creation Tool from the Microsoft Official Website.
  2. Run the Media Creation Tool.
  3. Select the Installation Media Type. Choose "Create a bootable disk image".
  4. Choose file destination.
  5. Wait for a while. The download size is typically around 4.7 GB. When the creation of installation media completes, you will be redirected to the file destination. You should see a .iso file in that folder.

For other versions of WindowsEdit

  1. Download the Windows disk image from a trustworthy source. If you are not using a Windows host machine, the download link for the Media Creation Tool will be replaced by the direct download link of the official .iso file.
  2. Compare the checksum (if available) to verify the integrity of the disk image file.

Install in VirtualBoxEdit

  1. Open VirtualBox
  2. Press "New" Button on the Left Upper Corner
  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".
  4. For Memory, choose a suitable value (usually more than 2048 MB).
  5. As shown on the right, choose "create a virtual hard disk".
  6. Select "VDI"
  7. Select "Dynamically Allocated".
  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.
  10. Go to "Storage" Section.
  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!!!

ResizeEdit

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 /

FAQEdit

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.