Openvz7 install Windows 10 /2016 guest OS
How to install Windows 10 / Windows 2013 / Windows 2016 server /Windows 2019 Server OS
DRAFT
you need to obtain original Windows ISO of the desired version.
List distros:
For example to install Windows 10:
#prlctl create WIN10WS --distribution win-10 --vmtype vm
Or windows Server 2016 (for 2019 the same )
prlctl create WINSRV --distribution win-2016 --vmtype vm
Or windows Server 2022
prlctl create WINSRV --distribution win-2022 --vmtype vm
Or EOL Windows 2012:
#prlctl create WINSRVOLD --distribution win-2016 --vmtype vm win-2012
ADD CD-ROM:
prlctl set WINSRV --device-add cdrom --image /tmp/downloads/server2019.iso
Enable and set VNC port:
prlctl set WINSRV --vnc-mode manual --vnc-port 5995 --vnc-passwd YourPassword
Configure resources:
prlctl set WINSRV --cpus 4 prlctl set WINSRV --memsize 4G prlctl set WINSRV --diskspace 60G prlctl set WINSRV --iolimit 50 #optional
prlctl set WINSRV --device-set net0 --ipadd X.X.X.X/24 --gw X.X.X.X --nameserver 8.8.8.8
Set the network mode routed or hosted:
prlctl set WINSRV --device-set net0 --type routed
Start VM:
prlctl start WINSRV
Connect via VNC and proceed with OS install.
After that configure the IP static/DHCP inside VM ; also you may install VZ_toosl so the network may be managed from host node like:
prlctl installtools WINSRV
optional SET MAC:
prlctl set WINSRV --device-set net0 --mac 00:11:22:33:44:55
Or back to auto:
prlctl set WINSRV --device-set net0 --mac auto
Optional set dhcp (note network adapter mode):
prlctl set WINSRV --device-set net0 --dhcp yes
Optional : if you like to move the VM hdd and config files to another folder use :
prlctl move <vm_ID|vm_name> --dst <path>