المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : تنصيب setup xen على centos وإعداد جهاز افتراضي



admin
11-02-2013, بتوقيت غرينيتش 01:23 AM
بسم الله الرحمن الرحيم

نبدأ أخواني بتنصيب setup xen على سيرفر SERVERcentos 5.5

بتعطيل selinux

رمز PHP:

<code style="white-space:nowrap"> <code> nano /etc/sysconfig/selinux
</code> </code>

ونعمل كتالي

رمز PHP:

<code style="white-space:nowrap"> <code> # This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
</code> </code>

ونعمل الان إعادة تشغيل السيرفر SERVER

رمز PHP:

<code style="white-space:nowrap"> <code> reboot
</code> </code>

بعد إعادة التشغيل نقوم بتنصيب setup xen

رمز PHP:

<code style="white-space:nowrap"> <code> yum install kernel-xen xen
</code> </code>

بعد تثبيت setup xen

نعدل على البوت

رمز PHP:

<code style="white-space:nowrap"> <code> nano /boot/grub/menu.lst
</code> </code>

ونعدل
رمز PHP:

<code style="white-space:nowrap"> <code> default=1
</code> </code>

إلى




رمز PHP:

<code style="white-space:nowrap"> <code> default=0
</code> </code>

نعمل اعادة تشغيل السيرفر SERVER

رمز PHP:

<code style="white-space:nowrap"> <code> reboot
</code> </code>

نشيك على الكيرنل

رمز PHP:

<code style="white-space:nowrap"> <code> uname -r
</code> </code>

يطلع كذا

رمز PHP:

<code style="white-space:nowrap"> <code> 2.6.18-194.11.3.el5xen
</code> </code>

ننشأ ملف vm

رمز PHP:

<code style="white-space:nowrap"> <code> mkdir /vm
</code> </code>

نعمل جهاز وهمي

رمز PHP:

<code style="white-space:nowrap"> <code> virt-install --prompt
</code> </code>

رمز PHP:

<code style="white-space:nowrap"> <code> Would you like a fully virtualized guest (yes or no)? This will allow you to run unmodified operating systems. <-- no
What is the name of your virtual machine? <-- vm01
How much RAM should be allocated (in megabytes)? <-- 256
What would you like to use as the disk (file path)? <-- /vm/vm01.img
How large would you like the disk (/vm/vm01.img) to be (in gigabytes)? <-- 4
Would you like to enable graphics support? (yes or no) <-- no
What is the virtual CD image, CD device or install location? <-- http://ftp.tu-chemnitz.de/pub/linux/centos/5.5/os/i386/
</code> </code>

يأتيك تثبيت setup السيرفر SERVER بعد الانتهاء

لدخول إلى الجهاز الوهمي

رمز PHP:

<code style="white-space:nowrap"> <code> xm console vm01
</code> </code>

تم الانتهاء من تنصيب setup xen

مع تحيات عصام الجريسي





https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى