Oracle virtualbox установка windows server

Windows Server 2025 brings exciting new features and enhancements to the Windows Server family, but before you can enjoy its power, you need to get it installed in a virtual environment. Oracle VirtualBox is a free, open-source virtualization tool that allows you to run multiple operating systems on a single machine. In this blog post, we’ll walk you through the process of installing Windows Server 2025 in Oracle VirtualBox, from setting up the VM to completing the installation.

Table of Contents

System Requirements:

Before proceeding with the installation, let’s check the system requirements for Windows Server 2025.

Windows Server 2025 Requirements:

To run Windows Server 2025, your host machine should meet the following minimum system requirements:

  • Processor: 1.4 GHz 64-bit processor or faster
  • RAM: 2 GB minimum (4 GB or more recommended)
  • Hard Drive Space: 32 GB minimum (64 GB or more recommended)
  • Graphics: DirectX 9 graphics device with a WDDM 1.0 driver
  • Network: Ethernet adapter with a connection to the Internet
  • Other: UEFI firmware with Secure Boot enabled (optional but recommended for security)

Additional Tools:

  • Oracle VM VirtualBox: Download it from Oracle’s official website
  • Windows Server 2025 ISO: Download the ISO file from Microsoft’s Evaluation Center website or through your Volume Licensing Service Center.

Step-by-Step Guide to Install Windows Server 2025 in Oracle VirtualBox:

Step 1: Install Oracle VirtualBox

If you haven’t already installed Oracle VirtualBox, follow these steps:

  • Download Oracle VirtualBox from here.
  • Run the installer and follow the installation wizard. It’s a straightforward process and usually just requires accepting the default options.

a

Step 2: Create a New Virtual Machine

Now, let’s create new virtual machine for Windows Server 2025.

Open Oracle VirtualBox and click the New button at the top of the window.

Create New Virtual Machine

Name your virtual machine (e.g., “WS2025”).

Select the Operating System Type:

  • Choose Microsoft Windows as the OS.   
  • Set the version to Windows Server 2025 (64-bit)

Click Next to continue.

Specify Virtual Machine Name and OS

.

Memory Allocation:

  • Allocate at least 4 GB of RAM (recommended).
  • Select the number of processor cores you want to allocate to the virtual machine. Choose an appropriate amount based on your system’s capabilities and the requirements of your workload.
  • Make sure Enable EFI (special OSes only) is checked, as Windows Server 2025 might require UEFI support.

Click Next to continue.

Specify Memory and Processor Count

.

Create a New Virtual Hard Disk:

  • Choose Create a virtual hard disk now.
  • Set the virtual hard disk size to at least 100 GB (you can increase this if needed).

Click Next to continue.

Specify VHD Size

.

On Summary page, review your selection and if it is OK then click on Finish to create a new virtual machine for Windows Server 2025 installation.

Review Virtual Machine Settings

.

Step 3: Adjust VM Settings

Before starting the installation, we need to modify some VM settings:

Click on your VM (WS2025) in the VirtualBox Manager and click the Settings button.

Modify VM Settings

.

Under Storage:

  • Click on the Empty drive under the Controller: SATA section.
  • On the right, click the disk icon and select Choose a disk file….
Mount ISO Image File

.

Select the Windows Server 2025 Evaluation ISO file you downloaded earlier. Click Open to attach the ISO image to the selected VM.

Select Windows Server 2025 Eval ISO

Verify ISO Image File Mounted

.

Under Network:

Set the Adapter 1 to Bridged Adapter for internet access if you need it. Otherwise, use Host-only Adapter. Click OK to apply the settings and close the Settings window.

Select Bridge Adapter Type

.

Step 4: Start the Virtual Machine and Begin Installation

Now that your VM is configured, let’s start the installation. Select the VM (WS2025) and click Start.

Start Virtual Machine

.

Press any key on your keyboard to boot the VM from the attached ISO file, and the Windows Server 2025 installation will start.

Boot VM Using ISO Image

Loading Installation Files

.

Upon booting, the following screen will appear, allowing you to select the language, and time and currency format. Click Next to Continue.

Select Language Settings

.

Select the keyboard input method and click Next.

Select Keyboard Settings

.

On the “Select Setup Option” page, choose the “Install Windows Server” option to perform a clean installation. Also, check the box labeled “I agree everything will be deleted, including files, apps, and settings.”

Click Next to initiate the installation process. 

Select Install Windows Server

.

If prompted, enter your Windows Server 2025 product key to activate the system. This prompt will not appear if you’re using the Windows Server 2025 Evaluation ISO image.

Next, you’ll be prompted to select the version of Windows you want to install. Choose the appropriate edition of Windows Server 2025 from the available options. The first option is the Server Core version, while the second option includes Desktop Experience for a GUI-based Windows Server.

For this example, we’ll select Windows Server 2025 Standard (Desktop Experience), which offers the full graphical environment.

Select Windows Server Image Type

.

Read the license agreement, then click Accept.

Accept License Terms

.

You will now be prompted to select a disk or partition to install Windows Server. If the disk is unallocated, you may need to format it.

You can optionally create new one partition or use total available size. Click Next to proceed.

Select Disk Partition to Install Windows Server 2025

.

Now you are ready to start the Installation process. Click Install to begin installing windows by copying the files from ISO image to the hard disk and then expanding the files on the hard disk. During the installation process, your system will restart multiple times. This may take up to 10 to 15 minutes to complete.

Start the Installation Process

Installing Windows Server 2025

Installing Windows Server 2025

.

Once the installation is complete, your server will automatically reboot and boot into Windows Server 2025 OS and you will be asked with set a new password for Administrator.

Set password for the built-in Administrator and click Finish.

Setup Built-In Administrator Account Password

.

Once the system is ready, press Ctrl + Alt + Delete and type a password for the administrator account you set up in the previous step to sign in to this computer.

Unlock Windows Server 2025

Login to Windows Server 2025 with admin account

.

On the “Send diagnostic data to Microsoft” page, select the “Required Only” option and click “Accept” to send only the necessary diagnostic data.

Send Diagnostic Data to Microsoft

.

After successfully logging in, the desktop will appear, and the Server Manager Console will load. A “Try Windows Admin Center” popup will appear; click on “Don’t show this message again” and close the popup.

Try Windows Admin Center

.

At this point, you have successfully installed Windows Server 2025 with Desktop Experience on Oracle VirtualBox.

Verify Windows Server Installation

Check Installed OS Version and Type

.

Conclusion:

Congratulations! You’ve successfully installed Windows Server 2025 on Oracle VirtualBox. By following these simple steps, you now have a fully functional virtual machine running Windows Server 2025. You can begin exploring the new features, configurations, and tools that come with this version, all while keeping your physical system safe. Enjoy experimenting!

If you have any questions or encounter any issues, feel free to drop a comment, and I’ll be happy to assist you!

Post Views: 13

In a previous post I’ve covered the process of setting up a Windows Server 2019 VM in VirtualBox. So I’ve figured that I should add one to cover the creation of a Windows Server 2022 VM in VirtualBox as well.

Prerequisites

  1. Oracle VirtualBox – I’m currently using version 6.1.40
  2. Windows Server 2022 evaluation ISO
  3. Sufficient drive space – In my example I’ll be creating two dynamically allocated virtual disks (C drive – 50GB, D drive – 40GB)

The host, aka my PC, is running Windows 11 build 22621.963, but the process is the same on Windows 10.

Creating the VM in VirtualBox

This time, I’ll cover both the GUI way of creating the VM as well as the PowerShell steps in a single post.

If you want to go straight to the PowerShell steps click here.

Via the GUI

I create a new, blank VM.

Oracle VirtualBox GUI with the "New" button marked. Windows Server 2022 VirtualBox

Once the “Create Virtual Machine” window opens, I switch to “Expert Mode” so that I can configure the RAM and system drive in one go.

Window Create Virtual Machine Name and operating system Please choose a descriptive name and destination folder for the new virtual machine and select type of operating system you intend to install on it. The name you choose be used throughout VirtualBox to identify this machine. Name: Machine Folder: F:\VirtualBoxVMs Type: Microsoft Windows Version: Windows 7 (64-bit) Buttons: Expert Mode Next Cancel Marked button: Expert Mode Windows Server 2022 VirtualBox

Afterwards, I specify the name of the VM, the directory in which its base folder should reside, the OS type and version. Since VirtualBox 6.1.40 doesn’t have “Windows Server 2022” as a version, I’ll pick “Windows Server 2019” instead.
I’ll also set the machine’s RAM to 8GB and opt to create a virtual hard disk now, and press “Create”.

Window: Create Virtual Machine Name and operating system Name: WinSrv2k22 Machine Folder: F:\VirtualBoxVMs Type: Microsoft Windows Version: Windows 2019 (64-bit) Memory size: 8192 MB Hard disk O Do not add a virtual hard disk X Create a virtual hard disk now O use an existing virtual hard disk file Buttons: Guided Mode Create Cancel Marked button: Create Windows Server 2022 VirtualBox

In the “Create Virtual Hard Disk” window I just go with the defaults:

  • File size – 50GB
  • Hard disk file type – VDI
  • Storage on physical disk – Dynamically allocated

And I click on “Create”.

Window: Create Virtual Hard Disk File location: F:\VirtualBoxVMs\WinSrv2k22\WinSrv2k22.vdi File size: 50.00 GB Hard disk file type: X VDI (VirtualBox Disk Image) O VHD (Virtual Hard Disk) O VMDK (Virtual Machine Disk) O HDD (Parallels Hard Disk) O QCOW (QEMU Copy-On-Write) O QED (QEMU enhanced disk) Storage on physical hard disk: X Dynamically allocated O Fixed size O Split into files of less than 2GB Buttons: Guided Mode Create Cancel Marked button: Create Windows Server 2022 VirtualBox

At this point the VM is created, but there are a few more things I like to set up before I start installing the OS.
So right click on the VM and go to “Settings”

In the “Processor” tab of the “System” section, I set the number of CPUs to 4.

Window: WinSrv2k22 - Settings Section: System Tab: Processor Processor(s): 4 CPUs Windows Server 2022 VirtualBox

Now to add a second virtual disk drive – this will be the 40GB D drive.
I go into the “Storage” section, increase the SATA controller’s port count from 2 to 3 (as per VirtualBox recommendations) and press the “add hard disk” button.

Window: WinSrv2k22 - Settings Section: Storage Storage Devices (in the center of the window) Controller: SATA Buttons (right next to the Controller: SATA label): "Add Optical Drive", "Add hard disk" Storage devices (continued) WinSrv2k22.vdi (this is the HDD) Empty (this is the optical drive) Attributes (on the right hand side of the window) Name: SATA Type: AHCI Port Count: 3 O Use Host I/O cache (unchecked) Tool tip while hovering over the "Port Count" field" Selects the port count of the SATA storage controller currently selected in the Storage Tree. This must be at least one more than the highest port number you need to use. Marked buttons and fields: Port Count: 3 The "Add hard disk" button Windows Server 2022 VirtualBox

In the “Hard Disk Creator” window I press the “Create” button.

In the “Create Virtual Hard Disk” window I press the
Window: Create Virtual Hard Disk Hard disk file type Please choose the type of file that you would like to use for the new virtual hard disk. If you do not need to use it with other virtualization software you can leave this setting unchanged. X VDI (VirtualBox Disk Image) O VHD (Virtual Hard Disk) O VMDK (Virtual Machine Disk) Buttons: Expert Mode, Next, Cancel Marked Button: Expert Mode Windows Server 2022 VirtualBox

Once the windows switches to expert mode, I set the size to 40GB, validate the file location matches with the VM’s base directory and leave the defaults selected for hard disk file type and storage on physical hard disk, and then click on “Create”.

Window: Create Virtual Hard Disk File location: F:\VirtualBoxVMs\WinSrv2k22\WinSrv2k22_1.vdi File size: 40.00 GB Hard disk file type: X VDI (VirtualBox Disk Image) O VHD (Virtual Hard Disk) O VMDK (Virtual Machine Disk) O HDD (Parallels Hard Disk) O QCOW (QEMU Copy-on-write) O QED (QEMU enhanced disk) Storage on physical hard disk: X Dynamically allocated O Fixed size O Split into files of less than 2G8 (grayed out) Buttons: Guided Mode, Create, Cancel Marked Button: Create

Now, in the “Hard Disk Selector” window I select the newly created virtual hard disk and then click on “Choose”.

Window: WinSrv2k22 - Hard Disk Selector Medium Buttons: Add, Create, Refresh The "Not attached" list is expanded and only contains one element - the new hard disk Not Attached Name: WinSrv2k22_1.vdi Virtual Size: 40.00 GB Actual Size: 2.00 MB - selected Buttons: Choose, Cancel Marked Button: Choose

While I’m in the “Storage” section, I’ll also attach the Windows Server 2022 Evaluation ISO by selecting the optical drive, expanding the disk drop-down menu and clicking on “Choose a disk file…”.

Window: WinSrv2k22 - Settings Section: Storage Storage Devices Controller: SATA WinSrv2k22.vdi Empty (disk drive selected in the screenshot) Attributes: Optical Drive: SATA Port 1 Clicked on the disk drive icon next to the, menu expands to show the second option "Choose a disk file" selected

This opens up a file explorer window in which I navigate to where the “Windows_SERVER_2022_EVAL_x64FRE_en-us.iso” file resides so that I can attach it to the VM’s optical drive.

Window: WinSrv2k22 - Settings Section: Storage Storage Devices Controller: SATA WinSrv2k22.vdi (virtual hdd) Windows_SERVER_2022_EVAL_x64FRE_en-us.iso (optical drive)

Afterwards, I navigate to the Network section set the network as bridged so the VM is accessible from the rest of the LAN.

Window: WinSrv2k22 - Settings Section: Network Adapter 1 X Enable Network Adapter Attached to: Bridged Adapter Name: Intel(R) Ethernet Controller 1225-V

At this point I can click “Ok” in the settings window so that the changes are saved.
I then start the VM.

And proceed with the OS installation process.

Via PowerShell

I open PowerShell and, to make things easier, append VirtualBox’s installation directory to the PATH environment variable.

$Env:Path += «;C:\Program Files\Oracle\VirtualBox\»

Since VirtualBox 6.1.40 doesn’t have “Windows Server 2022” as a version, I’ll search for the OS ID for Windows Server 2019 instead.

VBoxManage list ostypes | Select-String -Pattern «Windows» |

Select-String -Pattern «2019» -Raw

PowerShell 7.3.1 PS C:\Users\Vlad data-lazy-src=

I then use that OS ID to create and register an empty VM.

VBoxManage createvm name WinSrv2k22 ostype Windows2019_64 register

Take note of the location of the VM’s settings file location since that directory will also be the VM’s base directory.

PS C:\Users\Vlad data-lazy-src=

Afterwards add CPU cores, RAM, and VRAM. Set the graphics controller, and set the network type as bridged as well as specifying the name of the host’s NIC that will be used.

VBoxManage modifyvm WinSrv2k22 cpus 4 memory 8192 vram 128 `

graphicscontroller vboxsvga nic1 bridged `

bridgeadapter1 «Intel(R) Ethernet Controller I225-V»

Add a SATA storage controller, specify the controller’s chipset, port count, and set it as boot-able.

VBoxManage storagectl WinSrv2k22 name «SATA» add sata `

controller IntelAHCI portcount 3 bootable on

Create the virtual disk file that will eventually become the C drive.

VBoxManage createhd filename F:\VirtualBoxVMs\WinSrv2k22\WinSrv2k22.vdi `

size 51200 variant Standard

Add a second virtual disk file (optional).

VBoxManage createhd filename F:\VirtualBoxVMs\WinSrv2k22\WinSrv2k22_1.vdi `

size 40960 variant Standard

Attach the two disks to the storage controller.

VBoxManage storageattach WinSrv2k22 storagectl «SATA» port 0 `

device 0 type hdd medium F:\VirtualBoxVMs\WinSrv2k22\WinSrv2k22.vdi

VBoxManage storageattach WinSrv2k22 storagectl «SATA» port 1 `

device 0 type hdd medium F:\VirtualBoxVMs\WinSrv2k22\WinSrv2k22_1.vdi

Now, I can attache the Windows Server 2019 Evaluation ISO.

VBoxManage storageattach WinSrv2k22 storagectl «SATA» port 2  device 0 `

type dvddrive `

medium C:\Users\Vlad\Downloads\Windows_SERVER_2022_EVAL_x64FRE_en-us.iso

And start the VM in order to proceed with the OS install process.

VBoxManage startvm WinSrv2k22

Installing Windows Server 2022 on the empty VirtualBox VM

Once the VM boots, I can select the language and regional settings and click on “Next”

Window: Microsoft Server Operating System Setup Microsoft Language to install: English (United States) Time and currency format: English (United States) Keyboard or input method: US Enter your language and other preferences and click " Next" to continue. Button: Next

If this pops up, just check the “do not show this message again” box and click on “Capture”. Just remember to press right Ctrl whenever you want to move the mouse outside the VM window.

VirtualBox - Information You have clicked the mouse inside the Virtual Machine display or pressed fre host key. This will cause the Virtual Machine to capture the host mouse pointer (only if the mouse pointer integration is not currently supported by fre guest OS) and the keyboard, which will make them unavailable to other applications running on your host machine. You can press fre host key at any time to uncapture the keyboard and mouse (If it is captured) and return them to normal operation. The currentiy assigned host key is shown on the status bar at the bottom of the Virtual Machine window, next to the icon. This icon, together with the mouse icon placed nearby, indicate the current keyboard and mouse capture state. The host key is currently defined as Right Ctrl. x Do not show this message again Buttons: Capture, Cancel Marked Button: Capture

In the next prompt click “Install Now”

Prompt with "Install now" button in the center of the screen.

For this VM, I opt to install the Windows Server 2022 Standard Evaluation (Desktop Experience) version.

Window: Microsoft Server Operating System Setup Select the operating system you want to install Operating system; Architecture; Date modified Windows Server 2022 Standard Evaluation; 64; 3/3/2022 Windows Server 2022 Standard Evaluation (Desktop Experience); 64; 3/3/2022 - selected Windows Server 2022 Datacenter Evaluation; 64; 3/3/2022 Windows Server 2022 Datacenter Evaluation (Desktop Experience); 64; 3/3/2022 Buttons: Next Marked Button: Next

In the next window I read and accept the software license terms, and proceed with the installation process.

For installation type I click on “Custom”, because there’s really no previous version of the OS to upgrade from.

I then proceed with the partition configuration part.
First, I select the drive (Drive 0) that’s going to end up being the system drive, click on “New” and then “Apply” in order to create a new partition.

Click “Ok” on the prompt informing me about the creation of additional system partitions.

I then repeat the same steps for the second drive (Drive 1).

And now I select the partition (Drive 0 Partition 2) on which the OS should be installed and click on “Next” to begin the installation.

After the install process finishes, the VM reboots and a prompt to “press any key to boot from CD/DVD” appears, I just wait for the prompt to time-out since I want to boot directly in Windows.

Once the OS boots up, it asks to set up a password for the Administrator account.

I type a password, confirm it and press “Finish”.

At the logon screen I send the Ctrl+Alt+Del input to the VM. This can also be done with the right Ctrl+Del keys.

In the VM window, in the top bar, click on Input data-lazy-src=

And log into Windows with the previously configured password.
At this point I can eject the installation media and mount the VBoxGuestAdditions disk. If it doesn’t show up in the drop down list, it is located in “C:\Program Files\Oracle\VirtualBox\”.

Once the disk is mounted, I navigate to it in File Explorer and proceed with the installation of the guest additions. Right click on “VBoxWindowsAdditions.exe” and run as admin, then just proceed through the install without making any changes. I reboot the VM when the install process prompts me.

After the VM reboots I enable the shared bidirectional clipboard.

One last and optional part – I run the following commands in admin PowerShell to rename the VM, but also make sure that the current network profile is set to private so that the firewall won’t block me if I try to connect to SQL Server or anything else that I might install later.

Rename-Computer WinSrv2k22

get-netconnectionprofile | Select -ExpandProperty name |

%{  set-netconnectionprofile -name $_ -networkcategory «private» }

In case of poor VM performance

If you notice that your VM is slow, freezes or crashes, you might want to check out this post for a potential fix.

Conclusion

The steps to create a Windows Server 2022 VM in VirtualBox are fairly straightforward once you get used to the UI, but building the VM via PowerShell can be a huge time saver.

Windows 2022 is an upcoming server OS from Microsoft with new features and plenty of security enhancements. As Microsoft is pushing harder on security by utilizing hardware chips in Windows 11, the same technique continues in Windows 2022 servers also.

The next question that comes to our mind is installing and testing this new OS on our normal PCs. Thanks to virtualization technology. We can do that with the Windows built-in Hyper-V feature or VMware and VirtualBox. In this guide, let me show you where to download the Windows 2022 server ISO/VHDX file and install it on VirtualBox using your normal Windows 10 or 11 computer.

Some key security improvements include secure-Core servers, TPM 2.0, Virtualization-based security, and firmware protection. Also, Microsoft implements HTTPS, and TLS 1.3 enabled connectivity by default. Improvements in DNS resolution also can be seen in this new OS which can prevent DNS hacks and poisoning.

Other considerable enhancements in monitoring Azure, on-premise and hybrid environments, networking, and Hyper-V improvements are available in the new server OS. To find out more new features, do check the official feature list.

Also, note that when we install Windows 2022 on VirtualBox (or any virtualization environment), we can’t check the all-new features. Some of these features will only work when we install the server OS on the physical hardware.

1) Download the Windows 2022 server from the official site here. You may need to provide your details to download the file.

Download ISO File

2) Download and install the latest Oracle VirtualBox software (if you don’t have it already on your host computer).

3) Make sure you have enough hardware resources to allocate. Minimum 2GB RAM, recommended is more than 4GB.

4) Create a new VM from the VirtualBox console. It is okay to select the Windows 2019 (64bit) server as the OS version since Server 2022 is not officially supported by VirtualBox (as of now)

Select The OS Type

5) Set the RAM size based on your physical computer RAM availability. I configured 8GB in this example.

6) Create a new virtual hard disk, VDI type, 50GB size (or more) and select a dynamically allocated type to save disk space.

7) Click next to create the virtual machine.

8) Go to the settings of the newly created virtual machine and edit the processor settings. Increase the processor cores to 2 or more. By default, it will create the VM with a single-core, which may not be enough to install the desktop experience version of the Windows 2022 server.

Processor Settings

You can check the hardware requirements for the Windows 2022 server here at the official site.

9) Open the Storage option and mount the downloaded 2022 ISO file to CD/DVD drive as shown below.

Mounted ISO File

10) Power the virtual machine and select the mounted ISO file to boot the VM.

11) It is a normal Windows OS server installation process; nothing changed in this version. Select the Desktop Experience if you want to get the normal desktop and GUI interface. If you don’t select this option, you will get the Windows 2022 Server Core on the VirtualBox.

Select Desktop Experince Version Windows 2022 Server

If you want to get experience on server core, you can install without Desktop Experience. You can always upgrade the server core to a Desktop experience or vice versa later.

In this example, I selected the desktop version.

12) Select the new Install option to do the fresh installation.

Select Fresh Install

13) Select the hard disk you want to install and click Next. The installation process will create the required partitions and process to the next step.

14) After the installation is completed and VM is rebooted, you need to set up the Administrator password.

15) Here you go; you will land on the latest Windows 2022 server OS on VirtualBox as a virtual machine. It doesn’t matter which OS you have on your computer; it can be Windows 10, 11 or even the seven, Linux or macOS. As long as you have enough hardware resources on your physical computer with the latest VirtualBox, you can have Windows 2022 server as VM showed in these steps.

Working Windows 2022 On VirtualBox

Read Also: Best Home Server OS you must know

What about VirtualBox Guest Additions for Windows 2022 Server?

As we mentioned earlier, Oracle VirtualBox doesn’t support Windows 2022 since this server version is still in preview mode (as of mid-July 2021). So, we do not have proper tested VirtualBox guest additions for server 2022.

But, we can try the available guest additions for Windows OS (Server 2019). Before proceeding to the next steps, I highly recommend taking a snapshot of the virtual machine.

16) Click on Devices, and Insert Guest additions CD image of the virtual machine.

Insert Guest Additions

17) Once it is mounted successfully inside the VM, open the CD drive and execute the Windows version of guest additions.

Exe File Of The Guest Additions For Windows 2022

18) Select Install for required drivers and continue the installation. You need to reboot the VM at the end.

19) This Windows 2022 server VM should perform well with proper working display, mouse movements, full-screen mode, and other additional VirtualBox guess addition features.

Working Guest Additions On Windows 2022 Server

20) Take another snapshot before playing around with the new OS. Also, a full Windows update is highly recommended to get the latest updates and improvements.

Download Windows 2022 Server VHDX for VirtualBox or Hyper-V

Usually, Microsoft provides the preview and final versions of server Operating Systems in VHDX format, which natively supports Hyper-V. These pre-installed VHDX files can be easily imported to Hyper-V or VirtualBox to use the OS instantly.

You can download the Windows 2022 Server VHDX file from the Microsoft site here.

VHDX Not Available

Unfortunately, at the moment, the preview builds are temporary on hold, and you can’t download them from the Microsoft site. When these images are available, you can download the VHDX file and simply import it to Oracle VirtualBox as described in our earlier guide on Windows 2012 R2 Server.

You wanted to test something in the windows server operating system; maybe you want to create a domain controller, a DHCP server, or even a DNS server.

The best way to test the windows server configuration is to perform them on a LAB environment. And Some of you may not have lab access, so your available option would be to virtualize the windows server on a hypervisor.

That way, whatever you do on the machine will stay in a virtualized environment.  There are multiple hypervisors you can use to spin up the Windows server. And in my last article, we had covered how you can install the windows server on a KVM host. And In this blog, we are going to install the windows server on a VirtualBox.

Can you run Windows Server in VirtualBox?

You can run most operating systems with VirtualBox, provided it should be bootable or a virtual hard disk. Most of the users out there will have Windows server ISO file, and it works perfectly fine. However, you have a choice from Microsoft to download the virtual hard disk in VHD format. You can use that as well to install the windows server on the VirtualBox. And the windows server works great with the VirtualBox.

To get better performance after the installation of the windows, you will also have to install the VirtualBox guest additions. We will cover that as well in this article.

How do I download windows server images for VirtualBox?

You can go to Microsoft windows server evaluation center and download the Version of your choice. When you choose the Version, you will have multiple options; you can either select ISO or VHD. After choosing the Version, you will have to submit the form and post which you will get a link to download the software.

When it comes to the installation, compared to the ISO installation, the VHD file is the easiest way; however, the VHD file size is about 8GB, so you need to be mindful of that.

We will see how we can install the windows server 2019 with both the ISO file and the Virtual hard disk file.

Though we are installing the windows server 2019 in a VirtualBox, the steps mentioned here are identical for other Version of windows as well, such as windows server 2016,2012 and so on.

Prerequisite.

  • Download and install the VirtualBox.
  • Download the windows server image (Either ISO or VHD)
  • Installation using the ISO file.
  • How to install windows server using virtual hard disk (VHD) in VirtualBox?

Installation using the ISO file.

1.      Creation of Windows server VM in VirtualBox.

Open VirtualBox and click on New or CTRL+N to start the windows server VM installation.

A new Create Virtual machine window will pop up; you can choose either Guided Mode or Expert Mode. We are using the Guided Mode for our lab.

  • Enter the name of the VM.
  • Select the folder where you want to keep the VM Hard disk files, I left as a default folder.
  • Choose the Type as Microsoft Windows.
  • Version as Windows 2019 (64bit), for other Version of windows server you may choose them here. For Example, Windows 2016 (64bit)

After specifying the above, you may Click on Next.

2.      Specify the Memory.

You now have to define the Memory for the VM; since I most likely use it for a small Lab, I am fine with 2gigs of RAM. However, if you plan to do more stuff with it, you may need to increase the RAM accordingly.

3.      Create virtual Hard disk.

We will create a virtual hard disk for our VM; in the hard disk wizard. Select the option à Create a virtual hard disk now and Click on create.

By default, the hard disk type would be VDI, and you may choose the default Value itself if you are planning to use the VirtualBox as your permanent hypervisor.

But I would recommend choosing VMDK so that you have an option to move from the VirtualBox to other hypervisors of your choice.  Now Select VMDK and Click on the option Next.

On Storage on Physical hard disk, Choose the default value Dynamically allocated and Click on Next.

We will now define how much storage you want to provision for the windows server; I choose 50GB which is more than enough for me.

If you feel that you might need some extra space, you choose more based on your requirements and Click on Create.

You will be able to see the windows server VM instance is created.

4.      Increase the CPU.

By default, the VirtualBox would assign only one processor to the VM, and I need to add one more processor. That way, then the performance would be good. If you do not need more CPU, you may skip this step.

Right-Click on the VM and Click on settings.

Click on System and choose the Processor tab, and in the processor count, increase it to two.

5.      Attach the windows server image to the virtualbox.

On the same VirtualBox settings, Click on storage.

Under storage devices, Choose the Empty Disk.

In the attributes, Click on the Disk icon to choose a disk file.

And attach the ISO that we have downloaded earlier and Click on Ok.

Right-Click on the VM and Click on start.

From the start-up disk, choose the ISO image that we have attached and click on start. The VirtualBox instance will boot the windows server image.

6.      Begin the windows installation.

After a few seconds, you should see the windows installation screen, Choose the language, and Click on Next.

You can click on Install now.

7.      Choose the Version – GUI or CLI.

You will be presented with the different Versions of windows server 2019 on the screen. You must be a little careful here.

If you want to install the windows server with GUI, you may choose Desktop experience, or if you are ok with CLI, you may select the other options.

I need GUI access; hence I selected Windows server 2019 Datacenter evaluation (Desktop Experience)

After you decided on the versions, you may Click on Next.

Accept the license agreement and Click on Next.

Choose the installation as Custom.

Choose hard disk that we have defined earlier, Click on Next.

The windows server installation will now begin; this will take some time to finish.

8.      Setup the admin password.

After the installation, you will be prompted to enter the Administrator password. Set the administrator password and Click on Finish.

9.      Remove the ISO file.

Installation of Windows server 2019 in Oracle VirtualBox is completed; you may now log in to the windows server.

Let’s remove the windows server ISO file that we had attached during the installation.

On the bottom corner of the VirtualBox window, right-click and click on the disk icon and click on Remove disk from virtual drive.

10.      Installation of VirtualBox Guest additions.

Finally, we will have to install the VirtualBox guest addition, which will improve the performance of the windows server VM.

To install the VirtualBox guest additions, you may log in to the windows host.

Click on Input–> Keyboard–> Insert Ctrl+Alt+Del

You will be prompted to enter the admin password that we had set up earlier.

After logging in, Click on Devices > Insert Guest Additions CD image…

It will attach the Guest addition installation disk to the Windows server VM.

Open This PC, and you should see the VirtualBox Guest additions CD drive and double click on it.

Double click on the Virtualbox Guest addition installation setup file to install the VirtualBox guest additions on your windows server machine.

It is a typical software installation and nothing too complex here; you may click on next on all the drive installation prompt that you get.

After the installation, you may now go ahead and reboot the VM, and you should be good to go.

How to install Windows Server using Virtual Hard Disk (VHD) in VirtualBox?

We have successfully installed the windows server 2019 on the VirtualBox hypervisor using ISO image. We now will go ahead and install the virtual machine using the virtual hard disk. We already have a VHD file downloaded from the Microsoft site.

1. Creation of the VM.

On the VirtualBox, Click on New.

  • Name the VM and the location where you want to save the virtual machine.
  • Type as Windows.
  • Version: Windows 2019 (64bit)

2. Define the memory size.

We can provide a Memory of 2GB or more, and I am choosing 2GB for now.

3. Attach the Virtual Hard disk.

When we chose the ISO method of installation, we created a new hard disk in the VirtualBox.

But right now, we already have the virtual hard disk file, We need to attach that here.

Select use existing virtual hard disk file and click on the browse button next to the drop-down.

You will not see the virtual hard disk in the new pop up; Click on Add.

And Select the VHD file which we downloaded from Microsoft.

The new image is added under the not attached section.

Select the image and Click on Choose.

You need to make sure the new virtual hard disk is selected under ‘use existing hard disk file’

Click on Create.

4. Choose the region and Accept the license.

Once you power on the machine, you will get an option to Choose the region, Language, Layout and Click on Next.

You have to accept the license before you continue.

Follow the Step 8 above to set the admin password. Enter the password and Click on Finish.

Your VirtualBox is ready to use, and you still need to install the VirtualBox guest additions following Step 10 above which is important.

How to Install Windows Server 2022 on VirtualBox

Check for Virtualization

Using Task Manager:

  • Go to Start>Windows System , open Task Manager , select the Performance tab and under the tab select CPU.
  • Look for Virtualization and ensure it says enabled.
    check Virtualization

Download Windows Server 2022 ISO

  • Go to Microsoft’s Download Page.
  • Select the ISO download for the 64-bit edition.
    download server 2022

Download VirtualBox

  1. Go to the VirtualBox Downloads Page.
  2. Under platform packages, select Windows hosts.
  3. Once downloaded, go to your Downloads folder and double click VirtualBox-7.1.4-165100-Win.
  4. A pop-up will appear asking, «Do you want to allow this app to make changes to your device?» Select Yes.
  5. You will arrive at the «Welcome to the Oracle VirtualBox Setup Wizard», click Next.
  6. At the End-User License Agreement screen, select «I accept the terms in the License Agreement», then click Next.
  7. Once your at the Custom Setup screen, click Next. If you see a warning about Network Interfaces, click Yes.
  8. When you reached the Missing Dependencies (Python Core/Win32api), click Yes.
  9. Now at the next screen, leave it at the default and click Next.
  10. At the Ready to Install screen, click Install.
  11. Lastly, you will see a message that «Oracle VirtualBox 7.1.4 installation is complete». Click Finish.
    installing VB

Create a New Virtual Machine

  1. Once VirtualBox opens, click New. A screen titled «Create Virtual Machine» should appear.

  2. At the name input, name it.

  3. Under ISO Image, click the down arrow and select Other. Go to your Downloads folder and choose the SERVER_EVAL_x64FRE_en-us.iso, then click Open.

  4. Select Skip Unattended Installation (this skips setting up an Unattended Guest), then click Next.

  5. At the hardware window, allocate resources to your VM:

    • RAM: To check how much RAM your system has, click Start > Settings icon > About. The RAM size is displayed under Installed RAM.
    • Processors: To check how many processors your system has, click Start > System > Task Manager. Under the Performance tab, select CPU, and it will show the number of cores.
      adding ram and cores

  6. Stay within the green zone when sharing your system’s RAM and processors.

    • Virtual Hard Disk: At the Virtual Hard Disk window:
      To check how much free space your hard drive has, select Start > Settings > Storage. Under Local Disk, you will see the available free space.
  7. Allocate as much space as you need but avoid exceeding half of your physical hard drive’s capacity.

  8. You will reach the Summary screen. Review your selections, and if satisfied, click Finish.

    adding harddrive and finalizing vm install

Starting the Server

  1. Select Start. You will see the Microsoft Server Operating System Setup. Click Next, then click Install Now.
  2. At the next window, select the OS option: Windows Server 2023 Standard Evaluation (Desktop Experience), then click Next.
  3. Accept the license terms and click Next.
  4. When asked, «Which type of installation do you want?», select Custom (since we are not updating).
  5. Click Next when prompted to select the installation drive (it will select the only available drive).
  6. The installation will begin.
  7. Once done, Windows will restart.
    starting server

Completing the Installation

  1. You will be prompted to set a password for the admin. Enter a password.
  2. Press Ctrl+Alt+Delete to unlock. In VirtualBox, go to Input > Keyboard > Insert Ctrl+Alt+Delete.
  3. Log in using the admin credentials.
    completing server installation

    Congratulations! You have successfully installed Windows Server 2022 on VirtualBox.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Billy brooks windows of the mind
  • Реферат на тему оптимизация операционной системы windows 7
  • Установить загрузчик grub из под windows 10
  • Windows performance monitor windows 10
  • Usb image tool windows