Correct, that's an LX branded zone. (
https://wiki.smartos.org/display/DOC/LX+Branded+Zones)

It does appear that https://wiki.smartos.org/display/DOC/vmadm%281m%29 is
out of sync with https://smartos.org/man/1m/vmadm


On Mon, Oct 10, 2016 at 1:52 PM, Gjermund Gusland Thorsen <
[email protected]> wrote:

> From the documentation: vmtype: OS,KVM
>
> https://wiki.smartos.org/display/DOC/vmadm%281m%29
>
> LX is neither OS nor KVM, right?
>
> G
>
> On 10 Oct, 2016, at 13:04, 杨武 <[email protected]> wrote:
>
> > hi, all
> >
> >      I want to inject username and password when creating  LX zone.
> >
> >      Here is LX json file :
> >
> > {
> >  "brand": "lx",
> >  "image_uuid": "eb4128ec-cf12-11e4-960d-8780cec6463f",
> >  "alias": "lx-centos",
> >  "hostname": "lx-brand",
> >  "kernel_version": "3.16.0",
> >  "max_physical_memory": 512,
> >  "quota": 10,
> >  "resolvers": ["8.8.8.8", "208.67.220.220"],
> >
> >  "internal_metadata": {
> >   "root_pw": "123456",
> >   "admin_pw": "123456"
> > },
> >  "customer_metadata" : {
> >    "root_authorized_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ
> CoipevAk8kobTro9Kg6zpOE0Ow9zN8EeQRAahKR3zwXtAQEk+pqHrk+MJZCQkc8O/
> T9xKclF5JFPc49odRrMV4llKrObsfkPKE0AQJgo4fzKlpNKfC6hkhfc21xBL
> ds4lQrSpxebAg4y/8KsPYjwSOmS772/iPIKtbyzYdGEegiXi5S7zSRIs0vjFD
> YLXzPYaR5kgC+Tfee1z5CnR/d7DdWUiCe3RI+7TjCvHAWWuWpWeJLiN6p/
> OBHseL4LjJrnxzza0by7BUSMWeg0QGd+MMLv4lr7Nc2cv3gAFCf0ZBm7BxMm7N
> ZO8zthd7e3BCf6R12afDTSPz7MUNv5R/fMdz [email protected]",
> >    "user-script" : "sed -i.bak  's/PasswordAuthentication
> no/PasswordAuthentication yes/g' /etc/ssh/sshd_config; service sshd restart"
> > },
> >  "nics": [
> >   {
> >     "nic_tag": "admin",
> >     "ip": "192.168.66.146",
> >     "netmask": "255.255.255.0",
> >     "gateway": "192.168.66.1"
> >   }
> >  ]
> > }
> >
> >
> > I  have injected  password successfully for the native zone and KVM
> virtual machine.
> >
> > But for LX zone,  only inject key successfully  , but inject password
> failed.
> >
> >
> > Thanks!
> >
> >
> > 杨武
> >
> > 电话:18501603354
> > smartos-discuss | Archives  | Modify Your Subscription
> 
> 



-------------------------------------------
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

Reply via email to