Git Product home page Git Product logo

Comments (8)

ChristianLempa avatar ChristianLempa commented on September 28, 2024 1

For me, this looks like an issue with starting the VM.
Can you check the following?

from boilerplates.

modem7 avatar modem7 commented on September 28, 2024 1

Totally missed the reply to this. Sorry!

All resolved, there were some issues in choose q35 machine type.

I'll post my new config at some point once I get it working as I've managed to do away with the defined SSH key

from boilerplates.

andrei-matei avatar andrei-matei commented on September 28, 2024

Are your storage pools named "Proxmox"? They are usually called local-lvm if it's a basic install and you have no share storage.
Also, maybe you can try to use disk format raw instead of qcow2. I had issues with that.

from boilerplates.

modem7 avatar modem7 commented on September 28, 2024

Are your storage pools named "Proxmox"? They are usually called local-lvm if it's a basic install and you have no share storage. Also, maybe you can try to use disk format raw instead of qcow2. I had issues with that.

Aye, the storage pool is "Proxmox" (not very creative I know :P) - it's a single disk, not shared storage:
image

Hmmm, raw has its issues tbf, qcow is far more preferable due to the additional abilities it has.

Now, the only caveat I can see on my setup, is that I'm not running packer on the Proxmox install, but inside a VM as I'm not really looking to bog down the Proxmox install with other tools not directly related to it.

from boilerplates.

andrei-matei avatar andrei-matei commented on September 28, 2024

Hmm, the other part of the file looks the same as mine and they are fairly simple. What version of Proxmox do you use? I have 7.2-11.

packer build -debug -var-file=../credentials.pkr.hcl ubuntu-server-jammy.pkr.hcl

Maybe try to add -debug after Packer build and see if you can get more info.

Best ,
Andrei

from boilerplates.

andrei-matei avatar andrei-matei commented on September 28, 2024

I just added the network part as it seems qemu-guest-agent fails to install without it. And the disk config. But I guess that should not create those issues.

#cloud-config
autoinstall:
  version: 1
  locale: en_US
  keyboard:
    layout: en
  network:
    version: 2
    ethernets:
      ens18:
        dhcp4: true
  ssh:
    install-server: true
    allow-pw: false
    disable_root: true
    ssh_quiet_keygen: true
    allow_public_ssh_keys: true
  packages:
    - curl
    - qemu-guest-agent
    - sudo
  storage:
    swap:
      size: 0
    config:
      - {ptable: gpt, path: /dev/vda, preserve: false, name: '', grub_device: true, type: disk, id: disk-vda}
      - {type: partition, number: 1, device: disk-vda, flag: bios_grub, size: 1M, id: vda-grub}
      - {type: partition, number: 2, device: disk-vda, flag: boot, size: 1G, id: vda-boot}
      - {type: partition, number: 3, device: disk-vda, size: -1, id: vda-lvm}
      - {type: lvm_volgroup, name: vg-ubuntu, devices: [vda-lvm], id: vg-ubuntu}
      - {type: lvm_partition, volgroup: vg-ubuntu, id: lv-root, name: lv-root, size: -1}
      - {type: format, fstype: ext4, volume: vda-boot, id: vda-boot-fs}
      - {type: format, fstype: xfs, volume: lv-root, id: lv-root-fs}
      - {type: mount, path: /, id: m-root, device: lv-root-fs}
      - {type: mount, path: /boot, id: m-boot, device: vda-boot-fs}
  user-data:
    package_upgrade: true
    timezone: Europe/Bucharest
    users:
      - name: devops
        groups: [adm, sudo]
        lock-passwd: false
        sudo: ALL=(ALL) NOPASSWD:ALL
        shell: /bin/bash
        #passwd: myPass
        ssh_authorized_keys:
          - myPublicKey

from boilerplates.

modem7 avatar modem7 commented on September 28, 2024

I just added the network part as it seems qemu-guest-agent fails to install without it. And the disk config. But I guess that should not create those issues.

Cheers for the config! I'll give it a whirl. I'm on 7.2-11 btw, same as yourself.

Hmmm, I'm wondering if the issue is to do with the authorised keys part on my end, will give that a try as well.

The debug just shows:

Debug mode enabled. Builds will not be parallelized.
ubuntu-server-jammy.proxmox.ubuntu-server-jammy: output will be in this color.

==> ubuntu-server-jammy.proxmox.ubuntu-server-jammy: Pausing after run of step 'StepDownload'. Press enter to continue.
==> ubuntu-server-jammy.proxmox.ubuntu-server-jammy: Pausing after run of step 'stepUploadISO'. Press enter to continue.

==> ubuntu-server-jammy.proxmox.ubuntu-server-jammy: Creating VM
==> ubuntu-server-jammy.proxmox.ubuntu-server-jammy: Starting VM
==> ubuntu-server-jammy.proxmox.ubuntu-server-jammy: Error starting VM: start failed: QEMU exited with code 1
==> ubuntu-server-jammy.proxmox.ubuntu-server-jammy: Stopping VM
==> ubuntu-server-jammy.proxmox.ubuntu-server-jammy: Deleting VM
==> ubuntu-server-jammy.proxmox.ubuntu-server-jammy: Pausing before cleanup of step 'stepUploadISO'. Press enter to continue.

So it looks like the VM is created, starts, then Proxmox comes up with the errors:

Nov 12 01:44:16 proxmox pvedaemon[366147]: start failed: QEMU exited with code 1
Nov 12 01:44:16 proxmox pvedaemon[2060577]: <packer@pve!packer> end task UPID:proxmox:00059643:0B5B9B7B:636EFA6F:qmstart:100:packer@pve!packer: start failed: QEMU exited with code 1
Nov 12 01:44:21 proxmox pvedaemon[366182]: start failed: QEMU exited with code 1
Nov 12 01:44:21 proxmox pvestatd[2060612]: VM 100 qmp command failed - VM 100 not running
Nov 12 01:44:21 proxmox pvedaemon[2060578]: <packer@pve!packer> end task UPID:proxmox:00059666:0B5B9D38:636EFA73:qmstart:100:packer@pve!packer: start failed: QEMU exited with code 1
Nov 12 01:44:25 proxmox pvedaemon[366237]: start failed: QEMU exited with code 1
Nov 12 01:44:25 proxmox pvedaemon[2060578]: <packer@pve!packer> end task UPID:proxmox:0005969D:0B5B9ECC:636EFA77:qmstart:100:packer@pve!packer: start failed: QEMU exited with code 1

from boilerplates.

ChristianLempa avatar ChristianLempa commented on September 28, 2024

Issue gone cold

from boilerplates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.