Pass userdata with CMK

2020-09-02 Thread Poulpatine
Hi, I'm trying to pass userdata in cmk command line during virtual machine deployment but I can't figure how to do that. Among other tests, I've tried something like that in a very basic shell script: #!/bin/bash cli=cmk template=7bf01470-e3a5-4f37-b035-023c663c1b48 service=80b47022-a341-446f-a

Re: Pass userdata with CMK

2020-09-02 Thread Vivek Kumar
Hello, With the help of user data you can push you set of instructions to the VM while deploying VM. So let’s say you want to install any specific packages in the newly deployed VM, So instead of logging to the VM and download it manually you can pass the user-data to the VM while deploying the

Re: Pass userdata with CMK

2020-09-02 Thread David Jumani
Hi, You need to pass the userdata (not user-data) as a base64 encoded string (try https://www.base64encode.org/ or the base64 command on Linux). template=7bf01470-e3a5-4f37-b035-023c663c1b48 service=80b47022-a341-446f-a14a-128b85a099d0 zone=530cb1c3-1c90-4055-816e-3b58fbf9de91 keypair=mykey user

Re: Pass userdata with CMK

2020-09-02 Thread Poulpatine
Thanks for your help guys. It's working now. Here is my corrected script: #!/bin/bash cli=cmk template=7bf01470-e3a5-4f37-b035-023c663c1b48 service=80b47022-a341-446f-a14a-128b85a099d0 zone=530cb1c3-1c90-4055-816e-3b58fbf9de91 keypair=mykey userdata="$(base64 ./user-data)" $cli deploy virtualma

Re: Cloudstack + CEPH and Erasure Coding

2020-09-02 Thread Rafael Weingärtner
Erasure code has its ups and downs such as replication; the most interesting part is the reduction of the total volume you need, since it requires "less" volume of disks to store the same amount of data as in replication mode. CloudStack does not support it yet. To use erasure coding you need a re

Re: Cloudstack 4.11.3 to 4.13.1 SystemVMs Error

2020-09-02 Thread Ammad Syed
Guys, please advise how to troubleshoot this further ? How can i enable trace level debugging ? any help in this will be highly appreciated? Ammad > On 27-Aug-2020, at 1:41 PM, Vivek Kumar > wrote: > > Pardon, the whole mail chain was not visible so replied accordingly. It > seems like you

Re: Cloudstack 4.11.3 to 4.13.1 SystemVMs Error

2020-09-02 Thread Pearl d'Silva
Hi Ammad, Could you try re-injecting the keys into the systemVM, as this MAY happen due to stale id_rsa keys. Run the injectkeys.sh to inject the existing public ssh key into the authorized_keys file inside the systemvm.iso. Execute: /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.

Re: Cloudstack 4.11.3 to 4.13.1 SystemVMs Error

2020-09-02 Thread Andrija Panic
Ammad, please check what Pearl has suggested, but I think the correct syntax (different id_rsa,pub, specifically the one used by ACS) should be as following (you can always grep your older logs for "injectkey.sh" : /bin/bash /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh /var/clou