在Linux Dom0上安装Solaris DomU

Just thought I'd give the people on the list who maybe interested a

pointer as to how I managed to install an opensolaris domU (latest

drop) under a Linux dom0 (Ubuntu Feisty to be exact)...

 

The instructions in the community documentation here doesn't include a

kernel or a ramdisk specification, so my Linux dom0's tools didn't

care for it.  To get around this, I loop mounted the DVD image, and

took:

 

cp /media/cdrom/boot/platform/i86xpv/kernel/unix

/etc/xen/kernel/OpenSolaris-07-07.kernel

cp /media/cdrom/boot/x86.miniroot /etc/xen/kernel/OpenSolaris-07-07.miniroot

 

Then used the following xen python config (as /etc/xen/configs/opensol.cfg)

 

name = "opensol"

memory = "300"

kernel = '/etc/xen/kernel/OpenSol-07-07.kernel'

ramdisk = "/etc/xen/kernel/OpenSol-07-07.miniroot"

extra = '/platform/i86xpv/kernel/unix - nowin -B install_media=cdrom'

on_shutdown = "destroy"

on_reboot = "destroy"

on_crash = "destroy"

disk = ['file:/opt/iso/OS/OpenSolaris/66-0624-nd.iso,6:cdrom,r',

        'phy:optData/xen-opensol-c0t0d0,0,w']

vif = ['bridge=xenbr0']

 

 

This seems to have worked (so far, it's busily installing packages

right now).  I expect to have the same kind of issues with the

boot_archive not getting propagated back to the dom0, causing it not

to be read as the ramdisk, but I'll manage to get around that.

 

It would be beneficial if the kernels (both for x86 and amd64) and the

initial ramdisk image could be extracted from the ISO and put onto the

Sun Downloads page with the ISO image chunks.  This would definitely

help any who choose to attempt to run an OpenSolaris domU under a

Linux (or maybe even NetBSD) dom0.

 

Thanks for the good work, and for the useful support on IRC.

 

Note: I'm not yet sure if my networking will work, or if I need to

twiddle that.  That vif setting works for all my Linux domUs so I used

it as a starting place.  I think it worked with the b44 drop too.

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值