Giter Club home page Giter Club logo

packer-debian10's People

Contributors

eaksel avatar erriez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

packer-debian10's Issues

Feature request: Add Debian 11 Bullseye

Add configuration for Debian 11 Bullseye.

I already have this up and running and can provide a MR, but previous reported issues and pull requests needs to be merged first.

Cannot build two VM's simultaneously

Default build directory is output-BUILDNAME. Starting to concurrent builds results in an error message:
Build 'virtualbox-iso' errored after 831 milliseconds 807 microseconds: Output directory exists: output-virtualbox-iso.

I can provide a MR to address this, but previous reported issues and pull requests needs to be merged first.

can't run with vmware

Hi, I'm trying to run with "packer build -only=vmware-iso debian10.json" but I get this error:

packer build -only=vmware-iso debian10.json
vmware-iso: output will be in this color.

1 error occurred:
* unknown configuration key: "ssh_wait_timeout"; raws is []interface {}{map[string]interface {}{"boot_command":[]interface {}{"", "auto ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", ""}, "boot_wait":"5s", "disk_size":"40960", "disk_type_id":"0", "guest_os_type":"debian10-64", "headless":false, "http_directory":"http", "iso_checksum":"6a901b5abe43d88b39d627e1339d15507cc38f980036b928f835e0f0e957d3d8", "iso_checksum_type":"sha256", "iso_url":"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso", "shutdown_command":"echo 'packer'|sudo -S shutdown -P now", "ssh_password":"packer", "ssh_port":22, "ssh_username":"packer", "ssh_wait_timeout":"10000s", "vm_name":"debian-10.3.0-amd64", "vmx_data":map[interface {}]interface {}{"memsize":"1024", "numvcpus":"1", "virtualHW.version":"14"}}, map[string]interface {}{"packer_build_name":"vmware-iso", "packer_builder_type":"vmware-iso", "packer_debug":false, "packer_force":false, "packer_on_error":"", "packer_template_path":"D:\Work\packer-Debian10\debian10.json", "packer_user_variables":map[interface {}]interface {}{"boot_wait":"5s", "disk_size":"40960", "iso_checksum":"6a901b5abe43d88b39d627e1339d15507cc38f980036b928f835e0f0e957d3d8", "iso_checksum_type":"sha256", "iso_url":"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso", "memsize":"1024", "numvcpus":"1", "ssh_password":"packer", "ssh_username":"packer", "vm_name":"debian-10.3.0-amd64"}}}

and ctx data is map[interface {}]interface {}(nil)


I have vmware workstation installed, tried running from both Windows10 / Debian10 but same error, works with virtualbox though.

Link up failed Debian 10 installation

Ethernet link does not come up after first boot imported OVF in VirtualBox.

@eaksel In the mean time I found the root cause and can provide a MR, but Issues #1 and #2 needs to be merged first, otherwise I'll go ahead with my own project. Thanks.

Disable Grub startup timeout

Grub boot menu is started by default with a timeout value of 5 seconds. This can be changed to value 0 and is useful to speed-up the boot process for running automated tests. Probably nobody uses Grub boot menu in a VM.

scripts/setup.yml

  - name: Disable quiet boot mode and set timeout
    lineinfile:
      path: /etc/default/grub
      regexp: "{{ item.regexp }}"
      line: "{{ item.line }}"
      state: present
    with_items:
      - {regexp: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet"', line: 'GRUB_CMDLINE_LINUX_DEFAULT=""'}
      - {regexp: 'GRUB_TIMEOUT="5"', line: 'GRUB_TIMEOUT="0"'}

Screenshot from 2021-09-01 23-16-57

@eaksel Do you like this idea? Do you want me to create a PR?

PS: Sorry to bother you with PR's, this is a very useful project. :-)

VirtualBox UEFI starts Shell> after OVF import

@eaksel Thanks for creating this project. I've successfully built a Debian 10.10.0-amd64 VirtualBox VM, but after importing the OVF it starts the UEFI shell:

Screenshot from 2021-08-31 10-52-06

Latest VirtualBox version on Ubuntu 21.04: 6.1.26 r145957.

Shell> fs0:
FS0:\> dir
ls: File Not Found - 'FS0:\'

Do you have a suggestion how to automatically start the OS after power-on? Thanks!

VirtualBox debian10.json build: uto... failed: No such file or directory

Building debian10.json with debian-10.10.0-amd64-netinst.iso:

$ packer build -only=virtualbox-iso debian10.json
virtualbox-iso: output will be in this color.

==> virtualbox-iso: Retrieving Guest additions
==> virtualbox-iso: Trying /usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: Trying /usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: /usr/share/virtualbox/VBoxGuestAdditions.iso => /usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
==> virtualbox-iso: Trying https://cdimage.debian.org/mirror/cdimage/archive/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso
==> virtualbox-iso: Trying https://cdimage.debian.org/mirror/cdimage/archive/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso?checksum=sha256%3Ac433254a7c5b5b9e6a05f9e1379a0bd6ab3323f89b56537b684b6d1bd1f8b6ad
    virtualbox-iso: debian-10.10.0-amd64-netinst.iso 336.00 MiB / 336.00 MiB [==================================] 100.00% 29s
==> virtualbox-iso: https://cdimage.debian.org/mirror/cdimage/archive/10.10.0/amd64/iso-cd/debian-10.10.0-amd64-netinst.iso?checksum=sha256%3Ac433254a7c5b5b9e6a05f9e1379a0bd6ab3323f89b56537b684b6d1bd1f8b6ad => /home/erwin/src/packer-Debian10/packer_cache/d90446f610ce2bf4e4e7ad48a2fa68d698c5484d.iso
==> virtualbox-iso: Starting HTTP server on port 8219
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive output-virtualbox-iso/debian-10.9.0-amd64.vdi with size 40960 MiB...
==> virtualbox-iso: Mounting ISOs...
    virtualbox-iso: Mounting boot ISO...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 2323)
==> virtualbox-iso: Executing custom VBoxManage commands...
    virtualbox-iso: Executing: modifyvm debian-10.9.0-amd64 --memory 1024
    virtualbox-iso: Executing: modifyvm debian-10.9.0-amd64 --cpus 1
==> virtualbox-iso: Starting the virtual machine...
==> virtualbox-iso: Waiting 5s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Using SSH communicator to connect: 127.0.0.1
==> virtualbox-iso: Waiting for SSH to become available...

VirtualBox guest shows:

boot: uto preseed/url=http://10.0.2.2:8219/preseed.cfg
Loading uto.... failed: No such file or directory
boot: 

No further output.

Screenshot from 2021-08-31 11-02-26

Any suggestion how to proceed?

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.