Ubuntu – Is there a way to create a Windows virtual machine on Ubuntu Server


When I look for documentation about how to create a Windows VM on an Ubuntu host, the only articles I can find are articles about Ubuntu Desktop, not Ubuntu Server.

Is there a way to create a Windows VM on Ubuntu Server? Can anyone point me to any articles? Bonus points if I don't need to compile anything or do anything super complex.

Best Answer

  • You should use KVM, because ... because Ubuntu love Kvm

    what is KVM

    KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V).

    Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc.

    The kernel component of KVM is included in mainline Linux, as of 2.6.20.

    Ubuntu uses KVM as the back-end virtualization for non-graphic servers and libvirt as its toolkit/API. Libvirt front ends for managing VMs include virt-manager (GUI).

    Let's go to hack

    This setup guide is to configure a KVM on Ubuntu Server and management of the VMs is done remotely from another machine running Ubuntu Desktop.


    STEP #1: Install lib-virt package.

    sudo apt-get install kvm libvirt-bin  

    STEP #2:allow incoming tcp and udp packet on port 22 (ssh) on server

    sudo ufw allow 22


    STEP #2: Install Virtual Machine Manager (on Ubuntu Desktop machine).

    sudo apt-get install virt-manager  

    STEP #3: Connect to the server: execute virt-manager

    gksudo virt-manager
    • FILE.
    • ADD Connection.
      • Connect to remote computer
      • Method : SSH
      • User : your user server
      • machine name : ip address of the server


    STEP #4: Create the Guest VM image. Virtual Machine Manager provides a GUI to easily create an image. Just right-click on the server and select “New”. You will then be prompted step-by-step on the variables (e.g. # of processors, memory, etc.) needed to be configured for your VM.

    STEP #5: Install the Guest VM OS. Use your regular CD/DVD installer or iso image to install the operating system on the VM.

    More information in ubuntu official server Documentation -> here

    Good Luck and Happy Rocking

    P.S : you souldn't be afraid of command line.....