1 | initial version |
Hello, and thanks for running Cloudbase-init!
The error would indicate that Azure did not set up any metadata sources for the VM, as it will only do so for VM images which have been both sysprep'd and generalized, so my current suspicion is that there was some misstep in the image building process.
I can confirm that Cloudbase-init successfully boots and sets up SSH/WinRM on Server 2022 on Azure with a freshly-built image, so I'm not sure what might have caused your exact issue.
Seeing as through the process of building Azure VM images is finicky and prone to issues, I recommend you try to automate as many steps of it as possible, and preferably directly on Azure instead of doing it locally and uploading a VHD.
You may find an unofficial set of Packer configurations in this repository maintained by a colleague of mine.
After installing Packer and the Azure az
CLI on your host machine, please follow the instructions shown in the README of the /packer
directory to build the image directly on Azure.
Some notes:
- az vm user update -g $RG_NAME -n $VM_NAME -u $ADMIN_USERNAME -p $ADMIN_PASSWORD
1.1.4
)Please let us know if you were able to successfully build/run your image.
Additionally, for posterity, could you please provide full details on your broken image like the build versions of Windows and Cloudbase-init, as well as exactly how you installed and configured Cloudbase-init within the image?
2 | No.2 Revision |
Hello, and thanks for running Cloudbase-init!
The error would indicate that Azure did not set up any metadata sources for the VM, as it will only do so for VM images which have been both sysprep'd and generalized, so my current suspicion is that there was some misstep in the image building process.
I can confirm that Cloudbase-init successfully boots and sets up SSH/WinRM on Server 2022 on Azure with a freshly-built image, so I'm not sure what might have caused your exact issue.
Seeing as through the process of building Azure VM images is finicky and prone to issues, I recommend you try to automate as many steps of it as possible, and preferably directly on Azure instead of doing it locally and uploading a VHD.
You may find an unofficial set of Packer configurations in this repository maintained by a colleague of mine.
After installing Packer and the Azure az
CLI on your host machine, please follow the instructions shown in the README of the /packer
directory to build the image directly on Azure.
Some notes:
- az vm user update -g $RG_NAME -n $VM_NAME -u $ADMIN_USERNAME -p $ADMIN_PASSWORD
1.1.4
)Please let us know if you were able to successfully build/run your image.
Additionally, for posterity, could you please provide full details on your broken image like the build versions of Windows and Cloudbase-init, as well as exactly how you installed and configured Cloudbase-init within the image?
3 | No.3 Revision |
Hello, and thanks for running Cloudbase-init!
The error would indicate that Azure did not set up any metadata sources for the VM, as it will only do so for VM images which have been both sysprep'd and generalized, so my current suspicion is that there was some misstep in the image building process.
I can confirm that Cloudbase-init successfully boots and sets up SSH/WinRM on Server 2022 on Azure with a freshly-built image, so I'm not sure what might have caused your exact issue.
Seeing as through the process of building Azure VM images is finicky and prone to issues, I recommend you try to automate as many steps of it as possible, and preferably directly on Azure instead of doing it locally and uploading a VHD.
You may find an unofficial set of Packer configurations in this repository maintained by a colleague of mine.
After installing Packer and the Azure az
CLI on your host machine, please follow the instructions shown in the README of the /packer
directory to build the image directly on Azure.
Some notes:
- az vm user update -g $RG_NAME -n $VM_NAME -u $ADMIN_USERNAME -p $ADMIN_PASSWORD
1.1.4
)Please let us know if you were able to successfully build/run your image.
Additionally, for posterity, could you please provide full details on your broken image like the build versions of Windows and Cloudbase-init, as well as exactly how you installed and configured Cloudbase-init within the image?
EDIT: removed note on inject_user_pass
setting, since the Cloudbase-init config in the linked repository has now been changed to always inject the password.
4 | No.4 Revision |
Hello, and thanks for running Cloudbase-init!
The error would indicate that Azure did not set up any metadata sources for the VM, as it will only do so for VM images which have been both sysprep'd and generalized, so my current suspicion is that there was some misstep in the image building process.
I can confirm that Cloudbase-init successfully boots and sets up SSH/WinRM on Server 2022 on Azure with a freshly-built image, so I'm not sure what might have caused your exact issue.
Seeing as through the process of building Azure VM images is finicky and prone to issues, I recommend you try to automate as many steps of it as possible, and preferably directly on Azure instead of doing it locally and uploading a VHD.
You may find an unofficial set of Packer configurations in this repository maintained by a colleague of mine.
After installing Packer and the Azure az
CLI on your host machine, please follow the instructions shown in the README of the /packer
directory to build the image directly on Azure.
Some notes:
1.1.4
)Please let us know if you were able to successfully build/run your image.
Additionally, for posterity, could you please provide full details on your broken image like the build versions of Windows and Cloudbase-init, as well as exactly how you installed and configured Cloudbase-init within the image?
EDIT: removed note on inject_user_pass
setting, since the Cloudbase-init config in the linked repository has now been changed to always inject the password.