is there a way to fallback on None Datasource None during ds-identify instead of disabling cloud-init #6687
Unanswered
grosbaloon
asked this question in
Q&A
Replies: 1 comment
-
It's in the docs. Look up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
when no data source is provided, is there a way to fallback on Datasource none during ds-identify instead of disabling cloud-init ?
Let me explain.
Download ubuntu cloud image and change root password (without using cloud init)
start image without data source :
qemu-system-x86_64 -m 2G -enable-kvm -cpu host -smp 4 -hda noble-server-cloudimg-amd64.img -netdev user,id=n1,hostfwd=tcp::60671-:22 -device virtio-net,netdev=n1,addr=03 -device e1000,netdev=n2,addr=04 -netdev user,id=n2 -device e1000,netdev=n3,addr=05 -netdev user,id=n3 -netdev user,id=n4 -net none -display none -nographicds-identify will not find any datasource and cloud init will be disabled
because of ds-identify default policy : search,found=all,maybe=none,notfound=disabled
I tried to change the policy to search,found=all,maybe=all,notfound=enabled in /etc/cloud/ds-identify.cfg
In that case, ds-identify will not find any datasource, cloud-init is enabled.
At runtime, cloud-init scan all possible datasources (takes a long time) and
finally fallback to datasource none.
and have the warning:
Is there any configuration option to fallback on datasource none during ds-identify instead ?
Beta Was this translation helpful? Give feedback.
All reactions