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

Add serial mode in qemu builder #9927

Closed
ltrager opened this issue Sep 11, 2020 · 4 comments
Closed

Add serial mode in qemu builder #9927

ltrager opened this issue Sep 11, 2020 · 4 comments

Comments

@ltrager
Copy link
Contributor

ltrager commented Sep 11, 2020

Description

Packer is often run in environments that do not have access to a UI. While Packer supports running headless no output is given to the terminal. A template can be constructed today that shows serial output by adding "qemuargs": [[ "-serial", "stdio" ]] and running Packer with PACKER_LOG=1. See the CentOS 8 Packer template as an example.

While this works "2020/09/11 02:04:16 packer-builder-qemu plugin: Qemu stdout" is often mixed in with output which makes things hard to read. Ideally an official option would be added to Packer which adds "-serial stdio" to the qemu arguments and doesn't prepend each line.

Use Case(s)

  1. I am working on using gh:canonical/packer-maas to produce the public CentOS images for MAAS. I have been given a Jenkins server to do this but have no access to the Jenkins builders. This makes debugging very hard as I can't VNC in, all I get is the terminal output.
  2. Users of gh:canonical/packer-maas run Packer on Ubuntu desktop, remotely on an Ubuntu server over SSH, or in a Jenkins job. As such I have gh:canonical/packer-maas set to run headless. I've been asked to show progress while Packer is running as well as add the ability for users to send me logs.

Potential configuration

"serial": "true/false"

@sylviamoss
Copy link
Member

This sounds like a good idea. We’ll take a look when we get a chance.

@MaxPeal
Copy link

MaxPeal commented Jan 8, 2021

@sylviamoss @azr any Update on this?

@ghost
Copy link

ghost commented Apr 19, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-qemu#5 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-qemu#5.

@ghost ghost closed this as completed Apr 19, 2021
@ghost
Copy link

ghost commented May 20, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators May 20, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants