Windows virtual machineΒΆ

This section describes the method for setting up the windows virtual machine for development.

  1. Download test virtual machine from Microsoft, or install licensed OS

  2. Set device to 16 GiB memory and 2 CPUs

  3. Log in; increase display size

  4. Run windows update and reboot

  5. Install windows bash

    1. Settings -> Update & Security -> For developers -> Developer Mode

    2. Control Panel -> Programs -> Turn Windows Features On and Off -> Windows Subsystem for Linux

    3. Reboot

    4. Visit https://aka.ms/wslstore to install

    5. Edit /etc/passwd, change home directory to /mnt/c/Users/IEUser or whatever

    6. Edit /etc/wsl.conf and add the following:

      [automount]
      options = case=off
      

      See https://blogs.msdn.microsoft.com/commandline/2018/02/28/per-directory-case-sensitivity-and-wsl

    7. Update packages with sudo apt-get update && sudo apt-get dist-upgrade

  6. Connect shared folder (VBox shared folder method)

    1. In virtual box settings of host computer, export folder

      1. Settings -> Shared Folders -> Add Folder icon
      2. Folder Path: /home/gcs6/shared/vb-share
      3. Folder Name: vb-share
      4. Make Permanent: Yes
    2. On wsl command prompt, one could do this:

      sudo mount -t drvfs x: /mnt/x
      
    3. But there is a permission denied error

      1. https://github.com/Microsoft/WSL/issues/2988
    4. On windows command prompt, one could do this:

      net use x: \\vboxsvr\vb-share
      
    5. However, existing files do not have read permission

      1. https://github.com/Microsoft/WSL/issues/2896
  7. Connect shared folder (Samba method)

    1. On linux host, add vb-share to samba exports

    2. On windows:

      net use x: \\sherbert\vb-share /user:gcs6
      
  8. When installing visual studio, you need to choose “custom” install, because “recommended” install does not include C++.

  9. Several of the “exe” programs cannot be run from the shared drive. You need to copy them onto the local drive (Desktop) before running.

  10. Enable .net 3.5.1 in control panel (needed by WiX)

    1. Control Panel -> Programs -> Turn Windows Features On and Off -> .NET Framework 3.5 (includes...)