[Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post Reply
User avatar
Trexx
Ask me anything
Posts: 5393
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota

[Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post by Trexx »

Purpose:
This tutorial is to show you how to install the VirtIO drivers into a Windows VM running under Virtualization Station.

Note: Always have a backup of your VM. While I have tried to make sure I have documented all steps and highlight potential risk areas, I will not be responsible for any data loss.

Pre-Requisites:
  • Virtualization Station 3.x installed (NOTE: these steps should work for VS 2.x as well, but the configuration screens may be different)
  • Latest VirtIO ISO file from HERE copied to a Shared Folder on your QNAP
  • Windows VM
Test VM Setup:
For this tutorial, I downloaded the IE10 on Win7 - VirtualBox VM from HERE. If you already have an existing VM you can skip this section.
  1. Unzip the IE10 - Win7 VM you downloaded from MS into its own folder. You can either save this on your PC or store it in a shared folder on the NAS
  2. Choose Import VM located in the upper right part of the VS 3.x Overview screen
  3. Select PC or NAS (depending on where you saved the files from Step 1) and locate the OVA file. Click NEXT
  4. Configure your VM settings.
    • VM Name: IE10 on Win7
    • CPU Cores: 2 (adjust as needed for your system)
    • Memory: 4GB (adjust as needed for your system)
    • VM location:: <Select your Shared Folder>
  5. Click Import
Depending on your QNAP Model and Storage configuration, the import process could take a while.

VirtIO Installation:
Installing the VirtIO drivers takes a little bit of effort, but is worth the work.

Your VM should be Powered OFF prior to these next steps.

Updating your VM Configuration

In VS console, select Virtual Machines / <Your VM>

Click Settings and make the following changes
  • (For Test VM users) General: Changes OS Type to Windows / Windows 7. Click APPLY
  • Network: Change Model to VirtIO. Click APPLY
  • Storage: Click Add Device in Upper Right corner.
    • Interface: VirtIO
    • Cache Mode: WriteBack
    • Size: 1GB
  • CD / DVD: Click the CD icon to the right of Image Path and point to the location where you saved the VirtIO ISO file (from Pre-Requisites). Click APPLY
  • Video: Change Type to QXL. Click APPLY
  • Power On your VM
Install VirtIO drivers in Windows

After your VM is powered on, we will need to install the VirtIO drivers that are located on the ISO setup as a CD-ROM.
  • Click on Start
  • Right-Click on Computer > Manage
  • Click on Device Manager
  • Expand Other Devices(you should see several Yellow item)
  • Right-Click on Ethernet Controller
    • Update Driver Software
    • Browse my computer for driver software
    • Change location to you D:\ (your CD-ROM) and make sure Include subfolders is CHECKED
    • Click NEXT

      You will get a popup box after a couple seconds for installing the Ethernet driver.
    • CHECK Always trust software from "Red Hat, Inc."
    • Click INSTALL
    • Click CLOSE

      Repeat the same process for the remaining items under Other devices[/]
    • PCI Device (VirtIO Balloon Driver)
    • SCSI Device (RedHat VirtIO SCSI Controller)
    • Close Device Manager
    • Shutdown Windows


Configuring Boot HDD to use VirtIO and Cleanup
At this point we have all of the VirtIO drivers installed in Windows. Now we just need to reconfigure our Boot Hard Drive to use the new driver.

In VS console, select Virtual Machines / <Your VM>

Click Settings and make the following changes

NOTE: Be VERY careful on this next step to make sure you are choosing the correct HDD's.
  • Storage:

    On HDD 2 (the HDD we added earlier)
    • Click the right X to delete it from the VM.
    • Click OK


    On HDD 1
    • Change Interface to VirtIO
    • Click OK
    • Click APPLY
  • CD / DVD:
    • Click the right X to eject the ISO
    • Click OK
  • Power On your VM


You now have all the drivers installed to help you get the best performance out of your VM possible. Depending on your Windows installation, there may be several other optimizations within WIndows that can further improve your overall performance, but that is beyond the scope of this tutorial.
Last edited by Trexx on Sun Feb 26, 2017 12:38 pm, edited 3 times in total.
Paul

Model: TS-877-1600 FW: 4.5.3.x
QTS (SSD): [RAID-1] 2 x 1TB WD Blue m.2's
Data (HDD): [RAID-5] 6 x 3TB HGST DeskStar
VMs (SSD): [RAID-1] 2 x1TB SK Hynix Gold
Ext. (HDD): TR-004 [Raid-5] 4 x 4TB HGST Ultastor
RAM: Kingston HyperX Fury 64GB DDR4-2666
UPS: CP AVR1350

Model:TVS-673 32GB & TS-228a Offline[/color]
-----------------------------------------------------------------------------------------------------------------------------------------
2018 Plex NAS Compatibility Guide | QNAP Plex FAQ | Moogle's QNAP Faq
dawsonkm
Getting the hang of things
Posts: 63
Joined: Sun May 01, 2016 9:20 am
Location: New Jersey, USA

Re: [Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post by dawsonkm »

Thanks for the very helpful guide
TS-431X2 QTS 4.4.3.1439 - Static Vol 4 x 8TB Hdd Raid 5 Using 10GBE
TS-431X2 QTS 4.4.3.1439 - Static Vol 4 x 8TB Hdd Raid 5 Using 10GBE
TS-431P2 QTS 4.4.3.1439 - Static Vol 4 x 8TB Hdd Raid 5
TS-431P2 QTS 4.4.3.1439 - Static Vol 4 x 8TB Hdd Raid 5
TVS-1282T QTS 4.5.4.2012- Static Vol 8 x 16TB Hdd Raid 6, Static Vol 4 X 8TB SSD Raid 5 Using 10GBE
dvoisin
Starting out
Posts: 13
Joined: Sat May 05, 2012 10:03 pm

Re: [Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post by dvoisin »

Great instructions. Thank you!
User avatar
Trexx
Ask me anything
Posts: 5393
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota

Re: [Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post by Trexx »

dvoisin wrote:Great instructions. Thank you!
Your welcome.
Paul

Model: TS-877-1600 FW: 4.5.3.x
QTS (SSD): [RAID-1] 2 x 1TB WD Blue m.2's
Data (HDD): [RAID-5] 6 x 3TB HGST DeskStar
VMs (SSD): [RAID-1] 2 x1TB SK Hynix Gold
Ext. (HDD): TR-004 [Raid-5] 4 x 4TB HGST Ultastor
RAM: Kingston HyperX Fury 64GB DDR4-2666
UPS: CP AVR1350

Model:TVS-673 32GB & TS-228a Offline[/color]
-----------------------------------------------------------------------------------------------------------------------------------------
2018 Plex NAS Compatibility Guide | QNAP Plex FAQ | Moogle's QNAP Faq
User avatar
Moogle Stiltzkin
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: [Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post by Moogle Stiltzkin »

trexx is this your steps?
[youtube=]J5pfSnlnQH4[/youtube]


Whats the difference between installing a normal iso used for desktop vs virtualbox vm.

also whats the deal with VirtIo drivers, whats that about :X saw a video but it's a bit outdated
[youtube=]eTD4l90S5Pg[/youtube]


Anyway i followed all the steps it works. nice for temp testing, but i sort of want a permanent OS without worrying about expiry :shock:
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
Godrick
Know my way around
Posts: 119
Joined: Thu Apr 13, 2017 9:31 pm

Re: [Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post by Godrick »

In my case I use viostor, rather than vioscsi. Can't remember why that was originally installed, but it works OK.

I also don't bother with QXL. I am accessing the machine through Remote Desktop and it seems to work with the basic Microsoft display driver.

The Guest Agent doesn't seem to do anything, in my case.
User avatar
Trexx
Ask me anything
Posts: 5393
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota

Re: [Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post by Trexx »

Moogle Stiltzkin wrote:trexx is this your steps?
[youtube=]J5pfSnlnQH4[/youtube]


Whats the difference between installing a normal iso used for desktop vs virtualbox vm.

also whats the deal with VirtIo drivers, whats that about :X saw a video but it's a bit outdated
[youtube=]eTD4l90S5Pg[/youtube]


Anyway i followed all the steps it works. nice for temp testing, but i sort of want a permanent OS without worrying about expiry :shock:
Don't know of the 1st video as I don't speak the language :)

As for iso vs. VM, if you have a full iso for Windows install & a license key, by all means use that. The MS VM's are for browser testing, but are freely downloadable, so for people who don't have a valid license, they are a nice alternative (and work good for showing how to do the drive install).
Paul

Model: TS-877-1600 FW: 4.5.3.x
QTS (SSD): [RAID-1] 2 x 1TB WD Blue m.2's
Data (HDD): [RAID-5] 6 x 3TB HGST DeskStar
VMs (SSD): [RAID-1] 2 x1TB SK Hynix Gold
Ext. (HDD): TR-004 [Raid-5] 4 x 4TB HGST Ultastor
RAM: Kingston HyperX Fury 64GB DDR4-2666
UPS: CP AVR1350

Model:TVS-673 32GB & TS-228a Offline[/color]
-----------------------------------------------------------------------------------------------------------------------------------------
2018 Plex NAS Compatibility Guide | QNAP Plex FAQ | Moogle's QNAP Faq
User avatar
Trexx
Ask me anything
Posts: 5393
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota

Re: [Tutorial] Installing VirtIO drivers for Windows VMs in Virtualization Station

Post by Trexx »

Godrick wrote:In my case I use viostor, rather than vioscsi. Can't remember why that was originally installed, but it works OK.

I also don't bother with QXL. I am accessing the machine through Remote Desktop and it seems to work with the basic Microsoft display driver.

The Guest Agent doesn't seem to do anything, in my case.
Viostor is fine, is is the preferred virtIO storage driver. QXL will probably drop some CPU overhead a little, but it also allows (if your qnap model supports it) for displaying your VM via HD Station, so you can have a nice BIG display on your TV.

Guest agent does't work right now as QNAP is missing a QTS driver needed to have the HOST & VM communicate (I believe it is related to serial port).
Paul

Model: TS-877-1600 FW: 4.5.3.x
QTS (SSD): [RAID-1] 2 x 1TB WD Blue m.2's
Data (HDD): [RAID-5] 6 x 3TB HGST DeskStar
VMs (SSD): [RAID-1] 2 x1TB SK Hynix Gold
Ext. (HDD): TR-004 [Raid-5] 4 x 4TB HGST Ultastor
RAM: Kingston HyperX Fury 64GB DDR4-2666
UPS: CP AVR1350

Model:TVS-673 32GB & TS-228a Offline[/color]
-----------------------------------------------------------------------------------------------------------------------------------------
2018 Plex NAS Compatibility Guide | QNAP Plex FAQ | Moogle's QNAP Faq
Post Reply

Return to “Virtualization Station”