1 | Creating the Windows 10 VM for building the MSYS environment
|
---|
2 | ============================================================
|
---|
3 |
|
---|
4 | - Create the VM
|
---|
5 |
|
---|
6 | The RAM size should be 8GB.
|
---|
7 |
|
---|
8 | Add a "Channel spice" device for the display resizing to work
|
---|
9 |
|
---|
10 | - Install Windows 10 Pro (1809)
|
---|
11 |
|
---|
12 | - Disable and empty Recycle Bin
|
---|
13 |
|
---|
14 | - Setup virtio devices:
|
---|
15 |
|
---|
16 | - Install the Spice guest tools: https://www.spice-space.org/download/windows/spice-guest-tools/spice-guest-tools-0.1.141.exe
|
---|
17 |
|
---|
18 | - cmd.exe as Administrator:
|
---|
19 |
|
---|
20 | bcdedit /set {current} safeboot minimal
|
---|
21 |
|
---|
22 | - Shut down
|
---|
23 |
|
---|
24 | - Add a new VirtIO Disk
|
---|
25 |
|
---|
26 | - Boot
|
---|
27 |
|
---|
28 | - cmd.exe as Administrator:
|
---|
29 |
|
---|
30 | bcdedit /deletevalue {current} safeboot
|
---|
31 |
|
---|
32 | - Shut down
|
---|
33 |
|
---|
34 | - Remove the VirtIO Disk and change the boot disk to VirtIO
|
---|
35 |
|
---|
36 | - Change the network card also to VirtIO
|
---|
37 |
|
---|
38 | - Boot
|
---|
39 |
|
---|
40 | - Setup date and time format, etc.
|
---|
41 |
|
---|
42 | - Configure network address to 192.168.122.21
|
---|
43 |
|
---|
44 | - Install updates
|
---|
45 |
|
---|
46 | - Map home drive to H: to \\192.168.122.1\<username>
|
---|
47 |
|
---|
48 | - Shrink disk image (https://withdave.com/2018/07/compacting-windows-10-vms-and-shrinking-their-vdi-vmdk-disk-images-on-virtualbox-host/)
|
---|
49 |
|
---|
50 | - Make a snapshot of the current state
|
---|
51 |
|
---|
52 |
|
---|
53 |
|
---|
54 | - Enable Hyper-V
|
---|
55 |
|
---|
56 | Powershell: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
|
---|
57 |
|
---|
58 | - Reboot
|
---|
59 |
|
---|
60 | - Install Docker for Windows
|
---|
61 |
|
---|
62 | - Switch to Windows containers
|
---|
63 |
|
---|
64 | - To configure Windows 10 Docker for remote access:
|
---|
65 |
|
---|
66 | - Docker/Settings/General: Expose daemon on tcp://localhost:2375 without TLS
|
---|
67 | - Docker/Settings/Daemon: Advanced, add:
|
---|
68 | "hosts": [
|
---|
69 | "tcp://0.0.0.0:2376",
|
---|
70 | "tcp://0.0.0.0:2375",
|
---|
71 | "npipe://"
|
---|
72 | ]
|
---|
73 |
|
---|
74 | - Enable firewall rule to connect to port 2375
|
---|
75 |
|
---|
76 | Windows Deferend Firewall/Advanced Settings: Inbound Rules/New ...
|
---|
77 |
|
---|
78 | - Then connect from Linux like: docker -H tcp://192.168.122.21:2375 ...
|
---|
79 |
|
---|
80 | - Make a snapshot of the current state
|
---|