How to install FreeBSD as domU

2009-05-13 04:36:52来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

原文:
http://www.yuanjue.net/xen/howto.html
在CentOS4.4/Xen3上安装FreeBSD6.1成功,安装过程原文写的很清楚,就不画蛇添足了:).Thanks yuanjue!

NOTE: All these works here are still under testing and may not be suitable for production environment. We only support FreeBSD/i386 for now. As for the dom0 suppport of FreeBSD, we still need some time to get it ready. Stay tuned :-)
How to install FreeBSD as domU
There are several files needed if one wants to install FreeBSD as a domU domain: kernel (
freebsd-XENU_INSTALL
&
freebsd-XENU
), config (
freebsd_xen_INSTALL
) and of course an image file if you install FreeBSD into a file instead of a real hard disk.
1. If you prefer a file backed system, then the first thing should do is to create an image file. It could be done like the following:
dd if=/dev/zero of=freesd_xen_INSTALL.img bs=1024k count=1000
This will create a 1GB blank image file for use. Feel free to change the parameters to match your own needs.
2. Make sure the kernel file and config file are in proper place. Typically, the config file would be placed in /etc/xen/vm, and the kernel's location is specified in that config file.
3. To install FreeBSD as domU, make sure these two lines are used in config file:
kernel = "/Path/To/Kernel/freebsd-XENU_INSTALL"
#kernel = "/Path/To/Kernel/freebsd-XENU"
extra += ",vfs.root.mountfrom=ufs:/dev/md0"
#extra += ",vfs.root.mountfrom=ufs:/dev/md0/xbd769s1a"
4. Now we could start installing. Just create the domain as usual:
xm create -c /Path/To/Config/freebsd_xen_INSTALL
After the domain boots, it will ask you to choose a console to continue the intallation process. "2 ...................... VT100 or compatible terminal." is a good choice here. Then we will be brought to the familiar Sysinstall Menu dialog. The very first thing needs to do here is change the Release Name from 7.0-CURRENT to the RELEASE version that you intend to install, since we port Xen in 7.0-CURRENT and don't offer a RELEASE kernel with Xen support currently. This could be done in the menu entry "Options".
NOTE: The installation will hang when "Extracting base in / directory" if you choose to install 6.1-RELEASE , while 6.0-RELEASE works fine in my machine using a file backed system. So it's up to you whether or not to test 6.1-RELEASE.
5. After choosing a proper FreeBSD release, continue the installation process as you usually do. When it is time to come into FDISK Partition Editor dialog, you would find that the DISK Geometry showing here is 0 cyls/0 heads/0 sectors, which ends up with a 0MB disk for us to use. Make sure to use "G" to set Drive Geometry manually. Just to type something like "1000/1000/1000" is enough, as sysintall will first complain the geometry we typed makes no sense and then offer us some certain disk geometry workable. Then continue.

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:linux 硬件相关命令 更新中现有(Dmidecode), 请大家赐教

下一篇:FreeBSD 远程存取