VNSTD( virtual network terminal server daemon) 这个service提供guest的虚拟console功能,默认它监听localhost回环地址127.0.0.1;所以默认情况下,其他人的LDOM是无法直接得到console的,LDOM的用户必须登录到Primay控制域才能拿到它自己guest domain的console,但有的时候管理员并不希望给每一个Guest domain用户Primary的root口令,或者为了这去专门创建RBAC(太麻烦了),那用下面的方法试试,修改vntsd的properties中的listen_addr,将它设置为primary的应用IP地址,这样其他用户就能够直接telnet application_ip guestLdom_port来获取console了
# svccfg
svc:> select ldoms/vntsd
svc:/ldoms/vntsd> listprop
vntsd application
vntsd/timeout_minutes integer 0
vntsd/vcc_device astring virtual-console-concentrator@0
vntsd/listen_addr astring localhost
...
svc:/ldoms/vntsd> setprop vntsd/listen_addr = 192.168.0.21
svc:/ldoms/vntsd> exit
# svcadm refresh ldoms/vntsd
# svcadm restart ldoms/vntsd
You can now access domain consoles from a different machine by telnet-ing to the specified
host, like this:
bash-3.00# telnet 10.113.208.205 5000
Trying 10.113.208.205...
Connected to 10.113.208.205.
Escape character is '^]'.
Connecting to console "XYJ" in group "XYJ" ....
Press ~? for control options ..
xyj console login:
阅读(479) | 评论(0) | 转发(0) |