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

Incorrect booted image after creating Qemu image #125

Open
junland opened this issue Feb 14, 2023 · 0 comments
Open

Incorrect booted image after creating Qemu image #125

junland opened this issue Feb 14, 2023 · 0 comments
Labels

Comments

@junland
Copy link

junland commented Feb 14, 2023

Overview of the Issue

This may or may not be related to issue #66, packer fails to boot into created VM image however boots into the downloaded ISO.
I've tried plugin versions 1.0.0 and the latest 1.0.9, however both give the same outcome.

Reproduction Steps

  1. Add answers.cfg to the http directory.
  2. Land the packer config with the 1.0.0 plugin as alpine-100.pkr.hcl
  3. Land the packer config with the 1.0.9 plugin as alpine-109.pkr.hcl
  4. Initialize both configs:
    a. packer init alpine-100.pkr.hcl
    b. packer init alpine-109.pkr.hcl
  5. Run the 1.0.0 plugin config.
    PACKER_LOG=1 packer build alpine-100.pkr.hcl
    
  6. Observe output and Qemu display.
  7. Run the 1.0.9 plugin config.
    PACKER_LOG=1 packer build alpine-109.pkr.hcl
    
  8. Observe output and Qemu display.

You will notice in both instances after the VM runs through the boot_steps process and reboots, that it goes back into the ISO without booting into the created image. I'm able to the confirm that both created VM disks (In this case, the qcow2 images) are able to boot just fine. It seems after the reboot, packer / packer-plugin-qemu is not able to drop the ISO file after it reboots.

Plugin and Packer version

From packer version

Packer v1.8.5

Two configs with the only diffrence being the Qemu plugin.

  • 1.0.0
  • 1.0.9

Simplified Packer Buildfile(s)

  • Packer config with 1.0.0 Qemu plugin - FILE
  • Packer config with 1.0.9 Qemu plugin - FILE
  • Alpine Linux answers file in directory http called answers.cfg - FILE

Operating system and Environment details

Fedora 37 LXQt Official Workstation Spin on x86_64 hardware

$> uname -a
Linux thinkpad 6.1.10-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Feb  6 23:56:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$> qemu-system-x86_64 -version
QEMU emulator version 7.0.0 (qemu-7.0.0-13.fc37)

Guest / Built OS is Alpine Linux using the Extended ISO, version 3.17.1 under the x86_64 arch.

Log Fragments and crash.log files

  • Using v1.0.0 QEMU plugin version - LOG
  • Using v1.0.9 QEMU plugin version - LOG
@junland junland added the bug label Feb 14, 2023
@junland junland changed the title Incorrect boot image after creating Qemu image Incorrect booted image after creating Qemu image Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant