一直听说xen和vmware齐名,正好前几天新装了fedora 8,于是今天就试了一下。
1 进入机器的bios中,将VT设置为enable
2 将fedora8的dvd iso文件mount起来
# mount -o loop /space/iso/Fedora-8-i386-DVD.iso /mnt/cdrom
3 安装相关rpm包
QUOTE: |
# cd /mnt/cdrom/Packages # rpm -ivh kernel-xen-* # rpm -ivh bridge-utils-1.2-2.fc8.i386.rpm python-virtinst-0.300.1-3.fc8.noarch.rpm libvirt-python-0.3.3-2.fc8.i386.rpm virt-viewer-0.0.2-2.fc8.i386.rpm xen* libvirt-0.3.3-2.fc8.i386.rpm dnsmasq-2.40-1.fc8.i386.rpm gtk-vnc-0.2.0-4.fc8.i386.rpm |
4 # reboot,重新启动机器,重启后选择进入带有xen字样的grub启动模式
5 将winxp的光盘放入cdrom中
6 # dd if=/dev/zero out=/root/vmdisk.img bs=1M count=10240
7 # mkfs.ext3 /root/vmdisk.img
8 # tun2fs –i 0 –c 0 /root/vmdisk.img
9 # cp /etc/xen/xmexample.hvm /etc/xen/vmx-1.hvm
10 # vi /etc/xen/vmx-1.hvm
QUOTE: |
name = “VMX-1” disk = [‘file:/root/vmdisk.img,had,w’,’phy:/dev/cdrom,hdc:cdrom,r’] boot=’d’ (installation, boot from cdrom, then boot from hard disk ‘c’) vnc=1 |
11 # xm create –c vmx-1.hvm
12 # vncviewer 127.0.0.1:vmx-1
即可进入安装winxp的界面。
全文结束。