{"id":3244,"date":"2021-08-26T21:17:50","date_gmt":"2021-08-26T20:17:50","guid":{"rendered":"https:\/\/kudzia.eu\/b\/?p=3244"},"modified":"2021-08-27T07:25:06","modified_gmt":"2021-08-27T06:25:06","slug":"initramfs-unpacking-failed-write-error-due-to-stupid-typo-in-virsh-install","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2021\/08\/initramfs-unpacking-failed-write-error-due-to-stupid-typo-in-virsh-install\/","title":{"rendered":"&#8220;initramfs unpacking failed: write error&#8221; due to stupid typo in virsh-install"},"content":{"rendered":"<p>i&#8217;ve been trying to set up a new vm using:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nvirt-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\r\n<\/pre>\n<p>trying and trying, and each time i got the same boot failure:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nInitramfs unpacking failed: write error\r\nFailed to execute \/ init (error \u20142)\r\nKernel panic \u2014 not syncing: No working init found.  Try passing init= option to kerne\r\nl. See Linux Documentation\/admin\u2014guide\/init .rst for guidance .\r\nCPU: 3 PID: 1 Comm: swapper\/0 Not tainted 5.10.O-8-amd64 &quot;1 Debian 5.10.46-3\r\nHardware name: QEMIJ Standard PC (i440FX + PHX, 1336), BIOS 1.12.0-1 04\/01\/2014\r\nCall Trace:\r\ndump_stack+Ox6b\/Ox83\r\n? rest_init+Ox70\/Oxb4\r\npanic +0x101\/OxZd7\r\n? kernel_execue+Ox14a\/Ox1cO\r\n? rest_init+Oxb4\/Oxb4\r\nkernel_init+Ox101\/Ox10c\r\nret_from_fork+OxZZ\/Ox30\r\nKernel Offset: OxZ3eOOOOO from Oxffffffff81000000 (relocation range: Oxffffffff80000000-oxffffffffbfffffff)\r\n\u2014\u2014\u2014&#x5B; end Kernel panic \u2014 not syncing: No working init found. Try passing init= option \r\nto kernel. See Linux Documentation\/admin\u2014guide\/init .rst for guidance. ]\u2014\u2014\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kudzia.eu\/b\/wp-content\/uploads\/2021\/08\/kernel-panic.png\" alt=\"\" width=\"802\" height=\"632\" class=\"alignnone size-full wp-image-3245\" srcset=\"https:\/\/kudzia.eu\/b\/wp-content\/uploads\/2021\/08\/kernel-panic.png 802w, https:\/\/kudzia.eu\/b\/wp-content\/uploads\/2021\/08\/kernel-panic-300x236.png 300w, https:\/\/kudzia.eu\/b\/wp-content\/uploads\/2021\/08\/kernel-panic-768x605.png 768w, https:\/\/kudzia.eu\/b\/wp-content\/uploads\/2021\/08\/kernel-panic-730x575.png 730w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/p>\n<p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>i&#8217;ve been trying to set up a new vm using: virt-install &#8211;name manticore1.test &#8211;vcpus 4 &#8211;ram 128 &#8211;disk \/mnt\/kvm\/manticore1.test\/vda.qcow2,bus=virtio -c \/mnt\/iso\/firmware-11.0.0-amd64-netinst.iso &#8211;noautoconsole &#8211;accelerate &#8211;network=bridge:br0,model=virtio &#8211;graphics vnc &#8211;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 \u20142) Kernel panic \u2014 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"class_list":["post-3244","post","type-post","status-publish","format-standard","hentry","category-unimportant"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/3244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=3244"}],"version-history":[{"count":5,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/3244\/revisions"}],"predecessor-version":[{"id":3250,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/3244\/revisions\/3250"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=3244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=3244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=3244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}