| Installing windows OS [message #99398] |
Fri, 13 July 2012 10:39  |
 |
Rioter  Messages: 25 Registered: April 2012 |
Member |
|
|
| This tutorial helpful?[ 0 votes ] |
| 1. | Yes | 0 / 0% | | 2. | NO!! | 0 / 0% |
Hi all,
Before you all start to install windows, please ensure your dedicated server has VT enabled.
For those who do not know how to check: http://www.cyberciti.biz/faq/linux-xen-vmware-kvm-intel-vt-a md-v-support/
If your dedi supported, process to following instructions.
This is what i do for my windows vps.
#service libvirtd restart
#chkconfig libvirtd on
#wget http://packages.sw.be/ntfsprogs/ntfsprogs-1.13.1-1.el5.rf.x8 6_64.rpm
#rpm -ivh ntfsprogs*
#reboot
after reboot
follow this instructions:
http://wiki.lxcenter.org/HyperVM-Windows
after that
open your windows config: windows-eg.vm.cfg
modify the content, eg my windows config:
____________________________________________________________ ___
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
name = 'windowxp.vm'
kernel = '/usr/lib/xen/boot/hvmloader'
builder='hvm'
boot='d'
memory = 2048
vif = [ 'type=ioemu, vifname=vifwind11, mac=aa:00:f5:35:28:01, bridge=virbr0 ' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
vnc=1
sdl=0
vcpus = 4
vnclisten='0.0.0.0'
vncpasswd='windowxp'
disk = [ 'file:/home/wincd.img,hdc:cdrom,r', 'phy:/dev/vg/windowxp_rootimg,ioemu:hda,w']
acpi=1
vncunused=0
vncdisplay=3
usbdevice='tablet'
on_reboot = 'restart'
on_crash = 'restart'
____________________________________________________________ ___
the important part is bridge=virbr0, this is your windows network.
usbdevice='tablet' will make vnc mouse follow your own mouse.
chattr +i your windows config, e.g:
#chattr +i /home/xen/windowxp.vm/windowxp.vm.cfg
this will stop hypervm from modifying your config file.
Finally Reboot
#reboot
after all that you should be able to access VNC.
Other info:
[root@meme ~]# yum list installed | grep libvirt
libvirt.x86_64 0.8.2-25.el5 installed
libvirt-python.x86_64 0.8.2-25.el5 installed
[root@meme ~]# yum list installed | grep xen
kernel-xen.x86_64 2.6.18-308.4.1.el5 installed
kernel-xen.x86_64 2.6.18-308.8.1.el5 installed
xen.x86_64 3.0.3-135.el5_8.2 installed
xen-libs.x86_64 3.0.3-135.el5_8.2 installed
[root@meme ~]# yum list installed | grep vnc
gtk-vnc.x86_64 0.3.8-3.el5 installed
gtk-vnc-python.x86_64 0.3.8-3.el5 installed
when use have access VNC and install windows.
open cmd and enter:
#ipconfig /all
you will see your ip for example: 192.168.122.67, this is libvirtd private network. to use your own public ip, you have to use iptables NAT 1:1.
Hope this helps. Good Luck installing
Regards,
Rioter
[Updated on: Fri, 13 July 2012 10:41] Report message to a moderator
|
|
|
|
|