How to create Windows Server 2016 & 2019 VM’s – OpenVZ 7

In this post I will explain how to create Windows Server 2019 & Windows Server 2016 VM’s using OpenVZ 7 (based on KVM).

Create a new VM with Windows Server 2016 or 2019 (use win-2016 as distribution for 2019).

prlctl create SRV-WIN2019 --distribution win-2016 --vmtype vm

Download and add your Windows ISO:

prlctl set SRV-WIN2019 --device-add cdrom --image /root/downloads/server2019.iso

Enable VNC for remote access:

prlctl set SRV-WIN2019 --vnc-mode manual --vnc-port 5905 --vnc-passwd YourPassword

Optional, set a static MAC-address:

prlctl set SRV-WIN2019 --device-set net0 --mac 00:11:22:33:44:55

Enter your Private or Public IP Address + CIDR, Gateway and Nameserver:

prlctl set SRV-WIN2019  --device-set net0 --ipadd X.X.X.X/24 --gw X.X.X.X \
--nameserver 8.8.8.8

Set CPU Cores:

prlctl set SRV-WIN2019  --cpus 2

Set RAM/Memory size (in GB):

prlctl set SRV-WIN2019 --memsize 4G

Set Disk size (in GB):

prlctl set SRV-WIN2019 --diskspace 80G

Set I/O Limit in MB/s (Disk):

prlctl set SRV-WIN2019 --iolimit 50

Start your VM:

prlctl start SRV-WIN2019

Connect to your OVZ 7 Host IP + VNC Port 5905 with VNC Viewer and follow the Windows installation instructions.

Let’s install OVZ Guest Tools on Windows Server 2016 or 2019:

prlctl installtools SRV-WIN2019

Congrats! The installation has been completed! 🙂

Supported VM Operating Systems:

The following values are allowed:
win-2008                win-2012                win-2016                ubuntu
fedora-core             debian                  centos                  centos7
vzlinux                 vzlinux7                cloudlinux              cloudlinux7
opensuse
Experimental support:
win-2000                win-xp                  win-2003                win-vista
win-7                   win-8                   win-8.1                 win-10
win                     rhel                    rhel7                   suse
sles11                  sles12                  psbm                    redhat
mandriva                xandros                 mageia                  mint
linux-2.4               linux-2.6               linux                   freebsd
chrome                  msdos                   netware                 solaris

3 thoughts on “How to create Windows Server 2016 & 2019 VM’s – OpenVZ 7

    1. Tom van Brienen Post author

      Hello Muhammed,

      You can connect to the host IP (OVZ7 Server) + VNC Port X.X.X.X:5905 with your VNC client. Make sure you can reach the OpenVZ server.

      For example:
      prlctl set VMName --vnc-mode manual --vnc-port 5905 --vnc-passwd YourPassword

      A VNC connection to the IP-address of the VM doesn’t work.

      Tom

      Reply

Leave a Reply

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