How to Install & Run Windows 2016 Server (Desktop Experience) under KVM on Ubuntu. With High Performance networking, hard drive, and display drivers. Then Configure for Remote Desktop Thin Clients with USB, Sound, and Microphone Forwarding.

Example bridge config.

sudo nano -w /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).

network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: no
  bridges:
    br0:
      addresses:
        - 10.0.16.25/24
      gateway4: 10.0.16.1
      nameservers:
          search: [mydomain, otherdomain]
          addresses: [10.0.16.1, 1.1.1.1]
      interfaces:
        - eno1
  • Install KVM
sudo apt install virt-manager 

Install VM

  1. Download Windows
  2. Create QEMU/KVM .
    1. Be sure to Disk bus under Disk  hard drive  type to VirtIO.
    2. Be sure to change NIC device model to “virtio”
      1. Be sure to select the bridge you set up.
    3.  Confirm There is a “Display Spice” and “Video QXL”
  3. Attach both Windows 2016 ISO and the VIRTIO driver ISO downloaded from here:
    fedorapeople.org/groups/…
  4. Install Windows server, and choose custom to choose the Win2k16 version. Select the CD-rom drive the was attached and navigate to the prospective folders.
    1. Balloon
    2. NetKVM
    3. vioserial
    4. Viostor
  5. Install networking driver from iso. Install virtio serial, and virtio balloon driver. If not done in the above step by simple going to device manager, and right clicking to choose update driver. Choose browse my computer and point it to the iso. be sure to click include sub directories.
  6. Install Display driver QXL by going to Device mananger Display update driver
  7. Install QEMU “guest-agent” from iso
  8. Install spice-guest-tools from:
    www.spice-space.org/down…

Configure VM for remote desktop

  1. Change serial, and activate Windows 2016
  2. Enable Windows Audio service and set to automatic.
  3. Rename Computer.
  4. Set static IP.
  5. Allow remote desktop through firewall.
  6. Connect to existing Domain for User Authentication, or set up a new one:
    social.technet.microsoft…
  7. Install Remote Desktop Services
    community.spiceworks.com…
  8. Install Remote Desktop Licenses
    social.technet.microsoft…
  9. Add Users.

Configure thin client

  1. Install FreeRDP nightly
    ci.freerdp.com/job/freer…
deb http://pub.freerdp.com/repositories/deb/DIST/ freerdp-nightly main
wget -O - http://pub.freerdp.com/repositories/ADD6BF6D97CE5D8D.asc | sudo apt-key add -

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.