# Installation via QEMU

Consider how to install Windows on any dedicated server with any processor that supports KVM.

First we need to start the server in Resque mode. Login.

Go to `/tmp` directory:

```
cd /tmp
```

Download vKVM software:

<pre><code><strong>wget https://mirror.spacecore.info/software/vkvm-latest.tar.gz &#x26;&#x26; tar xvf vkvm-latest.tar.gz
</strong></code></pre>

<figure><img src="/files/KuhkQZ9m9Oepdm3v13bc" alt="" width="375"><figcaption></figcaption></figure>

Download the OS image we need:

```
wget https://mirror.spacecore.info/os/windows/Windows_10_x64_1909.iso
```

{% hint style="info" %}
A full list of operating systems can be found on our mirror: <https://mirror.spacecore.info/os/>
{% endhint %}

Next, run the software:

```
/tmp/qemu-system-x86_64 -net nic -net user,hostfwd=tcp::3389-:3389 -m 10000M -localtime -enable-kvm -cpu core2duo,+nx -smp 2 -usbdevice tablet -k en-us -cdrom Windows_10_x64_1909.iso -hda /dev/nvme0n1 -vnc :1 -boot d
```

{% hint style="warning" %}
After the argument  «-cdrom» you need to specify the name of your OS image. And after «-hda» - the name of the disk on which you will install.
{% endhint %}

{% hint style="warning" %}
If you encounter a gender error: «cannot set up guest memory 'pc.ram': Cannot allocate memory»

Its solution will be to change the parameter «-m 10000M» to MegaBaite value, which is available in your system.
{% endhint %}

{% hint style="success" %}
If the command succeeds, there will be no response and the KVM process will start in the active window.
{% endhint %}

<figure><img src="/files/ZXJ8l1jleEAukqWNikHT" alt=""><figcaption></figcaption></figure>

Next, we install and run [UltraVNC](https://uvnc.com/downloads/ultravnc.html). In it we enter in the input field the address of our server + port «1» in the format: «IP:1».

<figure><img src="/files/CTzDS3nVrIvqGvlFwbkl" alt=""><figcaption></figcaption></figure>

Connect to the server and start the process of installing **Windows**:

<figure><img src="/files/UIgaIMyNRBEz8Jn9x0Ne" alt=""><figcaption></figcaption></figure>

Next we create partitions and install the OS on the main drive with sufficient memory.

<figure><img src="/files/IZ96rbxVbAyJOaggdcYd" alt=""><figcaption></figcaption></figure>

After the primary installation is complete, proceed to user configuration. The first step is to specify a name.

<figure><img src="/files/7jtQiBXfKwWPfmAt9njl" alt=""><figcaption></figcaption></figure>

And then the user password.

{% hint style="warning" %}
The password must be specified, otherwise you will not have access to the **RDP**.
{% endhint %}

<figure><img src="/files/Hd4WEoLyJ36BMh958jgY" alt=""><figcaption></figcaption></figure>

Once the installation is fully completed, we need to go to the Windows Firewall settings and disable it completely to avoid connection blockages.

<figure><img src="/files/zwtZJqFhdsLJc8GlQahk" alt=""><figcaption></figcaption></figure>

Next, you need to enable Windows Remote Access (RDP) in the appropriate settings.

<figure><img src="/files/82hUqzcGRMEecTIPkkVg" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
And also do not forget to remove the tick from the «‎Allow connections only...».
{% endhint %}

Saving the changes. Then turn off our Windows.

{% hint style="info" %}
When the OS shuts down, the vKVM process stops on our host server
{% endhint %}

Now we load our dedicated server from the main disk on which Windows has been installed and connect using the created account.

<figure><img src="/files/b0Ft5t7uq8ncljWbxmkV" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://spacecore.gitbook.io/wiki/en/windows/installing-via-qemu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
