Below are clear, step‑by‑step guidelines to install Windows Server 2022 in a VirtualBox virtual machine, based on the general Windows Server installation process.
- Prepare installation media (ISO)
- Obtain the Windows Server 2022 ISO from an official channel (for example: OEM, Retail, Visual Studio subscription, or Volume Licensing Service Center), as required in the prerequisites.
- Save the ISO file on the host machine where VirtualBox is installed.
- Create a new virtual machine in VirtualBox
- Open VirtualBox and select New.
- Enter a name (for example,
WS2022), choose Type: Microsoft Windows, and Version: Windows 2022 (64-bit) (or the closest Windows Server 64‑bit option available). - Assign memory (RAM) that meets or exceeds the minimum hardware requirements for Windows Server. See Hardware requirements for Windows Server from the prerequisites.
- Create a virtual hard disk:
- Choose Create a virtual hard disk now.
- Size: allocate at least the minimum disk size recommended for Windows Server.
- Complete the wizard.
- Attach the Windows Server 2022 ISO to the VM
- Select the new VM in VirtualBox and open Settings.
- Go to Storage.
- Under Controller: IDE or SATA, add an optical drive and choose Choose a disk file….
- Browse to and select the Windows Server 2022 ISO.
- Ensure the virtual optical drive is set as a boot device (VirtualBox normally does this automatically; if needed, adjust the boot order under System → Motherboard so the optical drive is before the hard disk).
- Start the VM and boot from the ISO
- Start the VM.
- When prompted to boot from the virtual DVD, press a key if required.
- The Microsoft Server Operating System Setup screen appears.
- Install Windows Server 2022 (Desktop Experience or Server Core) The steps inside the VM are the same as on physical hardware.
For Desktop Experience:
- Under Microsoft Server Operating System Setup, select language, time and currency format, and keyboard, then select Next.
- Select Install now.
- Under Activate Microsoft Server Operating System Setup, enter the product key, then select Next.
- Under Select the operating system you want to install, choose the appropriate Windows Server 2022 edition (Desktop Experience) that matches the license, then select Next.
- Accept the license terms and select Next.
- When asked Which type of installation do you want?, select Custom: Install Microsoft Server Operating System only (advanced).
- Under Where do you want to install Windows?, select the virtual hard disk (it should appear as an empty drive) and select Next.
- Setup will copy files and reboot the VM several times.
- After the final reboot, under Customize settings, set a complex password for the Administrator account and select Finish.
For Server Core (if preferred):
- Follow steps 1–7 above, but choose a Server Core edition at the Select the operating system you want to install step.
- After installation and reboot, you are prompted to change the Administrator password:
- Press Enter.
- Type a complex password, press Tab.
- Confirm the password, press Enter.
- Press Enter again when notified that the password was changed.
- Use the Server Configuration tool (SConfig) to perform basic configuration as needed. See Administer a Server Core server and Configure a Server Core installation of Windows Server and Azure Local with the Server Configuration tool (SConfig).
- Post‑installation notes for a VM
- Install any VirtualBox Guest Additions if needed for better integration (mouse, display, clipboard). This is done from the VirtualBox Devices → Insert Guest Additions CD image… menu inside the running VM.
- Ensure the VM has sufficient virtual CPUs, RAM, and disk space according to the Hardware requirements for Windows Server.
These steps provide an end‑to‑end path: create a VM, attach the Windows Server 2022 ISO, and run the standard Windows Server setup inside VirtualBox.
References: