Blogger news

Social Media

Monday, April 23, 2012

[SHARE] Cara Install Windows Di VPS CentOS

Disclaimer:
1) I am still researching on how to make the windows's networking work, so if anyone know please tell us so everyone know how to
2) If your vps/server get banned from your provider, this is not my fault
3) If your vps/server only have 1 core, don't try it or it will eat up main server's core (virtual machine always eat core)

Requirement for Win 98:
RAM: At least 64MB
Burst: At least 128MB
Space: At least 1GB
OS: Currently Centos 5 32bit (Will try to research other version for you guys Big Grin)
Virtualization: OpenVZ , KVM, Xen

Requirement for Win XP:
RAM: At least 128MB
Burst: 256MB
Space: At least 3GB
OS: Currently Centos 5 32bit (Will try to research other version for you guys Big Grin)
Virtualization: OpenVZ, KVM, Xen

Let start!






STEP 1

Code:
wget http://pkgs.repoforge.org/icewm/icewm-1.2.30-1.el5.rf.i386.rpm http://pkgs.repoforge.org/qemu/qemu-0.14.1-2.el5.rfx.i386.rpm http://pkgs.repoforge.org/qemu/qemu-img-0.14.1-2.el5.rfx.i386.rpm http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/imlib-1.9.13-1.el5.rf.i386.rpm

STEP 2 Damn long Tongue
Code:
yum install libICE.so.6 libImlib.so.1 libORBit-2.so.0 libSM.so.6 libX11.so.6 libXext.so.6 libXft.so.2 libXinerama.so.1 libXrandr.so.2 libXrender.so.1 libart_lgpl_2.so.2 libatk-1.0.so.0 libbonobo-2.so.0 libbonobo-activation.so.4 libbonoboui-2.so.0 libcairo.so.2 libfontconfig.so.1 libfreetype.so.6 libgconf-2.so.4 libgdk-x11-2.0.so.0 libgdk_pixbuf-2.0.so.0 libgnome-2.so.0 libgnome-desktop-2.so.2 libgnome-keyring.so.0 libgnomecanvas-2.so.0 libgnomeui-2.so.0 libgnomevfs-2.so.0 libgtk-x11-2.0.so.0 libpango-1.0.so.0 libpangocairo-1.0.so.0 libpangoft2-1.0.so.0 libstartup-notification-1.so.0 libungif.so.4 gtk+ libgdk-1.2.so.0 libglib-1.2.so.0 libgmodule-1.2.so.0 libgtk-1.2.so.0 libSDL-1.2.so.0 libX11.so.6 libasound.so.2 libbluetooth.so.2 libesd.so.0 vnc-server xterm

STEP 3
Code:
rpm -i imlib-1.9.13-1.el5.rf.i386.rpm
rpm -i icewm-1.2.30-1.el5.rf.i386.rpm
rpm -i qemu-img-0.14.1-2.el5.rfx.i386.rpm
rpm -i qemu-0.14.1-2.el5.rfx.i386.rpm

STEP 4
Code:
vncserver

STEP 5
Code:
nano /root/.vnc/xstartup

STEP 6
add the following below the xstartup:
Code:
# start icewm-session
exec icewm-session
xterm

STEP 7
Code:
vncserver -kill :1

STEP 8
Code:
vncserver

STEP 9
Upload your own windows image (.iso) or download from the internet (illegal Tongue)

If your windows image is in .rar type, unrar it with the following way:
Code:
1) cd /tmp
2) wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
3) tar -zxvf rarlinux-3.6.0.tar.gz
4) cd rar
5) ./unrar
6) cp rar unrar /bin
7) cd
8) unrar x YOURRARFILENAME.rar

STEP 10
Open your vnc with vnc viewer

STEP 11
You will see a terminal box named "xterm"
Type the following into the terminal:
Quote:qemu-img create -f qcow WIN.img [----]
* Replace the [----] with the following size you want to allocate for your windows:
3000mb = 3G
4000mb = 4G
5000mb = 5G

STEP 12
Type the following into the xterm:
Quote:qemu -localtime -cdrom YOURWINDOWSISONAME.iso -m [----] -boot d WIN.img
* Replace the [----] with the following size you want to allocate for your windows:
64mb = 64
96mb = 96
128mb = 128
Note: 64mb RAM actually used about 90mb RAM (qemu require memory to run)
Installation for windows xp require about 1-2 hours to complete (128mb ram)

STEP 13
Next time run this to boot your OS Big Grin
Quote:qemu -hda WIN.img -boot c -m [----] -localtime -k de -usb
* Replace the [----] with the following size you want to allocate for your windows:
64mb = 64
96mb = 96
128mb = 128
Note: 64mb RAM actually used about 90mb RAM (qemu require memory to run)
Boot up windows xp just require about 3 minute to complete (128mb ram)

That's all, may upload a video in short time to prevent some people don't know how to do it Smile






NETWORK STEP 12
Actually network is really easy...
Note:ONLY work on windows XP
IF you want network, change step 12 to:
Quote:qemu -localtime -cdrom YOURWINDOWSISONAME.iso -m [----] -boot d WIN.img -net nic,vlan=0,model=rtl8139 -net user
* Replace the [----] with the following size you want to allocate for your windows:
64mb = 64
96mb = 96
128mb = 128
Note: 128mb RAM may actually used 200mb RAM! (Network eat up many RAM)

NETWORK STEP 13
Note:ONLY work on windows XP
IF you want network, change step 13 to:
Quote:qemu -hda WIN.img -boot c -m [----] -localtime -k de -usb -net nic,vlan=0,model=rtl8139 -net user
* Replace the [----] with the following size you want to allocate for your windows:
64mb = 64
96mb = 96
128mb = 128
Note: 128mb RAM may actually used 200mb RAM! (Network eat up many RAM)


Cara DIatas Belom Gw TEST . Gw saranin buat make virtualisasi yang make Xen / KVM karna lebih dedicated.


source = freevps.us

0 komentar:

Post a Comment