Access OpenSolaris HVM guest
=============================
1. vnc access from domain 0
VNC for HVM guest is default supported by xVM, so after create the HVM guest, domain 0 can access it through VNC:
% sudo virsh vncdisplay domain-name
% sudo vncviewer localhost:d
where d is the output of the first command.
2. remote access via xVNC
# svccfg -s cde-login setprop ’dtlogin/args=""’
# svcadm restart cde-login
# cat /etc/services | grep vnc-server
# printf "vnc-server/t5900/tcp/t/t/t# VNC Server/n" >> /etc/services
# svcadm enable xvnc-inetd
after these steps, you can use any vnc client software to connect the xVNC server.
Access OpenSolaris domU guest
=============================
1. console access from domain 0
VNC for domU guest is not support in current xVM. You can use "virsh console domain-name" to get a console for the guest.
2. vnc access via xVNC
Follow the same steps as above. "root" login will be rejected on a non-system console. So create a unpriveleged user:
# useradd -d /export/home/allen -m allen
# passwd allen
=============================
1. vnc access from domain 0
VNC for HVM guest is default supported by xVM, so after create the HVM guest, domain 0 can access it through VNC:
% sudo virsh vncdisplay domain-name
% sudo vncviewer localhost:d
where d is the output of the first command.
2. remote access via xVNC
# svccfg -s cde-login setprop ’dtlogin/args=""’
# svcadm restart cde-login
# cat /etc/services | grep vnc-server
# printf "vnc-server/t5900/tcp/t/t/t# VNC Server/n" >> /etc/services
# svcadm enable xvnc-inetd
after these steps, you can use any vnc client software to connect the xVNC server.
Access OpenSolaris domU guest
=============================
1. console access from domain 0
VNC for domU guest is not support in current xVM. You can use "virsh console domain-name" to get a console for the guest.
2. vnc access via xVNC
Follow the same steps as above. "root" login will be rejected on a non-system console. So create a unpriveleged user:
# useradd -d /export/home/allen -m allen
# passwd allen
本文介绍如何通过VNC访问OpenSolaris的HVM及domU虚拟机。对于HVM虚拟机,直接从域0进行VNC访问;对于domU虚拟机,则需要通过配置xVNC实现远程访问。文中还提供了创建非特权用户的步骤。

被折叠的 条评论
为什么被折叠?



