SMF Hypervisor Services

本文档介绍了如何在SunOS环境下使用xVM虚拟化技术进行配置与管理,包括修改现有属性、创建新属性以及验证服务是否启动等内容。此外,还详细说明了如何启用实时迁移功能,包括设置监听地址、允许主机列表等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • 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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值