ÒªÔÚLinuxÉÏ°´×°Windows£¬³ýÁËVMWareÕâÖÖͨ¹ýÈí¼þÈ«ÐéÄâµÄ·½Ê½£¬»¹¿ÉÒÔͨ¹ýxenʵÏÖÓ²¼þÖ§³ÖµÄÐéÄâ¡£ÏÖÔÚ£¬¸÷Ö÷Òª·¢Ðа涼ÄÚÖÃÁËxen£¬Ô±¾´òËãÔÚRedhat Enterprise 5ÉÏÊÔÊÔ£¬²»¹ýÓ²¼þÅäÖÃÌ«Âé·³¡£Ô´Âë±àÒëÌ«Âé·³£¬×îºÃÊÇͨ¹ý°²×°°üÒ»´Î¸ã¶¨£¬×îÖÕ¾ö¶¨ÓÃDebian Etch£¬¼¸Ìõapt-get¾Í¸ã¶¨ÁË£¬·Ç³£·½±ã¡£
°²×°WindowsµÄ±ØÐëÌõ¼þ£º
CPU±ØÐëÖ§³ÖIntel VT»òAMD PTÐéÄ⻯¼¼Êõ£¬Ã»ÓеĻ°¾Í²»Óÿ¼ÂÇÁË¡£Òª¼ì²éCPUÊÇ·ñÖ§³Ö£¬ÓÃÃüÁ
grep vmx /proc/cpuinfo
Èç¹ûÊÇAMDµÄCPUÓÃgrep svm /proc/cpuinfo¡£
ÎÒµÄÓ²¼þÅäÖãºIntel Core2 Duo T7200 2GHz£¬2G RAM
ÏÈ°²×°ºÃDebian EtchºÍGnome×ÀÃ棬µÚÒ»²½ÊÇ°²×°xenÖ§³ÖµÄÄںˣ¬×¢Òâ°æ±¾ÒªºÍµ±Ç°LinuxÄÚºËÒ»Ö¡£ÓÃapt-get°²×°£º
xen-linux-system-2.6.18-5-xen-686
xen-tools
libc6-xen
xen-ioemu-3.0.3-1
xen-hypervisor-3.0.3-1-i386-pae
bridge-utils
°²×°Íê±ÏºóÖØÆôϵͳ£¬ÔÚGRUB¾Í¿ÉÒÔ¿´µ½´øxenµÄÄںˣ¬Æô¶¯ºó·¢ÏÖÎÞÏßÍø¿¨²»¹¤×÷£¬ÐèÒªÔÙ°²×°Ò»¸öipw3945-modules-2.6.18-5-686£¬ÖØÆôºóÍø¿¨¹¤×÷Õý³£¡£
µÚ¶þ²½ÊÇ°²×°×¼±¸£¬ÏÈ´´½¨Ò»¸ö4GµÄÎļþ×÷ΪWindowsµÄÐéÄâÓ²ÅÌ£º
dd if=/dev/zero of=/home/xuefeng/xen/winxp/winxp.img bs=1M count=4096
×¼±¸ºÃWindows XPµÄISOÎļþ£¬ÎÒ·ÅÔÚ/home/xuefeng/xen/winxp/winxp.iso¡£
±àдÅäÖÃÎļþ/home/xuefeng/xen/winxp/winxp.cfg£¬ÒÔÏÂÊÇÎÒµÄÅäÖÃÎļþ£º
name='winxp'
kernel='/usr/lib/xen-3.0.3-1/boot/hvmloader'
device_model='/usr/lib/xen-3.0.3-1/bin/qemu-dm'
builder='hvm'
# ÄÚ´æ´óС£º
memory=1024
pae=1
# ÅäÖÃÒ»¸öÓ²Å̺ÍÒ»¸ö¹âÅÌ£º
disk=['file:/home/xuefeng/xen/winxp/winxp.img,ioemu:hda,w', 'file:/home/xuefeng/xen/winxp/winxp.iso,hdc:cdrom,r']
# ÍøÂçÆô¶¯Ê§°Ü£¬ÔÝʱעÊ͵ô£º
#vif=['type=ioemu,bridge=xenbr0']
# ÏÈÉèÖôÓdÆô¶¯£¬µÈ°²×°½áÊøºó¸ÄΪc¾Í¿ÉÒÔÖ±½Ó´ÓÓ²ÅÌÆô¶¯£º
boot='d'
vcpus=2
# ÉèÖÃVNC£º
vnc=1
vnclisten='127.0.0.1'
vncviewer=1
on_poweroff='destroy'
on_reboot='restart'
È»ºóͨ¹ýÒÔÏÂÃüÁîÆô¶¯ÐéÄâ»ú£º
sudo xm create /home/xuefeng/xen/winxp/winxp.cfg
Æô¶¯Íê±Ïºó£¬¿ÉÒÔͨ¹ýxm list²é¿´µ±Ç°ËùÓеÄÐéÄâ»ú¡£×îºóÒ»²½ÊÇͨ¹ýVNC¿Í»§¶ËÁ¬½Óµ½winxpµÄÐéÄâ»ú£¬Èç¹ûûÓÐÏÈ°²×°xvncviewer£¬°²×°Íê±ÏºóÆô¶¯£º
xvncviewer 127.0.0.1
¼´¿É¿´¼û°²×°½çÃæ¡£
sgx ÓÚ 2007-09-05 16:07:37·¢±í:
Â¥Ö÷ºÃÏñÓаëÐéÄ⻯ºÍÍêÈ«ÐéÄ⻯֮·Ö:0L