Failure of adt-buildvm-ubuntu-cloud after qemu isn't installed causes re-download of image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
$ adt-buildvm-
WARNING: python-distro-info not installed, falling back to determining default release from currently installed release
Downloading http://
283.8/285.2 MB (100%)
Download successful.
Resizing image, adding 4G...
Image resized.
Building seed image...
Booting image to run cloud-init...
Traceback (most recent call last):
File "/usr/bin/
boot_
File "/usr/bin/
'-drive', 'file=%
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'qemu-system-
It's OK that qemu wasn't found - that part was my fault. But I didn't expect it to spend minutes downloading (slow connection) and *then* fail with this, yet not cache the image so retrying is painful.
Can we do any of:
1) Cache downloaded images before this failure
2) Detect that qemu isn't available and fail before download, given that qemu isn't a Depends or Recommends.
Version: 3.13
Thanks
And I get a second failure after fixing the first one, requiring yet another re-download after I added myself to the kvm group:
Resizing image, adding 4G... amd64-cloud. img
Image resized.
Building seed image...
Booting image to run cloud-init...
Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
qemu failed with status 1
Moving image into final destination ./adt-wily-