<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 31, 2017 at 11:09 AM, Al Slater <span dir="ltr"><<a target="_blank" href="mailto:al.slater@scluk.com">al.slater@scluk.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-">On 31/07/2017 11:07, Al Slater wrote:<br>
</span><span class="gmail-">> On 30/07/2017 20:15, Peter Tribble wrote:<br>
>>     > The following should get you going:<br>
>>     ><br>
>>     > <a target="_blank" rel="noreferrer" href="https://www.prakashsurya.com/post/2017-02-06-creating-a-custom-amazon-ec2-ami-from-iso/">https://www.prakashsurya.com/<wbr>post/2017-02-06-creating-a-<wbr>custom-amazon-ec2-ami-from-<wbr>iso/</a><br>
>>     <<a target="_blank" rel="noreferrer" href="https://www.prakashsurya.com/post/2017-02-06-creating-a-custom-amazon-ec2-ami-from-iso/">https://www.prakashsurya.com/<wbr>post/2017-02-06-creating-a-<wbr>custom-amazon-ec2-ami-from-<wbr>iso/</a>><br>
><br>
> OK, I followed the above procedure and have produced an AMI.<br>
><br>
> When I create an instance and try to boot it, I get the following in the<br>
> system log:<br>
<br>
</span>SunOS Release 5.11 Version omnios-r151022-f9693432c2 64-bit<br>
<br>
Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.<br>
<br>
NOTICE: Cannot read the pool label from '/xpvd/xdf@51728:a'<br>
NOTICE: spa_import_rootpool: error 5<br>
<br>
Cannot mount root on /xpvd/xdf@51728:a fstype zfs<br>
panic[cpu0]/thread=<wbr>fffffffffbc38560: vfs_mountroot: cannot mount root<br>
Warning - stack not written to the dump buffer<br>
fffffffffbc7ad70 genunix:vfs_mountroot+39b ()<br>
fffffffffbc7adb0 genunix:main+138 ()<br>
fffffffffbc7adc0 unix:_locore_start+90 ()<br>
<br>
<br>
How can I fix this?<br></blockquote><div><br></div><div>You're likely the first person down this path.<br><br></div><div>Generically, this means that the device paths embedded in the pool<br></div><div>don't match those provided by the "hardware" you're booting on.<br><br></div><div>So the system thinks it should have a disk at /xpvd/xdf@51728:a<br><br></div><div>On my instance, I have:<br><br>/dev/rdsk/c2t0d0s0 -> ../../devices/xpvd/xdf@51712:a,raw<br><br></div><div>In other words, 51712 not 51728.<br><br>For this to work, you have to set up your xen instance to exactly mirror<br></div><div>what EC2 provides. Somehow it's gotten mixed up. In your configuration,<br></div><div>did you use xvda? I think 51728 is what you get if you use xvdb for the disk,<br></div><div>which won't work. I had:<br><br>disk=[  'file:/home/ptribble/iso/tribblix-0m20.1.iso,hdb:cdrom,r',<br>        'file:/root/ami-template.img,xvda,w' ]<br><br></div></div>-- <br><div class="gmail_signature">-Peter Tribble<br><a target="_blank" href="http://www.petertribble.co.uk/">http://www.petertribble.co.uk/</a> - <a target="_blank" href="http://ptribble.blogspot.com/">http://ptribble.blogspot.com/</a></div>
</div></div>