installing_an_open_source_kms_server
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
installing_an_open_source_kms_server [2024/12/25 10:32] – created mike | installing_an_open_source_kms_server [2024/12/27 20:50] (current) – mike | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing an Open Source KMS Server (Vlmcsd) on Linux ====== | ====== Installing an Open Source KMS Server (Vlmcsd) on Linux ====== | ||
---- | ---- | ||
- | **Prerequisite: | + | **Prerequisite: |
+ | |||
+ | To run the KMS server in a docker container, see the next section. | ||
+ | |||
+ | === Running the KMS server as a native process on Linux === | ||
+ | |||
+ | Install the '' | ||
+ | Clone and install the **vlmcsd** package: | ||
+ | git clone https:// | ||
+ | cd vlmcsd | ||
+ | make | ||
+ | |||
+ | Change to the bin directory: | ||
+ | cd bin | ||
+ | |||
+ | Run the KMS server: | ||
+ | ./vlmcsd | ||
+ | |||
+ | You will see the following message: | ||
+ | Connecting to 127.0.0.1: | ||
+ | Sending activation request (KMS V6) 1 of 1 -> 55041-00206-559-475403-03-1076-6002.0000-1482020 (3A1C049600B60076) | ||
+ | |||
+ | This indicates the KMS server has been successfully compiled and run. | ||
+ | |||
+ | If running a firewall on the server, ensure TCP/1688 is opened. | ||
+ | |||
+ | To run vlmcsd automatically, | ||
+ | cp vlmcs /usr/bin | ||
+ | touch / | ||
+ | chmod 664 / | ||
+ | nano / | ||
+ | |||
+ | Add the following service description to the new file: | ||
+ | [Unit] | ||
+ | Description=MSFT KMS Server Emulator | ||
+ | After=network.target | ||
+ | After=network-online.target | ||
+ | Wants=network-online.target | ||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart=/ | ||
+ | RemainAfterExit=yes | ||
+ | LimitNOFILE=65536 | ||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | Then run the KMS service and add it to startup: | ||
+ | systemctl daemon-reload | ||
+ | systemctl start kms-script.service | ||
+ | systemctl status kms-script.service | ||
+ | systemctl enable kms-script.service | ||
+ | |||
+ | === Running the KMS server in a docker container on Linux === | ||
+ | Ensure docker is installed and running on the server | ||
+ | |||
+ | Execute the following commands: | ||
+ | sudo docker pull teddysun/ | ||
+ | sudo docker run -d -p 1688:1688 --restart=always --name kms_server teddysun/ | ||
+ | |||
+ | Executing via a docker compose file: | ||
+ | services: | ||
+ | kms: | ||
+ | image: teddysun/ | ||
+ | container_name: | ||
+ | ports: | ||
+ | - 1688:1688 | ||
+ | restart: always | ||
+ | |||
+ | |||
+ | |||
+ | === Activating Windows via the KMS Server === | ||
+ | To activate Windows manually, set the GVLK for your Windows version, the IP address of your KMS activation host, and run the activation command. The following commands are used (for example, for Windows Server 2022 Standard): | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | After you run the last command, you will see the message: Product activated successfully. This means that your Windows copy has been successfully activated. | ||
+ | |||
+ | You can check the Windows activation status using the command: | ||
+ | |||
+ | '' | ||
+ |
installing_an_open_source_kms_server.1735151534.txt.gz · Last modified: 2024/12/25 10:32 by mike