How to Install Windows XP in VirtualBox 7.0 on Windows 11 / 10

This article outlines installing and using Windows XP SP1 x64 Professional on a new virtual machine using Oracle VM VirtualBox 7.0 on a Windows 11 or 10 operating system.

How to Install Windows XP on Oracle VM VirtualBox

How to Set Up Windows XP x64 SP1 Pro on Windows 10 / 11 using Oracle VM VirtualBox 7

On October 25, 2001, Microsoft developed and launched the Windows XP operating system, emphasizing facilitating its utilization across various devices. These devices form home and business computers, laptops, desktops, media devices, and tablets.

The most significant difference of this operating system type, whose first code name is Whistler, is that it supports 32 Bit and 64 Bit architectures.

By prioritizing performance, stability, and security, Windows XP delivers an optimized user experience. It is the first operating system to have product activation methods to prevent software piracy, which has threatened software developers.

Key features of Windows XP include Internet Explorer 6, Windows Media Player, downgrade/rollback device drivers, remote assistant, advanced firewall, system restore, wireless connectivity, application compatibility mode, and CD Burner.

Although Microsoft ended support for the XP system on April 8, 2014, there are still many people using this system today. This can create a severe vulnerability to both the local and Internet networks. Hence, we advise against installing Windows XP on your host computer instead of Windows 10 or 11.

However, users who want to use and experience Windows XP or play old games can install it on virtual machines. Thus, they can choose a safer way to use XP on an up-to-date operating system.

Before creating a virtual machine on your host, your processor must support the virtualization feature. Without this support, setting up a virtual computer on your host would not be possible. To inspect the virtualization feature of your CPU, you can refer to this article.

How to Create a New Virtual Machine for Windows XP

After installing the Oracle VM VirtualBox virtualization software on your host operating system, you must make the VM settings you will create correctly to use Windows XP without any problems. Creating a VM that matches the hardware capacity of your physical host computer is essential in terms of performance and compatibility.

Step 1

Open your Oracle VirtualBox program and open the virtual machine creation wizard from the tool menu on the program’s homepage or the New shortcut.

Creating a New Virtual Machine

Step 2

When the virtual machine preparation window appears, the initial step is to enter the name of the operating system you intend to install into the designated Name field. After entering Windows XP in the Name field, the values in the Type and Version fields will be automatically adjusted according to your typing system.

If you see the 32-bit value in the Version field after typing Windows XP and you will install 64-bit, configure this value manually.

You can change the position where you install the virtual machine in the Folder section. Suppose you desire to install the operating system on an external SSD or HDD storage device. In this case, you can pick “Other” from the pop-up window and select the installation location from your host PC.

Select Other from the ISO Image menu to add a Windows XP ISO file to the virtual pc.

Selecting the Windows Operating System Type

Step 3

Select the Windows XP Professional 64 Bit SP1 image file you downloaded to your computer from the table below the article and open it.

Adding a Windows XP ISO File to a Virtual Machine

Step 4

In the 7.x versions of VirtualBox, you can see the unattended installation option as the user interface has changed. Using this option, you can prepare a system with preconfigured usernames or product key settings.

If you prefer to install the system manually, select Skip Unattended Installation and click Next.

Skip Unattended System Setup

Step 5

Configure a RAM size of 4096 MB (4 GB) for Windows XP as the base memory size. Suppose your host computer possesses a substantial amount of RAM. In that case, it is proposed to configure this value to a minimum of 4 GB or 8 GB.

In addition, configure the number of virtual processors as 4 so you can use your virtual computer more efficiently.

Configuring the Memory Size of the Virtual Machine

Step 6

Since you will install Windows XP from scratch in the virtual HDD settings, you must select the Create a virtual hard disk now option. If you own an XP virtual disk installed, you must like the Add an existing hard disk file option.

In VirtualBox 6.x versions, you can see the old settings on the virtual disk screen. For a sample, if you do not use a VM installed on VirtualBox with other virtualization software, choose VDI (VirtualBox Disk Image). You can use the VDI disk type in other software, but Oracle always recommends using the VDI type.

If you want to use as much disk space as the capacity of the virtual disk file on the disk where you will install the virtual machine, you can choose Fixed Size. Fixed Size can improve the performance of the VM, but it unnecessarily fills up the host disk space.

Therefore, by selecting Dynamically Allocated, only the disk space needed by the VM will be automatically allocated over the host disk. Do not change the path in File Location and Size to save the virtual disk to the installation location you set in the first step of the VM wizard.

Regarding Windows XP, you can modify the virtual disk extent to a minimum of 30 GB. However, it is advisable to determine the disk size based on the specific requirements of your work.

Creating a New 30GB Virtual Disk

Step 7

After adjusting the hardware settings of the Windows XP guest machine, check again and close the VM wizard.

Turning off VM's Summary Hardware Information

Step 8

Click Settings to better configure the hardware settings of the guest operating system.

Opening the Guest Machine's Settings

Step 9

To permit file sharing between the host and the virtual machine in the settings window of the VM, configure the Shared Clipboard and Drag and Drop features as Bidirectional in the General / Advanced tab.

So you can share files or copy/paste text from host to VM and VM to host.

Enabling Shared Clipboard and Drag and Drop Features

Step 10

To install Windows XP on the virtual pc, select the Optical device as the direct boot device in the Boot Order index in the System / Motherboard settings to add the ISO file to the optical drive.

Changing the Boot Sequence

Step 11

If you plan to use virtualization software on your virtual computer, enable the Nested VT-x/AMD-V feature from the processor device.

Nested VT-x/AMD-V

Step 12

Enable Nested Paging for better memory management between your host and VM.

In certain conditions, it may be necessary to manually choose the virtualization interface within the Acceleration tab located in the system settings of the virtual PC.

Paravirtualization Interface is in Default mode by default. The default mode will automatically select a virtualization engine according to the installed system type. Still, since no VTx interface is set for XP, you can change the value here to Hyper-V.

Nested Paging

Step 13

Enable 3D acceleration in the Display / Screen settings of the virtual machine and configure the Video Memory size to 128 MB.

Note: Please take note that although you enable 3D graphics acceleration on Windows XP in VirtualBox version 6.1, the Direct3D feature is regrettably no longer supported. If you wish to utilize Direct3D support, installing one of the 6.0 versions of VirtualBox on your system is advised.

Enabling 3D Graphics Acceleration

Step 14

By default, the Host I/O Cache feature for the IDE controller is enabled in the storage volumes of the virtual PC. If the Host I/O cache is not allowed, enable it for virtual disk performance.

Using Host I/O Cache

Step 15

Check the Solid-State Drive (SSD) option to configure the WindowsXP.vdi virtual disk file as an IDE SSD.

Configuring VDI Disk as SSD

Step 16

After preparing your Virtual PC, click the Start button to proceed to the steps of installing Windows XP on VirtualBox.

Starting the Windows XP VM

How to Install Windows XP

After preparing the Windows XP virtual computer, you need to install Windows using the ISO image of the system. After running the VM with the image file as the startup disk, when the setup wizard opens, you should install it as if installing the Windows platform on a real computer.

Step 1

At the Windows XP Professional Setup screen, you must press Enter to begin installing Windows immediately. Otherwise, press F3 to exit the wizard or R to repair your system.

Windows XP Professional Setup

Step 2

You must press Page Down to read the full text of the Windows XP license agreement in the setup wizard. After reading the license agreement, press the F8 key to accept and continue the installation.

Accepting the Windows License Agreement

Step 3

Press the C key to configure the unallocated disk space. Or you can press Enter to have the wizard automatically organize the disk space and format the system disk.

Creating a New Partition

Step 4

To make a new partition, you need to edit the disk space to be allocated after clicking C. You should use the entire disk space, as virtual machines generally use smaller disk space.

For example, if you configure the virtual disk size to 100 GB, allocating 20 GB for system setup and 80 GB for backup may make more sense.

Create Disk Space

Step 5

Press Enter to start the Windows XP installation on the new partition you created.

Installing Windows on the Created Partition

Step 6

Quickly format the virtual disk of the guest machine using the NTFS file system.

Formatting a Virtual Disk Using the NTFS File System

Step 7

Wait while the setup wizard formats your virtual disk.

Formatting Disk

Step 8

Once the virtual disk has been formatted to facilitate file copying, the XP system files will commence their transfer onto the disk.

Setup Wizard Copying Windows Files

Step 9

After copying the system files, your virtual computer will restart automatically in 15 seconds. You can press Enter to reboot your virtual system immediately. After your guest machine restarts, the installation will continue.

Restarting the Virtual Computer

Step 10

Configure the region and language options of Windows XP according to your country.

Configuring Regional and Language Settings

Step 11

Type a name for the user account you will use in your virtual system and click Next.

Typing a Username

Step 12

Enter a Windows XP Pro product key you have and click Next.

Entering the Windows XP Product Key

Step 13

If you use your Windows guest machine in a network environment with multiple computers, ensure the computer name differs from other devices.

Type the PC name you want to use in the Computer Name field and create a new password for the Administrator account with full authority in your virtual system, or leave the relevant fields blank to avoid making a password and click Next.

Typing a Computer Name

Step 14

Configure your virtual computer’s date, time, and time zone settings according to your location and click Next.

Date and Time Settings

Step 15

To use your VM in your physical network environment in the Networking Settings window, tick Custom Settings and make the relevant settings. Or you can continue the installation by selecting Typical Settings in general.

Typical Network Settings

Step 16

According to your network structure, if you make the virtual machine a member of a Domain environment that provides an Active Directory service, you must select the Yes option and type your Domain information.

To use your VM for personal use without subscribing to a Domain environment, select WORKGROUP and click Next.


Step 17

Wait while Windows XP is installed on the guest machine.

Loading Windows

Step 18

Wait while the Microsoft Windows XP x64 operating system boots up.

Microsoft Windows XP x64 Edition

Step 19

After the Windows XP system files are copied, your system will reboot, and your desktop environment will be ready.

Applying Computer Settings

Step 20

Right-click on My Computer, then click System Properties from the options that appear and check the system information.

Viewing System Properties

How to Install Guest Additions

After installing Windows XP within the virtual machine, it is essential to install Guest Additions to unlock various functionalities. These include achieving full-screen resolution, facilitating file transfer between the host and the VM, and enabling the utilization of the host computer’s hardware within the VM.

Step 1

To view the Computer Management window, right-click the My Computer symbol and select Manage. Once the window appears, navigate to Device Manager and review the drivers not installed on your system.

Viewing Device Manager

Step 2

Under normal circumstances, when installing Guest Additions on Windows XP, you will encounter an Unsigned Driver warning. This is not an error, but the driver for some devices cannot be fully installed.

To overcome the barrier imposed by unsigned drivers, you must modify a setting in the Group Policy settings. To continue, access the Start menu, enter “gpedit.msc” in the designated text box, and proceed by clicking OK.

When the Group Policy Object Editor is accessed, go to Windows Settings > Security Settings > Local Policies > Security Options and click “Devices: Unsigned driver installation behavior” from the options under Security Options.

Change the Devices: Unsigned driver installation behavior setting to Silently Succeed and restart your virtual computer after clicking OK.

Unsigned Driver Installation Behavior

Step 3

After your guest system is turned on, click Devices / Insert Guest Additions CD Image to install the guest add-ons software.

Installing Guest Additions

Step 4

When the Guest Additions installation wizard starts, click Next to continue.

Guest Additions Setup Wizard

Step 5

Continue without changing the installation location of the guest add-ons software.

Guest Additions Installation Location

Step 6

You can see that Direct3D Support is not enabled in the Choose Components window of the setup wizard. Direct3D support for older operating systems has been discontinued in version 6.1 of VirtualBox. Therefore, installing the 6.0 versions of VirtualBox is imperative to utilize this feature.

Selecting Components

Step 7

After installing the tools of your guest system, restart your system.

Restarting the Virtual Computer

Step 8

After restarting your VM, view Device Manager again; you can see all drivers installed successfully.

Checking Device Manager Again

Step 9

You can use your virtual machine in full-screen resolution or scaled mode with the options in the View tab from the tool menu of VirtualBox.

Controlling the Full Screen Resolution

Step 10

When employing the Drag and Drop method, you will observe the successful transfer of a text document from the desktop of your host computer to your virtual computer.

Drag and Drop File Copying Between Host and VM

How to Configure Shared Folder

Unfortunately, folder copying to the virtual machine fails on old systems. Before copying a folder, you must archive it using Winrar or 7-Zip and then copy it to the VM.

Since it takes time to archive a folder with larger file sizes, you can transfer data faster by creating a public folder for your VM on your host computer and configuring the Shared Folder.

Step 1

Click Devices / Shared Folders / Shared Folders Settings on your Windows XP virtual PC.

Creating a Shared Folder

Step 2

Click the green + button in Shared Folders settings and open the Add Share window. Specify the folder you created on your host PC in the Folder Path section.

Check the Auto-Mount and Make Permanent options and click OK to add the shared folder as a network drive.

Choosing the Shared Folder on the Host

Step 3

Upon opening the My Computer window, you will notice the inclusion of the Shared Folder as a network drive.

After viewing the network connections, switch to the Folder structure and click Entire Network / VirtualBox Shared Folders on the left. You can see that you can approach the folder on the host over the network.

Checking the Shared Folder Network Drive on My Computer

Step 4

Create a folder in the shared folder on your host system and check that this folder is created simultaneously in your VM.

Checking Share Folder on VM with Host

How to Check Internet Connection

Network and Internet connection settings are automatically configured after installing a virtual system with Oracle VM VirtualBox or other virtualization software. If the services of your virtualization software become corrupted, you may encounter difficulties in accessing the Internet.

Network settings of Windows XP guest machines running on Oracle VM are configured with a NAT coupler by default, and a different block is created than the IP block you use in your existing network.

Step 1

Open Run and execute the CMD command to check if the Internet connection is working smoothly in your virtual system. After opening the CMD prompt, ping the Google servers using the ping command.

Ping Google Servers using CMD

Step 2

Once the ping test is successful, visit the Google homepage through the Internet Explorer browser to verify the health of your Internet connection.

Visiting the Google Search Engine Home Page

How to Enable and Install USB 3.0 Driver

By default, enabling USB 3.0 support on a Windows XP virtual machine is not typically feasible. However, you can resolve this issue by substituting the USB controller. While USB 2.0 devices can be operated in the virtual machine without problems, enabling 3.0 or 3.1 supports faster file transfers using the more advanced technology.

Step 1

Before enabling USB 3.0 on your Windows XP guest machine, it is recommended to download the RENESAS Driver from the table located at the bottom of the article. Once downloaded, copy the driver to your system and proceed to double-click the setup file to initiate the wizard.

Installing the RENESAS USB 3.0 Driver

Step 2

Click Next in the Renesas Electronics USB 3.0 Host Controller Driver wizard.

Renesas Electronics USB 3.0 Host Controller Driver

Step 3

Accept the license agreement of the Renesas Electronics USB driver software and click Next.

Accepting the USB Drive's License Agreement

Step 4

Click the Install button to build the USB 3.0 driver.

Starting Driver Installation

Step 5

After installing the USB 3.0 driver on Windows XP, close the wizard by clicking Finish.

Closing the USB Driver Wizard

Step 6

Close the Oracle VM VirtualBox on your host PC’s system, go to its installed location, right-click, and click Open in Terminal.

./VBoxManage setextradata 'Windows XP' VBoxInternal/Devices/usb-xhci/0/Config/ChipType uPD720201

Changing USB 3.0 Controller Type

Step 7

Open the Oracle program, select USB 3.0 (xHCI) Controller from the USB controller types, and click OK.

USB 3.0 (xHCI) Controller

Step 8

Open the Oracle program again, and after running your virtual PC, open Device Manager and check the Universal Serial Bus (USB) Controller device.

Checking USB 3.0 Driver in Device Manager

Step 9

Connect your flash stick to one of the USB 3.0 ports on your computer and establish a folder called “Backup” inside it as an illustrative instance.

Creating a Folder in a USB Flash Drive

Step 10

After inserting your flash memory, click Devices / USB / Kingston DataTraveler 3.0 on the virtual machine.

Adding a USB 3.0 Supported Flash Memory to a Virtual Machine

Step 11

After adding your flash memory to your virtual PC, Mass Storage drivers will be installed automatically. When you view My Computer, you can see your USB stick of KINGSTON or any other brand.

Upon inspecting the Device Manager, you will find the USB 3.0 memory under Disk Drives.

Viewing USB Device in Device Manager

How to Change Video Memory to 256 MB

A maximum of 128 MB of GPU memory can be set for Windows XP in Oracle software, but there is a simple way to increase this size.

Step 1

First, execute the dxdiag command in the Run window on your virtual machine and click Yes in the DirectX Diagnostic Tool window.

DirectX Diagnostic Tool

Step 2

Click the Display tab on DirectX Diagnostic Tools, check the Total Memory size, and check that the GPU memory is 128 MB.

Checking Total Video Memory of Graphics Device

Step 3

Close your virtual computer and VirtualBox program and open PowerShell again in the location where VirtualBox is installed, and execute the following command.

./VBoxManage modifyvm 'Windows XP' --vram 256

Setting 256 MB of VRAM with VBoxManage

Step 4

Run Oracle VM VirtualBox, and after checking your VM’s settings Display / Screen / Video Memory size is 256 MB, you will see that the operation was successful.

Configuring the Memory of the Virtual GPU Device of Windows XP to 256 MB

Step 5

When you run your Windows XP guest machine and open the dxdiag tool again, you can see that the total graphics memory size in the Display tab is 256 MB.

Checking GPU Memory

How to Upgrade Windows XP SP1 to SP2

If you desire to upgrade to SP2 on the guest appliance after installing the Service Pack 1 (SP1) edition of Windows XP, obtain the ISO image from the table at the base of the article and proceed with the following steps.

Step 1

First, to view the properties of the XP system installed on your VM, right-click My Computer, open Properties, and check the Service Pack version.

Viewing System Properties

Step 2

To add the SP2 ISO file to the VM, click Devices / Optical Drivers, choose a disk file, select the Installer image you downloaded to your computer, and click Open.

Adding SP2 ISO Image to Virtual PC

Step 3

When the Readme HTML page opens automatically on your virtual system, close it.

Closing the Readme HTML Page

Step 4

Open My Computer, right-click / Open on the CD drive.

Opening the Contents of the SP2 ISO File

Step 5

Double-click the SRSP2 command script in the Service Pack 2 CD image and start the installation. Click Next in the Windows x64 Service Pack 2 installation wizard.

Starting Service Pack 2 (SP2) Installation

Step 6

Accept the SP2 license agreement and click Next. If you want to downgrade Windows XP from SP2 to SP1 later, note the location in Uninstall Folder. Continue with Next to continue SP2 installation.

Accepting the License Agreement

Step 7

Wait while your virtual Windows XP system updates to SP2. When the SP2 setup wizard is complete, click Finish to restart your virtual system.

Location of SP2 Uninstall Folder

Step 8

Upon revisiting the system properties, you will notice that Service Pack 2 (SP2) has been effectively installed.

Checking System Properties Again


Installing Old Versions

VirtualBox Version
YouTube Video
7 (NEW)


Windows XP ISO ve USB Driver Download

Renesas USB 3.0 Driver
Windows XP Pro x64 SP1 ISO + SP2 (EN)


Related Articles

How to Install Windows 7 on VirtualBox
How to Install Windows Vista on VirtualBox
How to Install Windows 8.1 on VirtualBox
How to Install Windows 10 on VirtualBox
How to Install VirtualBox on Ubuntu

  1. Junaid 1 July 2018

    It’s asking me to enter a product key. I tried some product keys from other sources but it’s not accepting any. Please help.

    • Rob 6 September 2018

      use this, I used it and it works H689T-BFM2F-R6GF8-9WPYM-B6378

      • Scott 6 March 2019

        no luck with that one. any other suggestions?

        • Tyler 12 October 2019

          Use the one that comes in the .rar file. Once, unzipped it has the .iso and a text file with the product key

      • DumitruStepa 22 November 2019

        Works! Thanks bud!

      • bzderek 26 January 2021

        Thank You!

  2. Richard Younie 5 June 2019

    A very thorough procedure. However at step 24 no Admin pwd was requested and at step 25, a key was requested. I tried a key I have but not valid. Unable to get further.

  3. Richard Younie 5 June 2019

    I used the key from Rob above and it worked OK.

  4. Pokedude1110 7 July 2019

    Mine says there is a setting in system that’s invalid, but I don’t know what

  5. Wesley Price 22 July 2019

    Followed these instructions and it worked great. Now my only problem is trying to get the virtual system to recognize my network connection. I need to download software from the web and I have network activations that I need to access. Thank you.

  6. Stranger 19 October 2019

    Product Key ???

    • John 23 January 2020

      It’s in the zip file

  7. DumitruStepa 22 November 2019

    Thanks, it works!

  8. Jeffrey Epstein 10 December 2019

    Is this 64-bit or 32-bit?

  9. Jimmy 26 January 2020

    I’m trying to load XP from an original licensed disc I have, but when I click ‘start’, the message that comes up is “no bootable media found”. This is after I went to ‘storage’ and selected host drive D: (optical drive) and checked ‘passthrough’.

    • Tolga Bagci 11 February 2020

      Hello Jimmy, I apologize for the late reply.

      I think there is a problem with your Windows XP disk media. It should work smoothly under normal conditions. Or there may be a problem with your computer’s CD/DVD RW device. There are many problems with these devices in the latest Builds of Windows 10.

      I would like to suggest you a way to try, with the UltraISO program, convert the Windows XP installation media to ISO and add it to the virtual machine.

  10. Spiff 12 February 2020

    Howdy, Excellent guide! I have a problem installing the VirtualBox Guest Additions though, it keeps failing.

    The driver is installed, and the installers gives a message that a reboot is required. However, then a messages comes up saying “Execution returned exit code: 0”, and nothing further happens, no reboot is prompted. Then Windows XP considers the installation has not passed the Win XP Compatibility testing, and I can continue or stop the installation (obviously continue does not work).

    I can’t seem to find a solution for this, and I think I need the Guest Additions to fully use Win XP, right?

    • Spiff 12 February 2020

      Edit: never mind, I had to click “Continue Installation” multiple times. Apologies!

  11. Stephanie 28 May 2020

    Hey I am having issues on step 13 where I need to click F8. I try to do ctrl f8, shift f8, ctrl shift f8, alt f8, you name it and nothing is happening. How do I enable my f8 key for the set up?

    • Tolga Bagci 29 May 2020

      Turn off the virtual machine, click Devices/USB, and then choose Keyboard. Before doing this, try solving the problem by pressing FN + F8 in the license window.

      Some Microsoft keyboards have an F lock key, if so, check it out.

  12. Gaurav 1 July 2020

    Hi, Thanks for the detailed step by step guide, have successfully installed XP.

    Only issue is how do I get the V-Box XP to access internet.

  13. John K 21 July 2020

    Need product key. It is not in the .rar file (unpzipped) or the the ISO file (unzipped). Tried Rob’s key, doesn’t work.

  14. Name 30 July 2020

    Mine setup says something like “No harddisk found, connect any. Now press F3 to reboot your PC”.

  15. valdas 10 August 2020

    i use i windows xp

  16. Jacky 30 August 2020

    I don’t know: but the ISO file don’t wanna open.


  17. Nelson Kurian 10 September 2020

    Any suggestions for installing device drivers ?

  18. Oliver Burrows 25 September 2020

    With VirtualBox 5.2.44 and Windows XP SP3, even though the host BIOS supports a 1.2MB floppy disk drive, adding the Host Drive A yields “The disk media is not recognized. It may not be formatted” error. In addition, when you look at the properties for the drive, it says it is a 3.5 inch drive. Deleting and re-adding the drive through Devices has no effect.

  19. Rcik 17 November 2020

    I can’t find the download xp iso button…

  20. Neville Hardy 2 December 2020

    Excellent installation instructions, thank you.
    My purpose in creating a virtual XP on my new Windows 10 computer, was to use a program that worked will on my old XP computer. However, when I loaded the program and tried SET UP, I got a message “THIS APP CAN’T RUN ON YOUR PC – check with the software publisher”. This old program was written for Windows 98 and was never upgraded . Any suggestions?

  21. David Clark 6 January 2021

    I reached the point where you load Guest Additions, and then things went wrong. The installation of Guest Additions hung up (stopped) before completing, and I have no clue why. What are some suggestions on how to fix that? The process halted on the line just below the line that reads “Installing video driver . . .”

    I have set up a virtual drive on another computer with an earlier version of VirtualBox, so this is not my first rodeo.

  22. Geo 2 April 2021

    2021 and still in need of windows xp for some homework assignments. Thanks Rob for the w key

  23. Gabe 10 February 2023

    Hey! Whenever I click Insert Guest Additions CD Image, it doesnt open the wizard. Any fix?

Add a Comment

Your email address will not be published. Required fields are marked *