“initramfs unpacking failed: write error” due to stupid typo in virsh-install

i’ve been trying to set up a new vm using:

virt-install --name manticore1.test --vcpus 4 --ram 128 --disk /mnt/kvm/manticore1.test/vda.qcow2,bus=virtio -c /mnt/iso/firmware-11.0.0-amd64-netinst.iso --noautoconsole --accelerate --network=bridge:br0,model=virtio --graphics vnc --os-type linux

trying and trying, and each time i got the same boot failure:

Initramfs unpacking failed: write error
Failed to execute / init (error —2)
Kernel panic — not syncing: No working init found.  Try passing init= option to kerne
l. See Linux Documentation/admin—guide/init .rst for guidance .
CPU: 3 PID: 1 Comm: swapper/0 Not tainted 5.10.O-8-amd64 "1 Debian 5.10.46-3
Hardware name: QEMIJ Standard PC (i440FX + PHX, 1336), BIOS 1.12.0-1 04/01/2014
Call Trace:
dump_stack+Ox6b/Ox83
? rest_init+Ox70/Oxb4
panic +0x101/OxZd7
? kernel_execue+Ox14a/Ox1cO
? rest_init+Oxb4/Oxb4
kernel_init+Ox101/Ox10c
ret_from_fork+OxZZ/Ox30
Kernel Offset: OxZ3eOOOOO from Oxffffffff81000000 (relocation range: Oxffffffff80000000-oxffffffffbfffffff)
———[ end Kernel panic — not syncing: No working init found. Try passing init= option 
to kernel. See Linux Documentation/admin—guide/init .rst for guidance. ]——

root cause? allocating 128MB instead of intended 128GB of RAM for the VM. hopefully this post helps some poor soul who runs into a similar issue.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

(Spamcheck Enabled)