Hello,
I am using xml-rpc api’s to create VM. Here I am using template to set the password. the problem is it is not setting the password. Please help me for this template.
Template as follows
sm-vm222112048x86_64<FIRMWARE_SECURE>YES</FIRMWARE_SECURE><IMAGE_ID>1</IMAGE_ID>61440FILE<TEMPLATE_ID>1</TEMPLATE_ID>0.0.0.0VNC211sushil<START_SCRIPT_BASE64>startup_script_in_base64_format</START_SCRIPT_BASE64>YESYES<ONEGATE_ENDPOINT>http://onegate-endpoint.com:5030</ONEGATE_ENDPOINT><PASSWORD_BASE64>base64_encoded_password</PASSWORD_BASE64>211vn-01private-vn-01
Hi,
could you block-quote the data as currntly it is not readable. You could use the preview pane to see what others will see…
<TEMPLATE>
<NAME>sm-vm</NAME>
<CPU>2</CPU>
<VCPU>2</VCPU>
<SOCKETS>2</SOCKETS>
<CORES>1</CORES>
<THREADS>1</THREADS>
<MEMORY>2048</MEMORY>
<OS>
<ARCH>x86_64</ARCH>
<FIRMWARE_SECURE>YES</FIRMWARE_SECURE>
</OS>
<DISK>
<IMAGE_ID>1</IMAGE_ID>
<SIZE>61440</SIZE>
<TYPE>FILE</TYPE>
</DISK>
<TEMPLATE_ID>1</TEMPLATE_ID>
<GRAPHICS>
<LISTEN>0.0.0.0</LISTEN>
<TYPE>VNC</TYPE>
</GRAPHICS>
<CONTEXT>
<SOCKETS>2</SOCKETS>
<CORES>1</CORES>
<THREADS>1</THREADS>
<USERNAME>sushil</USERNAME>
<START_SCRIPT_BASE64>start_script_base64</START_SCRIPT_BASE64>
<TOKEN>YES</TOKEN>
<NETWORK>YES</NETWORK>
<ONEGATE_ENDPOINT>http://onegate-endpoint:5030</ONEGATE_ENDPOINT>
<PASSWORD_BASE64>encoded_base64_password</PASSWORD_BASE64>
</CONTEXT>
<TOPOLOGY>
<SOCKETS>2</SOCKETS>
<CORES>1</CORES>
<THREADS>1</THREADS>
</TOPOLOGY>
<NIC>
<NETWORK>vn-01</NETWORK>
<NAME>private-vn-01</NAME>
</NIC>
</TEMPLATE>