> On Sep 28, 2016, at 3:06 AM, Frank Yu <[email protected]> wrote:
>
> Hi All,
>
>
> I met below error (as the pics show) when using VNC client connect to VNC
> server which was setup on LX Brand zones with dataset UUID
> 07b33b7a-27a3-11e6-816f-df7d94eea009(centos-7 20160601
> linux lx-dataset 2016-06-01),
>
> it works well if I setup the VNC Server on LX Brand zone created with UUID
> 5b7e86e4-2797-11e6-b7d7-cbe6a1a48791(centos-6 20160601 linux
> lx-dataset 2016-06-01)
>
> Anybody has met such case or anyone can provide some tips where the problem
> lay?
>
> <Screen Shot 2016-09-20 at 12.30.17 PM.png>
>
> Thanks
Hi Frank,
I know this doesn't answer your question, but it may answer the problem you're
trying to solve... It came to me as a complete surprise that VNC ever worked
at all in an LX zone. I've been using zlogin for LX branded zones just like
joyent branded zones. Moreover, I rarely have the need to zlogin as
customer_metadata / user-script works as expected.
Since Google is failing me at finding a good canned example, here's my local
variant on the theme:
"customer_metadata": {
"root_authorized_keys":
"ssh-rsa AAAAmyFirstSSHkey== rs@home key\nssh-rsa AAAAanotherSSHkey== rs@work",
"user-script" : "mkdir /.ct-configured >/dev/null 2>&1 && ( /usr/sbin/mdata-
get root_authorized_keys > ~root/.ssh/authorized_keys ; /usr/sbin/mdata-get root
_authorized_keys > ~admin/.ssh/authorized_keys ; echo 'KbdInteractiveAuthenticat
ion no' >> /etc/ssh/sshd_config ; service ssh restart )"
}
Beware that you don't want newlines inside your user-script payload (or your
root_authorized_keys payload, which will wrap around several lines with real
keys in it); I apologize for the mess created by my mail client insisting on
line wrap.
Hope this is helpful in some way...
-r
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com