安裝半虛拟化的虛拟機隻能通過網絡安裝,而且隻有一部分系統可以安裝。
在CentOS5.5中安裝半虛拟化的子系統CentOS 5.5。
1.首先建安裝源
(如果沒按apache先安apache
yum install httpd
然後打開/etc/httpd/conf.d/welcome.conf,把所有行都注釋掉
/etc/init.d/httpd start)
mount -t iso9660 -o loop CentOS-5.5.iso /var/www/html
關閉防火牆(如果不關防火牆可能會出現 Unable to retrieve ...的問題)
/etc/init.d/iptables stop
上面使用的是http,可以使用ftp,nfs等其他的方式。
2.建立xen虛拟機,選擇半虛拟化,如下圖
<a target="_blank" href="http://blog.51cto.com/attachment/201010/102441984.png"></a>
隻填第一處即可,就是http服務的ip位址,可以是遠端主機(注意不是127.0.0.1)
<a target="_blank" href="http://blog.51cto.com/attachment/201010/102614305.png"></a>
<a target="_blank" href="http://blog.51cto.com/attachment/201010/102658290.png"></a>
<a target="_blank" href="http://blog.51cto.com/attachment/201010/102711806.png"></a>
本文轉自nxlhero 51CTO部落格,原文連結:http://blog.51cto.com/nxlhero/405053,如需轉載請自行聯系原作者