Chainloading linux in AWS EC2 HVM
|
2016-02-25, 07:18
Post: #7
|
|||
|
|||
RE: Chainloading linux in AWS EC2 HVM
(2016-01-27 14:31)mcb30 Wrote: Alternatively, you could try reproducing the problem in a local XenServer instance. That would allow you to examine the state using xenstore-ls from dom0, without having to patch the guest kernel/initrd. It works as expected. I could successfully run the following sequence: 1. create the domain using "builder='hvm'" 2. boot it using ipxe.usb + bootstrap embedded (after dd if=ipxe.usb of=<path_to_lvm_dev> 3. chainload an ipxe.pxe + boot script embedded image from an http server 4. chainload kernel + initramfs and trigger kickstart installation Xen Platform info Code: xen_version : 4.6.1-1.el7 bootstrap.ipxe Code: #!ipxe boot.ipxe Code: #!ipxe Boot sequence output Code: # xl create -c <path_to_domu_cfg_file> As expected, ipxe stored on disk gets loaded, it can fetch and load a new ipxe.pxe from the bootserver and load the kernel and initramfs. But using the same ipxe.usb and boot.pxe files on AWS EC2 (region: eu-west-1, instance type t2-medium) doesn't work. Here is the console output from AWS console, trimmed a little bit to remove control codes. The first line (ok) is certainly the output of ipxe.usb and the other lines, from the boot.pxe file downloaded from the bootserver. Code: ok So it seems that ipxe can't chainload itself from the network on AWS. Other test A few weeks ago I made another test. I tried to create a chainload loop using the following ipxe script, expecting the sequence to loop infinitely. But it didn't! Code: #!ipxe Console output Code: iPXE 1.0.0+ (3c26) -- Open Source Network Boot Firmware -- http://ipxe.org ipxe load from disk at instance creation, can configure the network and reload itself from 0x80. But then it can't configure the network, fails to boot and (I presume), the first ipxe sequence continue and try to boot from 0x81 which fails because there is only one disk attached to the instance. It doesn't seem related to kernel/initramfs but specific to AWS. Can it be related to the Xen version (mine is 4.6.1 and AWS is 4.2) or AWS-specific Xen tuning preventing chainloading? Do you have a working example of chainloading ipxe from ipxe on AWS? Thanks again for your great work and your help on this issue! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Chainloading linux in AWS EC2 HVM - plachance - 2016-01-14, 21:37
RE: Chainloading linux in AWS EC2 HVM - mcb30 - 2016-01-15, 08:24
RE: Chainloading linux in AWS EC2 HVM - plachance - 2016-01-18, 19:01
RE: Chainloading linux in AWS EC2 HVM - mcb30 - 2016-01-18, 23:00
RE: Chainloading linux in AWS EC2 HVM - plachance - 2016-01-18, 23:17
RE: Chainloading linux in AWS EC2 HVM - mcb30 - 2016-01-27, 14:31
|
User(s) browsing this thread: 2 Guest(s)