This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vagrant With Windows, WSL2 and Hyper-V | |
To say getting this configuration working is a pain in the ass is an understatement. However, once it is working correctly you gain access to tools like Ansible and full performance VMs inside Windows. This guide covers the steps I followed to get things working correctly with this configuration. It is possible that something may not work for you however I have been able to reproduce this success on two Windows 11 Pro machines and expect this to work for others. | |
This guide assumes basic knowledge of Windows and Linux systems and how Vagrant operates. Due to the difficulty of setting this up you may need to do some additional troubleshooting | |
## Requirements | |
* Windows Professional - Hyper-V can only be installed on Windows Professional systems or higher | |
* WSL2 - Due to the massive differences between WSL1 and WSL2 this guide will only cover support for WSL2 | |
* CPU Virtualization - While the vast majority of modern CPUs support virtualization you may need to enable it in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ system ? builtins.currentSystem }: | |
let | |
pkgs = import <nixpkgs> { inherit system; }; | |
callPackage = pkgs.lib.callPackageWith (pkgs // self); | |
self = with pkgs; { | |
etlegacy-x86 = callPackage_i686 ./etlegacy-x86.nix { usePrecompiledModLibs = true; }; | |
etlegacy-x86_64 = callPackage ./etlegacy-x86_64.nix { usePrecompiledModLibs = true; }; | |
}; | |
in self.etlegacy-x86 # or self.etlegacy-x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credits: | |
# | |
# - http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/ | |
# - https://github.com/jfrazelle/dockerfiles/blob/master/spotify/Dockerfile | |
# | |
# Prepare (example): | |
# | |
# $ mkdir AnkiDocker | |
# $ cd AnkiDocker | |
# $ # Save this file to Dockerfile and adapt it to your needs. |