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