Install sdc-vmtools-windows (https://github.com/joyent/sdc-vmtools-windows 
<https://github.com/joyent/sdc-vmtools-windows>) in your image, and use 
"administrator_pw" as the key name instead of "administrator-pw".

The script that configures the Administrator password is here: 
https://github.com/joyent/sdc-vmtools-windows/blob/master/2012/standard/bin/setup.bat

-- 
Brian Bennett
Systems Engineer, Cloud Operations
Joyent, Inc. | www.joyent.com <http://www.joyent.com/>
> On Oct 29, 2016, at 1:52 AM, 杨武 <[email protected]> wrote:
> 
>  hi,all
> 
>   I want to inject password when creating  a  KVM windows  virtual machine.
> 
>   Here is  KVM windows  json file :
> 
> {
>   "brand": "kvm",
>   "resolvers": [
>     "208.67.222.222",
>     "8.8.4.4"
>   ],
>   "ram": "6144",
>   "vcpus": "4",
>   "nics": [
>     {
>       "nic_tag": "admin",
>       "ip": "10.75.1.124",
>  "gateway": "10.75.1.1",
>       "netmask": "255.255.255.0",
>       "model": "virtio",
>       "primary": true
>     }
>   ],
>   "customer_metadata": {
>   "administrator-pw": "123456"
> },
>   "disks": [
>     {
>       "image_uuid": "42fe0b48-77e4-11e5-b784-ff69edef1607",
>       "boot": true,
>       "model": "virtio"
>     }
>   ]
> }
> 
> 
>  I  have injected  password successfully for  KVM centos  virtual machine.
> 
> But creating  windows  virtual machine,  inject password failed.
> 
> Looking forward to your reply,thanks.
> 
> <pastedImage.png>
> 
> 
>  
> 
> 杨武
> 
> 电话:18501603354
> smartos-discuss | Archives 
> <https://www.listbox.com/member/archive/184463/=now>  
> <https://www.listbox.com/member/archive/rss/184463/26986985-d0246faa> | 
> Modify <https://www.listbox.com/member/?&;> Your Subscription  
> <http://www.listbox.com/>

Attachment: smime.p7s
Description: S/MIME cryptographic signature




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