Install Ubuntu to iSCSI target from USB drive
|
2014-03-23, 20:01
Post: #1
|
|||
|
|||
Install Ubuntu to iSCSI target from USB drive
Hi all
Trying to setup my XBMC as diskless with little success so far. I first tried to hook the drive I wanted to install to then boot from the ISO image. Code: sanhook iscsi:10.0.5.10:::9:iqn.2013-05.co.xxx:media1xbmc This simply results in BusyBox loading, which seems to suggest that the ISO may be corrupt? Then figured the easiest thing to do would be to boot from the USB drive as I don't plan on installing this very often. Plugged in USB, set BIOS to boot PXE first with the following script Code: sanhook --drive 0x81 iscsi:10.0.5.10:::9:iqn.2013-05.co.xxx:media1xbmc The installer loads but when I come to select the disk to install only my USB drive is there. I have tried with 'keep-san 1' in my script with no luck here. Could someone point me in the right direction? Thanks |
|||
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 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? (Please excuse the poor picture, my phone has a terrible camera) |
|||
2014-04-18, 13:15
Post: #3
|
|||
|
|||
RE: Install Ubuntu to iSCSI target from USB drive
I'm not sure, but I don't think you can use vmlinuz.efi in a legacy BIOS environment. Also, if you're not getting a DHCP response, try to do a packet capture to see if the machine is even sending one. http://ipxe.org/howto/pcap
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)