شرح haiperVM لإعداد سيرفر في بي اس vps

رووح القلوب

عضو جديد
20 مارس 2009
246
1
0
بسم الله الرحمن الرحيم

شرح haiperVM لإعداد سيرفر في بي اس vps



الشرح راح يكون باذن الله بالصور قدر الإمكان لتسهل العملية

طبعاً بدايتاً راح اترككم مع موقع اللوحة الرسمي وروابط تجربتها Demo

الموقع الرسمي اضغط هنا

لتجربة اللوحة اضغط هنا

نأتي الان لتنصيب اللوحة .. متطلبات تنصيبها :

1 - تملك سيرفر بدون لوحة تحكم لعدم التعارض
2 - التأكد من فتح البورتات 8888 و 8887 في الفاير واال
3 - تعطيل selinux بالطريقة التالية :

نفذ الامر التالي بالشل



PHP:
nano /etc/sysconfig/selinux

نضغط Ctrl +w

و ابحث عن selinux

واجعلها بهذا الشكل



PHP:
selinux=disabled

ومن ثم ctrl + x

ثم ننقر y

نعطيه انتر

بكذا تم تهيأت السيرفر لتركيب اللوحة ... الان نأتي لعملية التركيب ... نفذ التالي



PHP:
setenforce 0
wget http://download.lxlabs.com/download/hypervm/production/hypervm-install-master.sh 
sh ./hypervm-install-master.sh --virtualization-type=openvz

بعد الانتهاء من التثبيت نفذ التالي



PHP:
nano /etc/grub.conf

بالضغط على Ctrl +w نبحث عن default=1 ونجلعها default=0

ثم ctrl + x

ثم ننقر y

نعطيه انتر

الان نعمل ريستارت للسيرفر بالامر



PHP:
reboot

وننتظر حتى يرجع السيرفر اون لاين

ثم نتجه على الرابط التالي

http://YourServerIP:8888

ونسجل دخول اليوزر راح يكون admin والباسوورد راح يكون admin أيضاً

بكذا تم تركيب اللوحة وألف مبروك

ملاحظة : في نقطة مهمة كان لازم اذكرها هو بعد الدخول للوحة التحكم ممكن يطلع لك تنبيه... التنبيه : يذكرك بتغغير رقم البورت للشل الخاص بالسيرفر الاساسي
وبالضغط على التنبيه سوف تنتقل الى صفحة يمكنك من خلالها تغيير البورت.


بالدرس القادم قريباً ,,, شرح تهيأت السيرفر من اللوحة بالصور قبل عمل أول في بي اس

ان أصبت فمن الله سبحانه وتعالى وإن أخطأت فمن الشيطان الرجيم


💕


 

رووح القلوب

عضو جديد
20 مارس 2009
246
1
0
تهيئة الخادم من اللوحة قبل استخراج او انتاج الفي بي اس


بسم الله الرحمن الرحيم

http://www.support-gate.com/vb/t56.html




تهيئة الخادم من اللوحة قبل استخراج او انتاج الفي بي اس

بعد الدخول للوحة التحكم ( أيضاً شفناه بالدرس الاول )

نشوف عندنا اعلى الجهه اليسرى 4 قوائم

36843673.gif


1 - الرئيسية
2 - الخوادم الافتراضية ( الفي بي اس )
3 - العملاء
4 - السيرفرات ( الخوادم الأساسية أو ماتمسى بالنود )


ندخل الان على الرئيسية لنعد المفروض اعداده قبل انتاج الخوادم الافتراضيه

55374593.gif


نشوف عندنا ايقونة Servers اي الخادم الاساسي ( النود ) بالضغط عليها يمكن مشاهدة الخادم

55708235.gif


نرى أن اسم الخادم الأساسي هو localhost بالضغط عليه راح يفتح لنا لوحة مشابهه للوحة whm وتوضح بها معلومات السيرفر استهلاك الرام والاقراص .... الخ
في هذي الدورة راح اركز فقط على الاعداد وانتاج الخوادم الافتراضيه ... واذا لقيت وقت لاحقاً راح اقدم اللي اقدر عليه من حيث باقي الخدمات والايقونات
smile.gif


نرجع للموضوع ... للصورة السابقة

10629887.gif


نضغط الان على رقم 2 Ip Pools ترجمتها براسي ترجمة سريعة ... اللي هي مجموعات الاي بي ... طبعاً لو تحاول تنتج في بي اس بدون المرور بهذه النقطه راح يخرج لك خطأ مفادة يجب ضبط Ip Pools لذلك تعتبر هي اساسيات انتاج الفي بي اس .. نضغط عليها ونتابع

47186065.gif


مثل ماتشوفون انا عندي مجموعتين اي بي host-gate و host-gate 2 ووحده جانبها ضوء رصاصي ووحده بجانبها ضوء اخضر
الرصاصي = استنفذت جميع الاي بيات الموجودة داخل هذه المجموعة
الأخضر = لم تستنفذ جميع الاي بيات الموجودة داخل هذه الممجموعة

الان نجي نضيف مجموعتنا الجديدة نضغط على Add Ip Pool اللي محدده بالمربع ونتابع

60870470.gif


هالمره الشرح على الصوره ولكن احب اوضح شغلة مهمه وهي :

لو تلاحظون بالمثال قلت نحط رقم الاي بي الاول 202.1.1.200 ورقم الاي بي الثاني 202.1.1.210 اذا المجموعة هذي راح تشمل الاي بيات التالية

202.1.1.200
202.1.1.201
202.1.1.202
202.1.1.203
.
.
.
.
.
202.1.1.210

اتمنى وضحت النقطة

بكذا اخواني تم ضبط السيرفر والسيرفر مستعد الان لعمل الفي بي اس

الدرس القادم هو عن انتاج اول في بي اس




 

رووح القلوب

عضو جديد
20 مارس 2009
246
1
0
شرح طريقة انتاج سيرفر في بي اس vps



بسم الله الرحمن الرحيم





شرح انتاج الفي بي اس

من لوحة التحكم تحديدا من القوائم الرئيسية

15199448.gif


نختار رقم 2 VMs نضغط عليها

بيطلع معنا التالي .. ولكن بدون الفي بي اسات الثلاث الموجودة تحت أو حسب الموجود عندك اذا كان قمت بانتاج في بي اس من قبل على هذه اللوحة ... تابع الصورة

61018145.gif


نضغط على Add Openvz ومن ثم تابع الصورة

13116968.gif

59089995.gif


الشرح اتوقع واضح على الصور ....

تابع الصفحة اللي بتطلع بعد الضغط على Add

9.gif

64811192.gif


وبعد الضغط على Add يتم تكوين الفي بي اس .... انتظر قليلاً وسوف تصلك رسالة بريدية الى البريد المدخل في السابق بها الرقم السري واليوزر نيم الخاص بالفي بي اس واللي يسمح له دخول لوحة hypervm من خلالها يمكن يسوي ريستارت للسيرفر وعمليات اخرى

للدخول الى اللوحة عبر الرابط التالي

https://YourVPSIp:8887

username : yourUsername.vm

password : yourPassword

الكثير يحب الـ whm/cpanel على سيرفره والعملاء الاغلب طلبهم هذي اللوحة تحديداً

هذا راح يكون الدرس الرابع ... تركيب الـ whm/cpanel على الفي بي اس الخارج من اللوحة Hypervm





 

رووح القلوب

عضو جديد
20 مارس 2009
246
1
0
شرح شراء cpanel/whm وتنصيبها علي السيرفر vps

بسم الله الرحمن الرحيم​


الان للاتصال بالشل طبعاً نحتاج الى​

اي بي الخادم الافتراضي <=-=-=- نعرفه اخترناه من اللوحة
البورت <=-=-=-=- 22
اليوزر <=-=-=-=- root
الباسوورد <=-=-=-=- نفسه الباسوورد المدخل عند انتاج الفي بي اس في الدرس الثالث,​

بكذا عندنا اتصال شل على الفي بي اس​

الحين لتركيب السي بانل whm/cpanel الخاصة بالفي بي اس لازم ترخيص لرقم الاي بي الرئيسي للفي بي اس​

مثلا رقم الاي بي 203.543.23.13​

نروح على الموقع التالي​


ونختار VPS cPanel license - cPanel License for VPS - $15.00/month

طبعاً ملاحظين انها ب 15 دولار شهرياً ,, ولكن ان طلبت اكثر من واحد يتم التخفيض تصل الى 9 و 6 دولار للترخيص !!​

راح يتطلب منك الموقع انك تسجل وبعدين تسجل الاي بي للفي بي اس​

وبعدين تسجل الهوست نيم للفي بي اس​

وتدفع عن طريق الفيزا والتفعيل فوري​

هناك مواقع كثيرة اخرى تقدم تراخيص cpanel للفي بي اس ولكن انا بصراحة افضل هذا لأنه اسرع​

بعد ماتشتري ترخيصك الشهري للاي بي ... نتأكد من عمل الترخيص على الرابط التالي ضع رقم الاي بي الخاص بالفي بي اس​

http://verify.cpanel.net/ بعد ان تضع رقم الاي بي اضغط على verify وشوف حالة الترخيص هل هو مفعل او لا​

الحين عندنا كل شي ولله الحمد ترخيص للاي بي وشابكين شل على الفي بي اس​

نجي لطريقة تركيب السي بانل اللي تقريباً الكل يعرفها من الشل نفذ التالي​



PHP:
cd /home
PHP:
wget http://layer1.cpanel.net/latest 
sh latest

علماً بأن مواصفات الرام للفي بي اس يجب ان تكون من 256 ميجا واكثر
مدة التثبيت من 30 الى 60 دقيقة <=-=-=- يبغالها صبر​

هكذا انتهت الدورة السريعة واللي اتمنى من الله عز وجل ان اكون وفقت فيها​

المصدر
كود:
http://www.support-gate.com/vb/


 

رووح القلوب

عضو جديد
20 مارس 2009
246
1
0
How To Install HyperVM on Linux - Modified tutorial from http://lxlabs.com

Some things of the lesson in English


What is HyperVM :
HyperVM is a multi-platform, multi-tiered, multi-server, multi-virtualization web based application that will allow you to create and manage different Virtual Machines each based on different technologies across machines and platforms.
HyperVM sports advanced features allowing you to manage your entire vps hosting from a single console. HyperVm has been optimized for cross data-center clusters, allowing you to have your servers spread across multiple data centers all over the world. Some key HyperVM features:
* Full Distribution. Manage your entire data center. HyperVM is successfully used by our clients to manage 1000s of vpses on 100s of servers, centrally, with the slaves spread across different DCs.
* Support for Windows Virtualization. HyperVM allows efficient windows virtualization with advanced features like backup/restore built in.
* Support for multiple virtualization technologies.
* Live Migrate
* Integrated, optimized centralized backup. HyperVM centralized backup uses symlinks to provide extreme efficiency in backing up your entire hosting. HyperVM provides advanced browse backup feature where a client can browse his entire backup and automatically restore it himself, without ever needing to contact the support.

Preparation :
Make sure that you open the ports 8888 and 8887 in the firewall. Otherwise you won’t be able to connect to HyperVM.
You have to disable selinux by editing /etc/sysconfig/selinux and changing the line to selinux=disabled and then running :
# setenforce 0
setenforce: SELinux is disabled
HyperVm installation consists of downloading either the hypervm-install-master.sh or hypervm-install-slave.sh from download.lxlabs.com and executing them as root. They will download all the required files and do the complete installation on their own.

# wget http ://download.lxlabs.com/download/hypervm/production/hypervm-install-master.sh
# sh ./hypervm-install-master.sh –virtualization-type=xen/openvz/NONE
You have to explicitly specify which virtualization type you want using the option –virtualization-type as either xen or openvz or NONE. If you want to install hypervm on an existing system, just use virtualization-type=NONE, which will install just hyperVM components, and skip the virtualization componetns entirely. When you run the command, you will presented with a menu from up2date, on which you can press <Enter>
HyperVM will currently install the openVZ/Xen kernel, but will not switch the default kernel to it. You will have to manually edit the /etc/grub.conf, and change the ‘default=1′ to ‘default=0′, and reboot the machine :
# nano /etc/grub.conf
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.22.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-92.1.22.el5
module /vmlinuz-2.6.18-92.1.22.el5xen ro root=/dev/VolGroup00/LogVol00
module /initrd-2.6.18-92.1.22.el5xen.img
title CentOS (2.6.18-92.1.18.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.1.18.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-92.1.18.el5.img
title CentOS (2.6.18-92.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-92.el5.img

HyperVM supports the concept of multiple locations, and thus generally the question of harddisk partitioning is irrelevant. It is recommended to have a large / for openvz, since both /home and /vz will have files. You can just add another harddisk, mount it as a particular directory, and then add it to the list of locations. In other words, you can trivially distribute vpses across different harddisks/lvms. Also you can change the location of a vps from one harddisk to other from the CP itself. Go to vps home -> advanced -> change location.
You should never run any other control panel other than hyperVM on the host server. That will unncessarily introduce security risks, and in the case of openvz, since all the vps process are visible and accessible on the host server, starting and stopping of services on the host server will affect all the vpses too. If you need to run anything, create a special vps for it.
Once the machine boots back, just make sure you have the openVZ kernel by doing a ‘uname -a’, and after that you can connect to ‘http://machine-name:8888′, and you will be presented with a login screen - the password would be ‘admin’. Once you login, HyperVM will explicitly force you to change the password to something other than ‘admin’.
For those installing Xen, please read these extra notes, and make sure that you meet all the requirements.
If you are installing on legacy operating systems (Fedora 2, 3, 4), please read these notes.
If you want to have a cluster, you have to run ‘hypervm-install-slave.sh’ in all the servers that you intend to make as slaves. Once ‘hypervm-install-slave.sh’ is completed, you can add the server from the ‘add server’ page in the master’s server page. You will need to open port 8889 which is what’s used for communication between the master and slave. For file transfer, the slave will need to contact the master’s 8889 port, so you will need 8889 open on both master and the slave. All communication is fully encrypted and secure. From then on, you can manage every aspect of Virtualization through our intuitive graphical interface. We expect you to have a great time managing your serverfarm using hyperVM. IF you run into any problems, please visit our forum at our website ‘http://lxlabs.com/forum’, and you can ask your query there. Since our forum is integrated with mailing list which in turn has our main developers as members, you can get direct answers from the developers themselves.
Upgrading hyperVM is very straightforward. The ‘update home’ page will show you the latest version of hyperVM available, and you can just update to the latest version by clicking on ‘update now’.

Xen Installation Notes :
* Note: Although the notes below will fall under recommended best practices for installing your server, they are mandatory only if you are installing Xen, and if you are planning on installing openvz, then you can skip them without any issue.
* The boot loader must be grub. Grub is a much more flexible and mature boot loader, and it is actually a good idea to use it rather than lilo.
* There must be a separate /boot partition. You can assign it 200MB.
* You should use LVM.
The recommended disk configuration is:
/boot /dev/hda1 (500MB)
/ /dev/mapper/vol00-root (8GB)
swap /dev/mapper/vol00-swap (1GB)
The above are just minimum configurations, and you can extend them whenever they get full.
HyperVM will automatically detect your xen configuration and will set the driver to xen and also add the existing LVMs in the system to the xen locations. Just make sure that you are running xen and the Volume Groups have been added by going to server home -> location home .
On fedora 6/centos 5, you will need to run the following for xen to work properly. This is because xen on fedora 6/centos 5 is broken and the default initrd will not function.
———
# cd /usr/local/lxlabs/hypervm/httpdocs/
# lphp.exe ../bin/misc/fixfc6xen.php
———-
———
# cd /usr/local/lxlabs/hypervm/httpdocs/
# lphp.exe ../bin/misc/fixcentos5xen.php
———-
If hyperVM didn’t automatically recognize the xen driver, you can run the command below to forcibly set it.
————-
# cd /usr/local/lxlabs/hypervm/httpdocs/
# lphp.exe ../bin/common/setdriver.php –server=localhost –class=vps –driver=xen
————-
If you switch the kernel at any point later, you will have to run the above commands again.
HyperVM will automatically set the driver for the server if you install it as xen. But if by any chance, the driver fails to get set at the install time, you can always set it later by running the command below.
———
# cd /usr/local/lxlabs/hypervm/httpdocs/
# lphp.exe ../bin/common/setdriver.php –server=localhost –class=vps –driver=xen


 

elblkasy

عضو جديد
9 سبتمبر 2008
11
0
0
مشرح متعوب علية
بارك الله فيك