FreeBSD Xen 3.0 配置指南

原文转自http://www.horuslee.com/2006/03/freebsd_xen_30.html

不过我访问的时候horuslee.com已经不维护了。还是CU稳定。话说回来,FreeBSD短期不会投入大精力,估计本文只是我的备份了。先Ubuntu+Xen再说。

FreeBSD Xen 3.0 配置指南

这个是从一个老外的站点上弄来的,希望能对想在FreeBSD下使用Xen 3.0的朋友起到点帮助。
This file is extremely dated at this point.

One should be able to build by running the setup script and then running the build
script on a machine running freebsd.

Also be aware that I have done nothing to fix bugs here in over 8 months. Currently
my efforts are going towards getting FreeBSD -CURRENT up and running on xen 3.0.

– Kip Macy 05.12.25
FreeBSD HOWTO

This assumes that you are running Xen 2.0 testing

Running the current image:
1) download kernel, mdroot-5.3-small.gz, freebsd.sample, and xenargs.sample
2) uncompress the kernel and mdroot (the mdroot requires 406MB uncompressed)
3) export the mdroot as a loopback device:
> /sbin/losetup /dev/loopa /var/mdroot
(This may not work if you have an older losetup – FC2 is known to work)
4) localize the freebsd.sample to your environment
5) run the xenargs.sample script
6) There is no root password
— If you have problems you can boot into single user mode (look at the options in
freebsd.sample) and edit /etc/rc.conf to reflect your environment

Building the current image:
1) on a machine running FreeBSD 5.3 download i386-xeno.tgz
# cd /sys
# tar xzf ~/i386-xeno.tgz
# cd conf
(assumes csh)
# foreach file ( ../i386-xeno/sys/conf/*.i386-xeno )
foreach? ln -s $file
# cd ../i386-xeno/conf/
—– # create compile directory ——-
# config XENCONF
Kernel build directory is ../compile/XENCONF
Don’t forget to do a “make depend”
# cd ../../include/
—– # link in xen interface headers ——-
# ln -s /t/niners/users/xen/xen-2.0-testing.bk/xen/include/public hypervisor-ifs
# cd ../compile/XENCONF
# make kernel-depend
—– # build kernel ——-
# make -j4 kernel
<…>
linking kernel.debug
text data bss dec hex filename
2057881 135964 179472 2373317 2436c5 kernel.debug
objcopy –strip-debug kernel.debug kernel

新机计划Ubuntu+虚拟化

如果魔兽开服的话,新的电脑就必须放到议事日程上来了。为了远离病毒和黑客干扰了。计划如下:

1.内存要充足,能插满要插满,能上6条就不上4条的
2.DDR3优先
3.操作系统Ubuntu,用人家的手短,而且这个系统也不错。
4.虚拟机,安装3套,一套只有网银,安装俺那正版的Windows ME吧
一套安装Windows XP+魔兽,别的游戏我不大喜欢
一套安装Windows XP+开发环境,毕竟有些工作要进行
5. 虚拟机的选择OpenVZ, VirtualBox, VMWare, WINE(算的话), XEN, KVM,IBEX?找时间对比一下。能不用盗版当然就不用。WINE是第一个被测试的。