Windows VM in Proxmox

First remove the annoying message that keeps popping up every time you log in.  Navigate to the following directory where the PVE manager configuration files are stored.

 cd /usr/share/javascript/proxmox-widget-toolkit/

Make a backup:

cp proxmoxlib.js proxmoxlib.js.bak

Open the file with nano and lookup the text (ctrl-w):

if (data.status === 'Active') {

And replace it with:

if (false) {

Close nano and save the file, go back to your browser and logout, then refresh your browser (chrome: ctrl-F5). and login again. The message should be gone now

Next steps is uploading your Windows 10 iso.  This can be done from within the Proxmox website. Select your local storage node,  and click the button upload under Content.  This can take a while depending on your network speed, in the meantime open up a ssh session to your Proxmox server. For installation we need also the Windows Virtio Drivers for the virtual hardware

Navigate to the directory where all templates and iso are stored:

cd /var/lib/vz/template/iso

And download the the drivers

wget https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso

When finished go back to your browser session and click “Create VM” (top right). Under tab OS choose your installation ISO and select Windows 10 as Guest OS. For your virtual hard disk select “VirtIO” as bus and “Write back” as cache option for best performance (the No cache default is safer, but slower).  Finish the wizard (I choose 32GB disk size, 2048 RAM, Network driver: VirtIO), but do not start it yet.  We have to mount the driver ISO to install the drivers when installing Windows. Click the created VM and under the  hardware tab click the add button. Select CD-Drive and use the virtio-win.iso as image and click create.  Now we can start the machine.

Open up a console and you see the Windows Setup screen.

Choose your language settings, click install, fill in your key, accept the license , choose custom installation.

window setup

Now a screen popups with the message that setup cannot find any drives. Windows doesn’t have the Virtio harddisks drivers loaded, so we have to do that manually.  Click the Load driver icon and browse  D:\viostor\w10\amd64\viostor.inf

After loading the driver your drive is visible, select the drive and click next. and installation will begin

When installation is finished you can add the missing drivers via device manager.  Click on the driver with the yellow exclamation sign and browse to D:\ and click on next. Repeat for every unknown missing driver.

Remote Desktop

Enable Remote Desktop so you can manage this Windows machine full screen. Make sure to disable Network Level Authentication. When you cannot setup the connection, enable Remote Desktop in Windows Firewall.

windows firewall remote desktop

Sources: 

http://forsmans.art/2017/11/16/remove-subscription-notification-from-proxmox-ve-5/

https://pve.proxmox.com/wiki/Windows_10_guest_best_practices#Prepare

https://pve.proxmox.com/wiki/Paravirtualized_Network_Drivers_for_Windows#Choose_the_right_driver

 

 

Leave a Reply

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