Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podvm image with packer is failed #1616

Closed
liudalibj opened this issue Dec 6, 2023 · 0 comments · Fixed by #1617
Closed

podvm image with packer is failed #1616

liudalibj opened this issue Dec 6, 2023 · 0 comments · Fixed by #1617
Assignees
Labels
bug Something isn't working podvm Related to podvm images

Comments

@liudalibj
Copy link
Member

Today when I try to build podvm ubuntu image within container with pakcer, I met follow error:

[2023-12-06T10:23:27.020Z] #14 127.6 packer build -var qemu_image_name=podvm-73982f5-dirty-s390x.qcow2 -var cloud_image_url=https://cloud-images.ubuntu.com/releases/focal/release-20230107/ubuntu-20.04-server-cloudimg-s390x.img -var cloud_image_checksum=sha256:24673aa86785573d3a92e15166ff81beff88cbb0abc01938f156eb1332e87cd3 -var se_boot= -var machine_type=s390-ccw-virtio -var qemu_binary=qemu-system-s390x qcow2/ubuntu
[2023-12-06T10:23:27.020Z] #14 127.7 Error: Unknown source type qemu
[2023-12-06T10:23:27.020Z] #14 127.7 
[2023-12-06T10:23:27.020Z] #14 127.7   on qcow2/ubuntu/qemu-ubuntu.pkr.hcl line 55:
[2023-12-06T10:23:27.020Z] #14 127.7   (source code not available)
[2023-12-06T10:23:27.020Z] #14 127.7 
[2023-12-06T10:23:27.020Z] #14 127.7 The source qemu is unknown by Packer, and is likely part of a plugin that is not
[2023-12-06T10:23:27.020Z] #14 127.7 installed.
[2023-12-06T10:23:27.020Z] #14 127.7 You may find the needed plugin along with installation instructions documented
[2023-12-06T10:23:27.020Z] #14 127.7 on the Packer integrations page.
[2023-12-06T10:23:27.020Z] #14 127.7 
[2023-12-06T10:23:27.020Z] #14 127.7 https://developer.hashicorp.com/packer/integrations?filter=qemu
[2023-12-06T10:23:27.020Z] #14 127.7 
[2023-12-06T10:23:27.020Z] #14 127.7 
[2023-12-06T10:23:27.020Z] #14 127.8 make: *** [Makefile:78: podvm-73982f5-dirty-s390x.qcow2] Error 1
[2023-12-06T10:23:30.329Z] #14 ERROR: process "/bin/sh -c cd cloud-api-adaptor/podvm &&      make image" did not complete successfully: exit code: 2
[2023-12-06T10:23:30.329Z] ------
[2023-12-06T10:23:30.329Z]  > [podvm_builder 8/8] RUN cd cloud-api-adaptor/podvm &&      make image:
[2023-12-06T10:23:30.329Z] 127.7 
[2023-12-06T10:23:30.330Z] 127.7 The source qemu is unknown by Packer, and is likely part of a plugin that is not
[2023-12-06T10:23:30.330Z] 127.7 installed.
[2023-12-06T10:23:30.330Z] 127.7 You may find the needed plugin along with installation instructions documented
[2023-12-06T10:23:30.330Z] 127.7 on the Packer integrations page.
[2023-12-06T10:23:30.330Z] 127.7 
[2023-12-06T10:23:30.330Z] 127.7 https://developer.hashicorp.com/packer/integrations?filter=qemu
[2023-12-06T10:23:30.330Z] 127.7 
[2023-12-06T10:23:30.330Z] 127.7 
[2023-12-06T10:23:30.330Z] 127.8 make: *** [Makefile:78: podvm-73982f5-dirty-s390x.qcow2] Error 1
[2023-12-06T10:23:30.330Z] ------
[2023-12-06T10:23:30.330Z] Dockerfile.podvm:51
[2023-12-06T10:23:30.330Z] --------------------
[2023-12-06T10:23:30.330Z]   50 |     # To rebuild everything update to "make FORCE=true image"
[2023-12-06T10:23:30.330Z]   51 | >>> RUN cd cloud-api-adaptor/podvm && \
[2023-12-06T10:23:30.330Z]   52 | >>>      make image
[2023-12-06T10:23:30.330Z]   53 |     
[2023-12-06T10:23:30.330Z] --------------------
[2023-12-06T10:23:30.330Z] ERROR: failed to solve: process "/bin/sh -c cd cloud-api-adaptor/podvm &&      make image" did not complete successfully: exit code: 2
[2023-12-06T10:23:30.330Z] make: *** [Makefile:227: podvm-image] Error 1

Checked https://developer.hashicorp.com/packer/integrations/hashicorp/qemu
we need install qemu plugin before build the podvm image.

@liudalibj liudalibj self-assigned this Dec 6, 2023
@liudalibj liudalibj added bug Something isn't working podvm Related to podvm images labels Dec 6, 2023
liudalibj pushed a commit to liudalibj/cloud-api-adaptor that referenced this issue Dec 6, 2023
- install qemu plugin after packer 1.10.0-1

fixes confidential-containers#1616

Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
liudalibj pushed a commit to liudalibj/cloud-api-adaptor that referenced this issue Dec 6, 2023
- install qemu plugin after packer 1.10.0-1

fixes confidential-containers#1616

Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
liudalibj pushed a commit to liudalibj/cloud-api-adaptor that referenced this issue Dec 6, 2023
- install qemu plugin after packer 1.10.0-1

fixes confidential-containers#1616

Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
liudalibj pushed a commit to liudalibj/cloud-api-adaptor that referenced this issue Dec 6, 2023
- use the packer version 1.9.4-1, the version which still under the MPL license

fixes confidential-containers#1616

Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
wainersm pushed a commit that referenced this issue Dec 6, 2023
- use the packer version 1.9.4-1, the version which still under the MPL license

fixes #1616

Signed-off-by: Da Li Liu <liudali@cn.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working podvm Related to podvm images
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant