Hello David,

First I'd transform my script in base64 (cat script.sh | base64) then append 
that string into cloudmonkey similar to the below example:

deploy virtualmachine zoneid=8aadc947-d30e-4414-99f8-f8638df2eaf9 
hypervisor=KVM rootdisksize=20 
securitygroupids=241cbc66-a41b-476c-9d23-8dcc9489794e 
serviceofferingid=0d3e701e-a0e9-4f4e-99ac-cc0c479b4f47 startvm=true 
userdata=IyEvYmluL3NoCmVjaG8gbHVjaWFuID4gL2x1Y2lhbi50eHQK 
templateid=a1db134c-7211-4d08-9795-324af7982438 keypair=evenstar name=VM4 
displayname=VM4


HTH
Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

----- Original Message -----
> From: "Yacubovich, David" <dyacubov...@collegeboard.org>
> To: users@cloudstack.apache.org
> Sent: Sunday, 28 February, 2016 03:13:05
> Subject: Re: User data is not base64 encoded

> HI Simon,
> No, I didn't try to use CloudMonkey yet, just trying to see how the user data 
> is
> getting used. I did see the document you sent me already and does look like
> straight forward think. Could I ask you to give an example of how you using
> user-data, and how do you prepare it for the CloudMonkey?
> 
> Thanks David
> 
> From: Simon Weller <swel...@ena.com>
> Sent: Feb 27, 2016 6:18 PM
> To: users@cloudstack.apache.org
> Subject: Re: User data is not base64 encoded
> 
> David,
> 
> I can't speak to the GUI userdata, as I've never used it from the GUI. Have 
> you
> tried using CloudMonkey?
> 
> Here's some info related to userdata:
> 
> http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/latest/virtual_machines.html#user-data-and-meta-data
> 
> - Si
> 
> 
> ________________________________________
> From: Yacubovich, David <dyacubov...@collegeboard.org>
> Sent: Thursday, February 25, 2016 12:30 PM
> To: users@cloudstack.apache.org
> Subject: User data is not base64 encoded
> 
> Hello All,
> I am trying to test the use of userdata on CS 4.6. I am creating new instance
> from the UI and I paste the base64 encoded string into the userdata box. But I
> get this error every time. I can't find any examples of how to use userdata
> online. Can someone please give me an example of how this should work?
> 
> Here is m example:
> 
> # echo "env: poclab
> container: tomcat" | base64
> ZW52OiBwb2NsYWIKY29udGFpbmVyOiB0b21jYXQK
> 
> And I paste this string into userdata box.
> 
> Thanks,
> David

Reply via email to