Quantcast
Channel: Active questions tagged vagrant - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 64

Packer Ubuntu 21.10 initramfs unpacking failed write error

$
0
0

I'm trying to create a VMI using the official Ubuntu 21.10 iso using Packer and export it to Vagrant box and, if possible, to a simple ISO that I can install manually on another computer.

I'm getting the following error:Output

I'm using the following configuration (preseed taken from official LTS, not sure if it is suitable for 21.10):

config.json

{"builders": [    {"boot_command": ["<esc><wait>","<esc><wait>","<enter><wait>","/install/vmlinuz<wait>"," initrd=/install/initrd.gz"," auto-install/enable=true"," debconf/priority=critical"," netcfg/get_domain=vm<wait>"," netcfg/get_hostname=vagrant<wait>"," grub-installer/bootdev=/dev/sda<wait>"," preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>"," -- <wait>","<enter><wait>"      ],"boot_wait": "10s","guest_os_type": "ubuntu-64","guest_additions_mode": "disable","disk_size": 8192,"http_directory": "http","iso_url": "https://releases.ubuntu.com/21.10/ubuntu-21.10-desktop-amd64.iso","iso_checksum": "sha256:f8d3ab0faeaecb5d26628ae1aa21c9a13e0a242c381aa08157db8624d574b830","shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now","ssh_password": "vagrant","ssh_username": "vagrant","ssh_wait_timeout": "10000s","type": "virtualbox-iso","vm_name": "test-ubuntu"    }  ],"post-processors": [    { "type": "vagrant",  "compression_level": 1,  "override": {    "virtualbox": {      "compression_level": 0            }        }    }  ]}

./http/preseed.cfg

d-i debian-installer/locale string en_USd-i console-setup/ask_detect boolean falsed-i keyboard-configuration/xkb-keymap select usd-i netcfg/choose_interface select autod-i netcfg/get_hostname string unassigned-hostnamed-i netcfg/get_domain string unassigned-domaind-i netcfg/wireless_wep stringd-i mirror/country string manuald-i mirror/http/hostname string archive.ubuntu.comd-i mirror/http/directory string /ubuntud-i mirror/http/proxy stringd-i user-setup/encrypt-home boolean falsed-i clock-setup/utc boolean trued-i time/zone string US/Easternd-i clock-setup/ntp boolean trued-i partman-auto/method string lvmd-i partman-lvm/device_remove_lvm boolean trued-i partman-md/device_remove_md boolean trued-i partman-lvm/confirm boolean trued-i partman-lvm/confirm_nooverwrite boolean trued-i partman-auto/choose_recipe select atomicd-i partman-partitioning/confirm_write_new_label boolean trued-i partman/choose_partition select finishd-i partman/confirm boolean trued-i partman/confirm_nooverwrite boolean trued-i partman-md/confirm boolean trued-i partman-partitioning/confirm_write_new_label boolean trued-i partman/choose_partition select finishd-i partman/confirm boolean trued-i partman/confirm_nooverwrite boolean truetasksel tasksel/first multiselect ubuntu-desktopd-i grub-installer/only_debian boolean trued-i grub-installer/with_other_os boolean trued-i finish-install/reboot_in_progress note

I'm pretty sure the problem is in something petty, but I can't figure it out.


Viewing all articles
Browse latest Browse all 64

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>