Prerequisite:

Have a working Oracle VM VirtualBox, enable virtualization in bios if it is not enabled and have an iso disk of windows server 2008 R2.

Ready?

Microsoft Hyper-V:

https://www.tutorialspoint.com/windows10/windows10_virtualization.htm

Oracle VM VirtualBox:

https://www.virtualbox.org/manual/ch01.html

Enable virtualization in win 10 if you need to. Restart pc and press F2 for bios. Under “Advanced” tab, find the last one “Intel Virtualization Technology”, change it to “Enabled”.  Press F10 for save and exit.

You should now have several more options regarding OS to use, select Windows 2008 (64bit)

Create a virtual machine:

https://www.virtualbox.org/manual/ch01.html#idm485

 

Now configure your box, 2048 mb RAM, create a virtual hard disk now, VDI,  dynamically allocated, file location and size, 25GB.

Start your virtualmachine and and point to the OS iso file.

 

Now “install windows” will launch:

Select version:

Select type:

Verify disk from virtualbox:

Almost there:

Set the password:

Ready:

And we are done:

 

Now it is time to start to develop and test…

The difference between these three options is crucial. They mean:

Save the machine state: With this option, VirtualBox “freezes” the virtual machine by completely saving its state to your local disk.

When you start the VM again later, you will find that the VM continues exactly where it was left off. All your programs will still be open, and your computer resumes operation. Saving the state of a virtual machine is thus in some ways similar to suspending a laptop computer (e.g. by closing its lid).

Send the shutdown signal. This will send an ACPI shutdown signal to the virtual machine, which has the same effect as if you had pressed the power button on a real computer. So long as the VM is running a fairly modern operating system, this should trigger a proper shutdown mechanism from within the VM.

Power off the machine: With this option, VirtualBox also stops running the virtual machine, but without saving its state.