Solaris Xen Drop 66 – Setup Dom0

  • Install the OpenSolaris Xen Update (July 2007) .

  • Adjust the default boot item in /boot/grub/menu.lst to point to the Xen line. You need to boot xen first in order to get the right devices created and reboot.

    When booting Solaris on Xen, the kernel$ line must refer to the Xen hypervisor, and there must be two module$ lines. The first module$ line must list the path to unix twice, with any arguments (once again, represented by [*] in the example) at the end of the line. The second module$ line lists the path to the boot archive:

    #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- 
    title Solaris on Xen kernel$ /boot/$ISADIR/xen.gz
    module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix [*]
    module$ /platform/i86pc/$ISADIR/boot_archive
    #---------------------END BOOTADM--------------------

    To boot Solaris on Xen in 32-bit mode on a 64-bit capable system, all instances of $ISADIR must be removed:

    #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- 
    title 32-bit Solaris on Xen kernel /boot/xen.gz
    module /platform/i86xpv/kernel/unix /platform/i86xpv/kernel/unix [*]
    module /platform/i86pc/boot_archive
    #---------------------END BOOTADM--------------------
  • A simple test to determine if things look about right is to run xm top. (This command provides details of running domains; you should just have a single one called Domain-0.)

       # xm top

NOTE: By default, you reboot into bare metal after install. If you subsequently reboot into dom0, you might need to manually enable all xctl services.

  • In Solaris, all of the properties from xend-config.sxp have been put into SMF xctl/xend (config/*).

  • To modify an existing property:

	# svccfg -s xctl/xend listprop 	
# svccfg -s xctl/xend setprop config/dom0-cpus = 1
# svcadm refresh xctl/xend
  • To create a new property.

	# svccfg -s xctl/xend setprop config/vncpasswd = astring: /"password/" 	
# svcadm refresh xctl/xend
# svcadm restart xend
# svcprop xctl/xend

To enable the Xen services running on the system:

  1. Become superuser, or assume the Primary Administrator role..

  2. Verify that the xctl services are running.

    # svcs -a | grep xctl

    If the system displays the following, the services are not running:

    disabled       12:29:34 svc:/system/xctl/console:default 
    disabled 12:29:34 svc:/system/xctl/xend:default
    disabled 12:29:34 svc:/system/xctl/store:default
  3. If the services are not running, verify that you booted an i86xpv kernel.

    # uname -i i86xpv

    Reboot if necessary.

  4. If the correct kernel is running, enable the services.

    # svcadm enable xctl/store 
    # svcadm enable xctl/xend
    # svcadm enable xctl/console

    You are now ready to create guest domains (domUs).

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值