{"id":1565,"date":"2013-08-28T01:11:41","date_gmt":"2013-08-28T05:11:41","guid":{"rendered":"http:\/\/cd34.com\/blog\/?p=1565"},"modified":"2013-08-28T01:11:41","modified_gmt":"2013-08-28T05:11:41","slug":"my-ec2-instance-oops","status":"publish","type":"post","link":"https:\/\/cd34.com\/blog\/virtualization\/my-ec2-instance-oops\/","title":{"rendered":"My EC2 instance&#8230; oops"},"content":{"rendered":"<p>I created an EC2 instance a while back to test a theory and had some time this evening to take a look at it again. I went to start the instance and:<\/p>\n<pre>\r\n    Xen Minimal OS!\r\n  start_info: 0xac4000(VA)\r\n    nr_pages: 0x26700\r\n  shared_inf: 0x7de16000(MA)\r\n     pt_base: 0xac7000(VA)\r\nnr_pt_frames: 0x9\r\n    mfn_list: 0x990000(VA)\r\n   mod_start: 0x0(VA)\r\n     mod_len: 0\r\n       flags: 0x0\r\n    cmd_line: root=\/dev\/sda1 ro 4\r\n  stack:      0x94f860-0x96f860\r\nMM: Init\r\n      _text: 0x0(VA)\r\n     _etext: 0x5ffbd(VA)\r\n   _erodata: 0x78000(VA)\r\n     _edata: 0x80ae0(VA)\r\nstack start: 0x94f860(VA)\r\n       _end: 0x98fe68(VA)\r\n  start_pfn: ad3\r\n    max_pfn: 26700\r\nMapping memory range 0xc00000 - 0x26700000\r\nsetting 0x0-0x78000 readonly\r\nskipped 0x1000\r\nMM: Initialise page allocator for c01000(c01000)-26700000(26700000)\r\nMM: done\r\nDemand map pfns at 26701000-2026701000.\r\nHeap resides at 2026702000-4026702000.\r\nInitialising timer interface\r\nInitialising console ... done.\r\ngnttab_table mapped at 0x26701000.\r\nInitialising scheduler\r\nThread \"Idle\": pointer: 0x2026702010, stack: 0x26640000\r\nInitialising xenbus\r\nThread \"xenstore\": pointer: 0x20267027c0, stack: 0x26650000\r\nDummy main: start_info=0x96f960\r\nThread \"main\": pointer: 0x2026702f70, stack: 0x26660000\r\n\"main\" \"root=\/dev\/sda1\" \"ro\" \"4\" \r\nvbd 2049 is hd0\r\n******************* BLKFRONT for device\/vbd\/2049 **********\r\n\r\n\r\nbackend at \/local\/domain\/0\/backend\/vbd\/3617\/2049\r\nFailed to read \/local\/domain\/0\/backend\/vbd\/3617\/2049\/feature-barrier.\r\nFailed to read \/local\/domain\/0\/backend\/vbd\/3617\/2049\/feature-flush-cache.\r\n16777216 sectors of 512 bytes\r\n**************************\r\n\r\n    [H\r\n    [J  Booting '3.9-1-amd64'\r\n\r\n\r\n\r\nroot (hd0)\r\n\r\n Filesystem type is ext2fs, using whole disk\r\n\r\nkernel \/boot\/vmlinuz-3.9-1-amd64 root=\/dev\/xvda1 ro \r\n\r\ninitrd \/boot\/initrd.img-3.9-1-amd64\r\n\r\n\r\n\r\nERROR Invalid kernel: xc_dom_probe_bzimage_kernel: unknown compression format\r\n\r\nxc_dom_bzimageloader.c:394: panic: xc_dom_probe_bzimage_kernel: unknown compression format\r\nERROR Invalid kernel: xc_dom_find_loader: no loader found\r\n\r\nxc_dom_core.c:536: panic: xc_dom_find_loader: no loader found\r\nxc_dom_parse_image returned -1\r\n\r\n\r\n\r\nError 9: Unknown boot failure\r\n\r\n\r\n\r\nPress any key to continue...\r\n<\/pre>\n<p>This happens when you use a kernel compiled with .xz and the Xen Instance you&#8217;re using has the old Xen hypervisor which cannot support .xz.<\/p>\n<p>What you would normally do to fix this is take another instance in the same availability zone, detach the EBS volume from the broken instance, attach the EBS volume to the other instance, make the changes to grub or put a new kernel on, detach the volume from the new instance, attach the volume to the old instance, and restart.<\/p>\n<p>However, if you&#8217;re not using your own AMI, you might get the following message:<\/p>\n<pre>\r\n'vol-xxxxxxxx' with Marketplace codes may not be attached as a secondary device.\r\n<\/pre>\n<p>in which case I believe you&#8217;re stuck.<\/p>\n<div style=\"float:left;\">\n<div id=\"fb-root\"><\/div>\n<fb:like href=\"https:\/\/cd34.com\/blog\/virtualization\/my-ec2-instance-oops\/\" width=\"250\" send=\"false\" show_faces=\"false\" layout=\"button_count\" action=\"recommend\"><\/fb:like>\n<\/div><div style=\"clear:both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I created an EC2 instance a while back to test a theory and had some time this evening to take a look at it again. I went to start the instance and: Xen Minimal OS! start_info: 0xac4000(VA) nr_pages: 0x26700 shared_inf: 0x7de16000(MA) pt_base: 0xac7000(VA) nr_pt_frames: 0x9 mfn_list: 0x990000(VA) mod_start: 0x0(VA) mod_len: 0 flags: 0x0 cmd_line: root=\/dev\/sda1 [&hellip;]<\/p>\n<div style=\"float:left;\">\n<div id=\"fb-root\"><\/div>\n<fb:like href=\"https:\/\/cd34.com\/blog\/virtualization\/my-ec2-instance-oops\/\" width=\"250\" send=\"false\" show_faces=\"false\" layout=\"button_count\" action=\"recommend\"><\/fb:like>\n<\/div><div style=\"clear:both;\"><\/div>","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[103,296,295],"class_list":["post-1565","post","type-post","status-publish","format-standard","hentry","category-virtualization","category-infrastructure","tag-amazon-ecs","tag-ebs","tag-ec2"],"_links":{"self":[{"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/posts\/1565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/comments?post=1565"}],"version-history":[{"count":1,"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/posts\/1565\/revisions"}],"predecessor-version":[{"id":1566,"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/posts\/1565\/revisions\/1566"}],"wp:attachment":[{"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/media?parent=1565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/categories?post=1565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cd34.com\/blog\/wp-json\/wp\/v2\/tags?post=1565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}