设为首页 收藏本站
查看: 1025|回复: 0

[经验分享] Install SNV85 DomU at Xen 3.2 CentOS 5.1 or Ubuntu 7.10 Dom0 (64-bit)

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-10-11 14:56:40 | 显示全部楼层 |阅读模式
Thursday, April 10, 2008


Install SNV85 DomU at Xen 3.2 CentOS 5.1 or Ubuntu 7.10 Dom0 (64-bit) per Jurgen Keil



Nevada build 85 is the first SNV build implementing Xen 3.1.2 bits. It's well known that straight forward attempt to install SNV85 DomU at Xen 3.2 Linux Dom0 immediately
crashes due to broken by Xen 3.2 backward compatibility.
Recently at xen-discuss forum@opensolaris.org Jurgen Keil suggested workaround for this issue providing owners of build 85 option to load SNV85 DomU and patch DomU's kernel , turning it permanently into running shape at Xen 3.2 Linux Dom0 (64-bit). Note , that Sun patch is scheduled for build 87 and might take 3-4 weeks waiting for ISO image availibilty at sdn.com. Jurgen also wrote, that he didn't have Xen 3.2 Linux Dom0 (64-bit) to perform testing. That is what , actually, was done by me for CentOS 5.1 and Ubuntu 7.10 Desktop. Installations differs due to CentOS 5.1 doesn't allow to use "pygrub" and requires coping of patched kernel from DomU to Dom0.
Brief description for both procedures follows bellow.
1. Install at Xen 3.2 CentOS 51. Dom0 (64-bit)



*********************
Installation profile
*********************
[iyunv@ServerRHL51 vm]# cat snv85.install
name = "Solaris85pvm"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-85"
ramdisk = "/usr/lib/xen-solaris/x86.miniroot-85"
extra = "/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom"
disk = ['file:/usr/lib/xen-solaris/snv85.iso,6:cdrom,r','phy:/dev/sdb7,0,w']
vif = ['bridge=eth2']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"


At start up at kmdb prompt do:-



Using config file "./snv85.conf".
Started domain Solaris85pvm
Loading kmdb...
Welcome to kmdb
Loaded modules: [ unix krtld genunix ]
[0]> gnttab_init+0xce/W 403
gnttab_init+0xce: 0x3 = 0x403
[0]> :c
v3.2.1-rc1-pre chgset 'Wed Mar 05 16:49:33 2008 +0000 16805:28e0d4a37bb4'
SunOS Release 5.11 Version snv_85 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.


Now change profile for runtime



****************
Runtime profile
****************
name = "Solaris85pvm"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-85"
ramdisk = "/usr/lib/xen-solaris/x86.miniroot-85"
extra = "/platform/i86xpv/kernel/amd64/unix -kd"
disk = ['phy:/dev/sdb7,0,w']
vif = ['bridge=eth2']
root="/dev/dsk/c0d0s0"
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"


Repeat same actions at kmdb prompt and when DomU gets loaded,
patch kernel and copy it to Dom0 :-



# bash
bash-3.2# mdb -w /platform/i86xpv/kernel/amd64/unix
> gnttab_init+0xce?W 403
unix`gnttab_init+0xce: 0x403 = 0x403
> $q
bash-3.2# /usr/bin/scp -S /usr/bin/ssh /platform/i86xpv/kernel/amd64/unix /
> 192.168.1.33:/usr/lib/xen-solaris/unix-85
The authenticity of host '192.168.1.33 (192.168.1.33)' can't be established.
RSA key fingerprint is 8d:83:34:15:01:a3:5e:d3:65:3c:a1:1e:0f:01:32:12.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.33' (RSA) to the list of known hosts.
root@192.168.1.33's password:
unix 100% |*****************************| 1760 KB 00:00
bash-3.2# shutdown -y -i0 -g0


Now runtime profile at Dom0 is referencing patched version of kernel
and "-kd" should be removed from "extra" line.




Installation snapshots for SNV86 DomU at Xen 3.2 CentOS 5.1 Dom0 (64-bit)









2. Installation procedure at Xen 3.2 Ubuntu 7.10 Desktop Dom0 (64-bit)



*********************
Installation profile
*********************
name = 'Solaris85PVM'
memory = '1024'
disk = [ 'file:/usr/lib/xen-solaris/snv85.iso,6:cdrom,r','phy:/dev/sdb9,0,w']
vif = [ 'bridge = eth2' ]
bootloader = '/usr/bin/pygrub'
kernel = '/boot/platform/i86xpv/kernel/amd64/unix'
ramdisk = '/boot/amd64/x86.miniroot'
extra = '/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom'


At start up at kmdb prompt do:-



root@boris-desktop:/etc/xen/vm # xm create -c SNV85.install
Using config file "./SNV85.install".
Started domain Solaris85PVM
Loading kmdb...
Welcome to kmdb
Loaded modules: [ unix krtld genunix ]
[0]> gnttab_init+0xce/W 403
gnttab_init+0xce: 0x3 = 0x403
[0]> :c
v3.2.0 chgset 'unavailable'
SunOS Release 5.11 Version snv_85 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Configuring /dev


Go through normal install and change profile to perform kernel patch:-



***********************************************
The very first runtime profile to patch kernel
***********************************************
root@boris-deskto p:/etc/xen/vm# cat SNV85.conf
name = 'Solaris85PVM'
vcpus = 1
memory = "1024"
bootloader = "/usr/bin/pygrub"
kernel = "/platform/i86xpv/kernel/amd64/unix -kd"
ramdisk = "/platform/i86pc/amd64/boot_archive"
disk = ['phy:/dev/sdb9,0,w']
vif = ['bridge = eth2']
on_shutdown = "destroy"
on_reboot = "restart"
on_crash = "destroy"


When DomU gets loaded run to make permanent changes to kernel:-



# bash
bash-3.2# mdb -w /platform/i86xpv/kernel/amd64/unix
> gnttab_init+0xce?W 403
unix`gnttab_init+0xce: 0x403 = 0x403
> $q
# shutdown -y -i0 -g0


Now you can switch to runtime profile either use previous one removed "-kd" from kernel entry :-



name = 'Solaris85PVM'
memory = '1024'
disk = [ 'phy:/dev/sdb9,0,w' ]
vif = [ 'bridge = eth2' ]




Installation snapshots for SNV86 DomU at Xen 3.2 Ubuntu 7.10 Dom0 (64-bit)











References
1.Install Xen 3.2 on Ubuntu 7.10 Desktop (amd64)
2.Install Solaris (SNV 84) DomU at Xen 3.2 CentOS 5.1 Dom0 (64 bit)


版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-125531-1-1.html 上篇帖子: xen setup 下篇帖子: Xen的idle domain到底在干啥
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表