现在的位置: 首页 > 综合 > 正文

SMF Hypervisor Services

2014年01月31日 ⁄ 综合 ⁄ 共 1712字 ⁄ 字号 评论关闭
  • In Solaris, all of the properties from xend-config.sxp
    have been put into SMF xvm/xend (config/*).
  • To modify an existing property:
# svccfg -s xvm/xend listprop
# svccfg -s xvm/xend setprop config/dom0-cpus = 1
# svcadm refresh xvm/xend

  • To create a new property.
# svccfg -s xvm/xend setprop config/vncpasswd = astring: /"password/"
# svcadm refresh xvm/xend
# svcadm restart xend
# svcprop xvm/xend

Verify That the xvm Hypervisor Services Are Started

  1. Become superuser, or assume the Primary Administrator role..
  2. Verify that the xvm services are running.
    # svcs -a | grep xvm

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

    disabled       12:29:34 svc:/system/xvm/console:default
    disabled 12:29:34 svc:/system/xvm/xend:default
    disabled 12:29:34 svc:/system/xvm/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 xvm/store
    # svcadm enable xvm/xend
    # svcadm enable xvm/console

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

Enable Live Migration


By default, xend listens only on the loopback address
for requests from the localhost. If you want to allow other
machines to live migrate to the machine, you must do the following:

  • Listen on all addresses (or you can specify a particular interface IP)
    # svccfg -s xend setprop config/xend-relocation-address = /"/"
  • Create list of hosts from which to accept migrations:
    # svccfg -s xend setprop config/xend-relocation-hosts-allow = /"^flax$ ^localhost$/"
  • Update the config:
    # svcadm refresh xend && svcadm restart xend


# svccfg -s xvm/xend setprop config/vncpasswd = astring: /"passwd/"

-s xvm/xend
-s specifies the service
setprop config/vncpasswd = astring: /"passwd/" setprop specifies the command
Note: You can see that password is quoted by ""

Similiarly,
# svccfg -s xvm/xend setprop config/vnc-listen = astring: /"0.0.0.0/"
This command is to specify the vnc-listen

man xend for more information.

抱歉!评论已关闭.