DataSourceNotFoundException - cloud-init fails for cloud-images VHD image with nova-hyperv as compute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Invalid
|
Undecided
|
Unassigned | ||
cloud-init |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I tried using the VHD image from the https:/
In the console.log for the instance on the nova-hyperv unit, I see this error:
* Stopping System V runlevel compatibility^
Can not apply stage final, no datasource found! Likely bad things to come!^M
-------
Traceback (most recent call last):^M
File "/usr/bin/
init.fetch()^M
File "/usr/lib/
return self._get_
File "/usr/lib/
pkg_list)^M
File "/usr/lib/
raise DataSourceNotFo
DataSourceNotFo
-------
^M^M
This was recreated by Cloudbase, and this was their observation:
"So apparently the trusty VHD image from cloud-images (https:/
Wondering if that’s on purpose because the cloud image description says "HyperV images for use with Microsoft Azure or SCVMM".
So I ended up converting the Qcow2 trusty cloud image (which I knew it is working with OpenStack) into VHDx:
qemu-img convert -f qcow2 -O vhdx trusty-
And upload it into glance:
glance image-create –name trusty-hyperv --file ./trusty-
And then boot a VM and everything went fine. I was able to ping/SSH the VM."
It also worked for me when I tried the qemu-img converson.