Linux KMS服务器

部署KMS

# 永久关闭SELinux
sed -i 's/^SELINUX=.*/#&/;s/^SELINUXTYPE=.*/#&/;/SELINUX=.*/a SELINUX=disabled' /etc/sysconfig/selinux && /usr/sbin/setenforce 0

# 下载程序
# https://github.com/Wind4/vlmcsd/releases
wget https://github.com/Wind4/vlmcsd/releases/download/svn1111/binaries.tar.gz

# 解压文件
tar zxvf binaries.tar.gz

# 创建快捷方式
# ln -sv binaries/Linux/intel/static/vlmcsd-x64-musl-static /usr/local/KMS
mv binaries/Linux/intel/static/vlmcsd-x64-musl-static /usr/local/KMS

# 赋予权限
chmod u+x /usr/local/KMS

# 执行程序
/usr/local/KMS

# 防火墙设置
# Centos 6.x
iptables -I INPUT -p tcp --dport 1688 -j ACCEPT
service iptables save
service iptables restart

# Centos 7.X
firewall-cmd --zone=public --add-port=1688/tcp --permanent
firewall-cmd --reload
firewall-cmd --query-port=1688/tcp

# 开机启动
echo "/usr/local/KMS -l /var/log/kms.log >/dev/null 2>&1" >> /etc/rc.d/rc.local

服务端测试

.\vlmcs-Windows-x64.exe -v -l 8 jalena.bcsytv.com

Request Parameters
==================

Protocol version                : 6.0
Client is a virtual machine     : No
Licensing status                : 2 (OOB grace)
Remaining time (0 = forever)    : 43200 minutes
Application ID                  : 55c92734-d682-4d71-983e-d6ec3f16059f (Windows)
SKU ID (aka Activation ID)      : 32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee (Windows 10 Enterprise LTSC 2019)
KMS ID (aka KMS counted ID)     : 11b15659-e603-4cf1-9c1f-f0ec01b81888 (Windows 10 2019 (Volume))
Client machine ID               : e8b30c4d-0f50-473d-b1bc-0b701d8c7627
Previous client machine ID      : 00000000-0000-0000-0000-000000000000
Client request timestamp (UTC)  : 2018-12-23 15:45:02
Workstation name                : ceo-laptop.windows.es
N count policy (minimum clients): 25

Connecting to 118.24.148.42:1688 ... successful

Performing RPC bind ...
... NDR64 ... BTFN ... NDR32 ... successful
Sending activation request (KMS V6) 1 of 1

Response from KMS server
========================

Size of KMS Response            : 260 (0x104)
Protocol version                : 6.0
KMS host extended PID           : 06401-00206-554-312819-03-5129-9600.0000-3132018
KMS host Hardware ID            : 3A1C049600B60076
Client machine ID               : e8b30c4d-0f50-473d-b1bc-0b701d8c7627
Client request timestamp (UTC)  : 2018-12-23 15:45:02
KMS host current active clients : 50
Renewal interval policy         : 10080
Activation interval policy      : 120

激活方法

slmgr.vbs -upk
slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr.vbs -skms jalena.bcsytv.com
slmgr.vbs -ato
slmgr.vbs -dlv
  1. FengBlog 2018.02.07 10:28am

    学习了

HTML tag cannot be used in this comment.