Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install Ubuntu to iSCSI target from USB drive
2014-03-24, 02:02
Post: #2
RE: Install Ubuntu to iSCSI target from USB drive
Should note I am trying to install Ubuntu x64 desktop here.

Well after hours of messing around reading and trail/error

I have come to the conclusion that using a USB drive to install from isn't the best idea as this means /dev/sda1 is my USB device and /dev/sdb1 is my iSCSI volume.

Next up I investigated booting the installer properly using iPXE, the example here https://gist.github.com/robinsmidsrod/2234639 helped slightly but was still unsure on what most of the options do (in way over my head here!). After reading far too many articles I have come to the conclusion I needed to mount the Ubuntu ISO on a NFS share.

Did this as followed...
Code:
mkdir /mnt/iso
mount ubuntu-desktop.iso /mnt/iso

Added the following to /etc/exports
Code:
/mnt/iso/  *(no_root_squash,rw,async,no_subtree_check,insecure)

Can browse this successfully from my Mac by going to nfs://10.0.5.10/mnt/iso

Then copied vmlinuz.efi and initrd.lz from the casper directory to my HTTP server.

Then attempted to use the following iPXE script to get the installer started.
<pre>#!ipxe

initrd http://10.0.5.10/initrd.lz
kernel http://10.0.5.10/vmlinuz.efi boot=casper netboot=nfs nfsroot=10.0.5.10:/mnt/iso/ initrd=initrd.lz
boot</pre>

I seem to get to the start of the installer as the screen resolution is now 1920x1080 and it has detected the two onboard NICs, but am getting an issue where it gets stuck at the following...
Seems that the DHCP isn't picking up an address?

[Image: pxe.jpg]

(Please excuse the poor picture, my phone has a terrible camera)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Install Ubuntu to iSCSI target from USB drive - nry - 2014-03-24 02:02



User(s) browsing this thread: 1 Guest(s)