Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 59112

A quick guide for setting up Windows on the new Kimsufi range

$
0
0

Hi all,

After messing around with my new kimsufi PS19 server I decided to write a short guide on how to set up windows on it for those that want to since the new range doesn't have a windows install option.

The way to install windows is quite simple, you just need to install the proxmox OS, create a VM (KVM) and then install Windows as normal. Finally since the server has an ipv4 limitation you need to setup an internal lan ip and route external ports to it (for control through remote desktop or VNC or whatever you want to use). It's quite straight forward to setup external internet access for the Windows KVM vps you create since you can just follow the instructions here: http://help.ovh.co.uk/Proxmox under the section "create a vm nat".

So to begin with... install VPS Proxmox VE 3.1 (64bits) on your kimsufi control panel. Now login with ssh / putty to your kimsufi server. Once in go to the folder

/var/lib/vz/template/iso/

and either upload or wget your Windows Server (or other OS) template iso into that folder. For mine, I registered for the 180 day Windows Server 2008 license and used wget to download the iso direct from the Microsoft site. You'll also want to download the virtuo drivers ISO which at the time of writing can be found at:

https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-0.1-74.iso

Ok so that's the iso's done.

Now before making the VM you'll want to create the vmbr2 bridge as per the tutorial at OVH. It's quite straightforward if you just edit using vi or nano the file

/etc/network/interfaces

and add to the bottom:

auto vmbr2

iface vmbr2 inet static

address 192.168.0.254

netmask 255.255.255.0

bridge_ports none

bridge_stp off

bridge_fd 0

post-up echo 1 > /proc/sys/net/ipv4/ip_forward

post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE

post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE

Now do this in ssh to bring the bridge up:

ifup vmbr2

This will create a virtual LAN you can use to assign IP's to your Windows (or other KVM OS) system. You can assign any ip within 192.168.0.1 - 192.168.0.253.

Ok so the next thing is to create your Windows KVM.

Login to your proxmox control panel at: https://your.ip:8006, and login with your root user and password. Now go to "create VM". Assign it whatever VPSID you want, now go to the next tab (OS) and select win2k8. Next go to CD/DVD and select the windows ISO image you uploaded earlier (not the virtuo drivers one yet!). Next comes the hard disk, set the BUS to VIRTIO and also set the disk size to whatever size you want it to be, everything else can be left as default. Now go to CPU and set the number of CPU Cores you want the Windows KVM to have access to, sockets should almost always be 1. Be sure to set the Type to "host" as well, so your Windows KVM has full access to your CPU's extensions. Next go to memory and set the amount of ram you want Windows to have (I recommend at least 1.5GB).

This next bit is important, go to the network tab and select your bridge as vmbr2 (the one you created earlier) and set the model to VIRTIO. Finally, confirm and finish. Now once it's made go find it under the node section on the left (under datacenter) and click on it, then start it up (top right). Open up console (requires java, say yes to all the pop ups or try different internet browser if it doesn't load properly).

Now to get the best drivers (VIRTIO) working you'll need to switch over the ISO your using mid installation (it won't find your HDD until you install the virtuo drivers during the Windows install). You can switch the ISO by going to the Hardware tab under your KVM in proxmox and selecting CD/DVD Drive then going back to console and refreshing on the select HDD screen of the windows install. Now to install the drivers you'll need to go to load drivers (in the console / install window) and select your ISO / Virtual Disc, open it up and choose Windows 7 / amd64 and it should find 3 drivers for you. select and install them / click next. Now switch back to your Win2k8 ISO or whatever windows version your installing, and continue the install as normal.

Once the install is done, you just need to edit your network settings to assign your KVM a private ip. This is done by going to your desktop in console (once installed and rebooted) and finding > networking and sharing center > local area connection > properties > click TCP IPv4 > click properties. Now assign your Windows KVM a private ip selecting use the following IP address and inputting (for example - use whatever ip you want in the range discussed earlier):

ip : 192.168.0.1

subnet mask 255.255.255.0

gateway : 192.168.0.254 (ip vmbr2 on the host)

DNS: 8.8.8.8 and 8.8.4.4 (or whatever DNS you want to use, this is googles)

Click ok > ok > then close. You server should now have outside connectivity to the internet!!!

Ok so now you need to enable remote desktop in your firewall (should be easy enough to do if you know the OS well enough) and also set remote desktop to being on, you can do the latter part by going to Control Panel > system and security > system > remote settings > and allow remote desktop connections (more or less secure version) whichever you prefer.

Right, finally you'll want access to your Windows KVM desktop via remote desktop (since console is slow and not very good). To do this just login to your kimsufi server by SSH and enter the following as root:

iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 3389 -j DNAT --to 192.168.0.1:3389

(ASSUMING your using the ip 192.168.0.1, if not changed the ip above to yours).

You should now have access to the Windows KVM from your pc over the default Remote desktop port of 3389 using the internet ip of your kimsufi server (the one OVH gave you not the 192.168 ip).

I'm not sure if I've missed anything but let me know if I have and I will update this.

Enjoy!


Viewing all articles
Browse latest Browse all 59112

Trending Articles