Now I have found a way to make it work without getting Windows 7 downloaded first. And I have updated the procedure above and inserted the updated/edited version below.
Updated steps to setup a Win 10 HVM
How to setup a Win 10 HVM according to this page: https://github.com/elliotkillick/qvm-create-windows-qube ?
See below for my detailed description on how to use this method:
-
Open your Firefox browser in a VM - for example in the untrusted VM.
-
To save the install.sh script file: Open this page: https://raw.githubusercontent.com/elliotkillick/qvm-create-windows-qube/master/install.sh and save it as install.sh
-
To copy the file to dom0: Open the dom0 terminal and execute this command: qvm-run -p --filter-escape-chars --no-color-output untrusted “cat ‘/home/user/Downloads/install.sh’” > install.sh
-
To check that the file is copied to dom0: Execute this command in the dom0 terminal: ls
-
To get Qubes OS to execute the script in the “install.sh” file: Execute this command in the dom0 terminal: chmod +x install.sh && ./install.sh
If the installation script ends up in a loop where the pc is trying to download Windows 7 but can’t, then close the dom0 terminal, open a new one and follow these steps (they are the same as the 4 last steps in the script inside the “install.sh” file):
5a) Execute this command in the dom0 terminal: qvm-prefs windows-mgmt netvm
5b) To download qubes-windows-tools (for easy copy and moving fiiles to and from the Win10 HVM, etc.), execute this command in the dom0 terminal: sudo qubes-dom0-update -y qubes-windows-tools
5c) To copy “qvm-create-windows-qube.sh” to dom0, execute this command in the dom0 terminal: qvm-run -p --filter-escape-chars --no-color-output windows-mgmt "cat ‘/home/user//Documents/qvm-create-windows-qube/qvm-create-windows-qube.sh’ " > qvm-create-windows-qube.sh
5d) To make the file able to be executed, execute this command in the dom0 terminal: chmod +x qvm-create-windows-qube.sh
- Download the version of Windows 10 you want to use to the “windows-mgmt” VM.
You can execute the script in the file "download-windows.sh , but it might not work - I couldn’t make it work. In that case, do the following:
6a) Open the “Qube Settings” for the domain “windows-mgmt”. Under “Network”, choose the “default” one and click on “Apply”.
6b) Open the domains Firefox browser and search the web for “how to download windows 10”.
One of the first results is a link to a Microsoft webpage from which it is possible to download the file in the local language.
The file gets downloaded to the download folder in the domain.
6c) Open the “Qube Settings” for the domain “windows-mgmt”. Under “Network”, choose “(none)” and click on “Apply”.
6d) Move or copy the downloaded Win10 ISO-file to this destination: /Documents/qvm-create-windows-qube/windows-media/isos
6e) Open the terminal in dom0 and execute the following script (remember to write the name of the ISO-file you downloaded in step 6b instead of “filename”): ./qvm-create-windows-qube.sh -n sys-whonix -oyw -i filename.iso -a win10x64-pro.xml Win10
Info: “Win10” will be the name of the domain.
Do NOT close the terminal before it says the installation was complete (successfully) ! Let the terminal do the job, it restarts the qube and so on when it is necessary.
-
When you get into Windows there might appear three message boxes. One saying that the pc has to be restarted. A second one saying that drive D has to be formatted. And the third one saying something about a private drive. Just click on “Yes” or “OK”. Then Windows will close immediately and restart. Afterwards the terminal should write that the installation was completed successfully.
When Windows start up again you probably do not have a functioning internet connection.
-
To get on the internet: Shut down the Win10 HVM.
-
To view the Windows GUI-window again the next time you start the Win10 HVM, execute the following command in the dom0 terminal: qvm-features <windows_qube> gui 1
Write the name of the domain (for example “Win10”), instead of <windows_qube> .
-
Start the Win10 HVM again by going into the “Qubes Menu” -> “Win10” -> either click on “Start” or on a application shortcut to start the Win10 HVM.
-
To change the size of the GUI-window, change the screen resolution from within Windows so that it best fits your screen.
Info: It isn’t possible to get the GUI-window to be as big as the screen, but only almost as big.
In case you don’t know how to change the display resolution in Windows, here is a way to do it: Right-click on the desktop -> “Display Settings”, and in the window that appears, change the display resolution under “Scale and layout” -> “Display resolution”.
Now your Win10 HVM should act almost as a normal Win 10 installation.
søndag den 8. november 2020 kl. 16.46.00 UTC+1 skrev M: