It was necessary to quickly raise the Windows on the VPS. Hosting chose "cloudy" from Oversana, because they give for testing when registering a small denyuzhku. If the server is kept off and turned on as needed, then it will be enough for a long time. However, the subsequent payment with such a scheme will not afford to hit hard. But the problem is that as a pre-installed Windows system there, of course, no. This article is a small, but complete and working step-by-step guide on installing Windows on a VPS under Debian. Other hosters will probably have something different, but the essence is the same.apt-get update
apt-get install mc nano screen qemu bridge-utils vde2dd if=/dev/zero of=/root/hda.img count=1 bs=100Mqemu -M pc -m 1024 -win2k-hack -localtime -hda /root/hda.img -boot d -net nic,vlan=0,macaddr=00:ce:53:e9:71:cf -net user,vlan=0 -name "test" -vnc :1apt-get remove --purge resolvconfecho 1 > /proc/sys/net/ipv4/ip_forwardnano /etc/sysctl.confiptables -A FORWARD -i eth0 -o eth1 -s 10.1.1.0/24 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -d 10.1.1.0/24 -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.1.1.0/24 -o eth1 -j SNAT --to-source 188.127.231.111
iptables -A INPUT -s 188.127.231.111 -i eth1 -p tcp -m tcp --dport 3389 -j ACCEPT
iptables -A FORWARD -s 188.127.231.111 -i eth1 -p tcp -m tcp --dport 3389 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 3389 -j DNAT --to-destination 10.1.1.2:3389iptables-save > /etc/iptables.confauto eth0 lo eth1 br0
iface lo inet loopback
iface eth0 inet static
address 0.0.0.0
iface eth1 inet static
address 188.127.231.111
netmask 255.255.255.0
gateway 188.127.231.254
iface br0 inet static
address 10.1.1.1
netmask 255.255.255.0
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
post-up /sbin/iptables-restore < /etc/iptables.confecho "" > /root/qemu-auto
chmod 755 /root/qemu-auto
chmod +s /root/qemu-auto#!/bin/bash
sleep 30
vde_tunctl -b
sleep 1
/sbin/ifconfig tap0 0.0.0.0 promisc up
sleep 1
brctl addif br0 tap0
screen -Sdm qemu qemu -M pc -m 1024 -win2k-hack -localtime -cdrom /root/server2003.iso -hda /root/hda.img -boot d -net nic,macaddr=00:ce:53:e9:71:cf -net tap,ifname=tap0 -name "win2k3" -vnc :1crontab -e
@reboot /root/qemu-autowget http ://myserver/server2003.isodd if=/dev/zero of=/root/hda.img count=50 bs=100M./qemu-autoSource: https://habr.com/ru/post/107471/
All Articles