VMware: boot from sparse image results in OS not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I am attempting to boot an instance from the cirros image found here: http://
So I originally imported the image without setting any of the vmware properties. So when I go to boot from this image, I get "Operating System not found" in the VM.
This was my user error, so I then used the glance command line image-update to set those properties after the image was already created. Then I tried another boot from this image. I got the same result, "Operating System not found".
However, if I set the properties for the image at image-create time, everything works. It also works if I do not boot the image before doing an image-update. So definitely seems as though some of the metadata is cached.
To Recreate:
- use glance image-create to import image: http://
- boot from this image, notice it fails to find the OS as expected
- use glance image-update to modify the image metadata so that it properly has the --property vmware_
- boot from this image again, notice it still fails, which is unexpected.
Changed in nova: | |
status: | New → Triaged |
Changed in nova: | |
status: | Triaged → Confirmed |
Changed in nova: | |
assignee: | Arnaud Legendre (arnaudleg) → nobody |
Changed in nova: | |
assignee: | Giridhar Jayavelu (gjayavelu) → nobody |
status: | In Progress → Confirmed |
I hit this issue as well. It is time consuming for large images to re-create them with correct disk type.
Currently, we look for cached image file and if it exists we proceed without creating sparse image and continue using the flat image. I'm thinking we can address this by appending disk type in the cached image folder name. That way, a new folder and sparse image will be created.