XEN4.1测试(已经进入pkgsrc)

NetBSD的安装、升级、更新等日常问题请在这里讨论。

版主: lionux

回复
头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

XEN4.1测试(已经进入pkgsrc)

帖子 lionux » 2011-04-07 21:01

http://mail-index.netbsd.org/port-xen/2 ... 06529.html
Hi,

I have packaged xen 4.1.

Get the packages from
http://www.netbsd.org/~cegger/xenkernel41.tar.gz
http://www.netbsd.org/~cegger/xentools41.tar.gz

Unpack them in pkgsrc/sysutils/

Get the file http://www.netbsd.org/~cegger/buildlink3.mk
and put it in pkgsrc/devel/ocaml-findlib/
before you install the xentools41 package.

In /etc/rc.conf add:

xend=YES

Differences to earlier xen versions:

xenbackendd=YES is no longer needed in rc.conf.


I highly recommend the use of 'xl'. xl is basically 'xm' rewritten in C.
The syntax and usage of xl is equivalent to xm.

xl does not require xend to run.
xl requires xenstored and xenconsoled to run.
xend no longer starts them automatically.
The xencommon start script starts xenstored, xenconsoled and xenbackendd.

xm is marked as supported but deprecated in Xen 4.1.
Future versions of Xen no longer support xm (it will be removed).

xl uses qemu-dm to handle accesses to the disks for both HVM and PV
guests. qemu-dm uses aio internally. vnd(4) is no longer needed.


Known-Bugs:

* xm still invokes the scripts to make guests images available via
vnd(4). Now when starting an HVM guest, qemu's aio and vnd(4)
conflict and this results in a EBUSY error message from open(2). The
guests boots because whoever wins the race (either vnd or qemu) makes
the image available to the guest. If you run a DEBUG or DIAGNOSTIC
dom0 kernel then it panics on guest shutdown when it tries to
close(2) the image.
Note: This issue is related to xm only. User of xl don't have this
problem.

* I put my focus in making xl to work on NetBSD.
xm hasn't got much testing because of that and you may find bugs.

* xl is well tested to run HVM guests and is supposed to work
out-of-the box. This is not the case for PV guests and you may find
bugs.

* When booting a HVM guest and the boot menu on the serial console
may not be shown. This is a longstanding bug in the xen tools and
has been only exposed with xl because it is much faster than xm.
The problem is that there is no communication infrastructure that
allows the guest to inform the tools when it is ready to start the
boot. If the guest is ready before the tools are then the boot menu
appears. If the tools are faster than the guest then output is
dropped. This is not fixable w/o deep infrastructure changes and is
planned to be fixed in future Xen versions.
A workaround is to refresh the boot menu manually in the guest.
BTW: How do I refresh the boot menu in NetBSD's bootloader?


Christoph
经测试我的电脑在bios中关闭apic可启动Dom0,用的XEN3内核。
NetBSD需要更新到当前版。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: XEN4.1测试

帖子 leo » 2011-04-07 21:48

哈哈,终于有新东西可以玩玩了,有段时间不碰5.1了。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

回复: XEN4.1测试

帖子 lionux » 2011-04-08 8:20

不用改bios在boot.cfg,xen命令行后面添加acpi=off就可以启动,Domu winxp还是无声:(

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: XEN4.1测试

帖子 leo » 2011-04-08 8:51

好像KVM出现以后Xen在Linux里的应用比例也在下降。没有声音是不是有什么地方设置的不对?我没有仔细看Xen的说明文档。目前正在琢磨OpenBSD的OAMP发行版制作,等腾出手来就可以试试Xen4了。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: XEN4.1测试

帖子 leo » 2011-04-13 23:51

lionux 写了:不用改bios在boot.cfg,xen命令行后面添加acpi=off就可以启动,Domu winxp还是无声:(
我的不行,即便在boot.cfg里加上了这个开关:

代码: 全选

...
menu=Boot Xen with 2048MB for dou0:load /netbsd-XEN3_DOM0 console=pc;multiboot /xen acpi=off dom0_mem=2048M
...
仍旧无法启动,还是卡在了ehci0, 看来这块还是没有处理好,不知道这里为什么不用NetBSD 5.1的USB驱动?我的机器在5.1下没有问题,看来还是只能用老方法,重新定制和编译内核,我记得上次是在内核里禁用了apic就可以了,不敢轻易禁用usb设备,因为鼠标驱动在里面,不然没方法操作guest OS了。

===============================================

又试了试,过不去,系统起不来。:(

John.Fu
铁 Fe
帖子: 77
注册时间: 2010-05-04 21:06

回复: XEN4.1测试

帖子 John.Fu » 2011-04-18 16:54

还是放弃Xen吧,最关键的原因就是:它需要修改原OS,估计这就是为什么很多OS开发人员不愿意支持Xen的原因。
我现在又回到FreeBSDB,正准备试试vbox,哈哈。在FB8.2编译安装ports时,发现make过程比6.2那时候稳定多了。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: XEN4.1测试

帖子 leo » 2011-04-19 2:49

vbox目前还没有进入OpenBSD和NetBSD,sun原来就和FreeBSD关系好一些也是不争的事实,例如将ZFS提供给FreeBSD。目前在NetBSD下最可用的虚拟化产品还是Xen, 我这里Xen无法运行也是硬件驱动的问题没有解决,这个并非是NetBSD的原因,对比较新的usb组件的驱动所有的BSD比linux都差一些,但是只要有一个BSD操作系统解决了,其它的BSD也自然会跟进,这并不是只有NetBSD自己处理的不好,相反我感觉NetBSD的跟进步伐比OpenBSD还快一些。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

回复: XEN4.1测试

帖子 lionux » 2011-04-22 9:07

xen4.1 4月6日已经进入pkgsrc了,用的话就更新pkgsrc到当前版。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: XEN4.1测试(已经进入pkgsrc)

帖子 leo » 2011-04-22 9:12

我用的就是amd64的HEAD,目前是禁用不了apic或者usb(忘了在哪里下手了),所以xen内核起不来。

none
铁 Fe
帖子: 67
注册时间: 2012-02-29 11:41

回复: XEN4.1测试

帖子 none » 2012-03-11 0:28

leo 写了:好像KVM出现以后Xen在Linux里的应用比例也在下降。没有声音是不是有什么地方设置的不对?我没有仔细看Xen的说明文档。目前正在琢磨OpenBSD的OAMP发行版制作,等腾出手来就可以试试Xen4了。
我也有意向,做个适用的发行版实在是太需要了,也是我一直以来的愿望。我留心过,我周围大部分人部署服务器的时候,首选是Rhel5,就是因为它一路按下一步,装上基本就全了,系统参数调整的很少,默认就把缓存开到最大了,很适合多核和大内存服务器。
根据平时服务器部署的应用,我在琢磨ONATPPJ(OpenBSD + Nginx + Apache + Tomcat + PostgreSQL + PHP + JDK),Nginx做前端,Apache和Tomcat做后端,支持PHP和JAVA/JSP和Python,PostgreSQL做集群,默认支持iSCSI和开启很大缓存和2G以上共享内存,不知道是否可行,因为平时我都是这样装起来用,一项项配置完事还挺麻烦的,做成发行版就方便了。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 24 访客