iPXE SAN boot VBox with Fedora14
|
2011-04-08, 17:21
Post: #1
|
|||
|
|||
iPXE SAN boot VBox with Fedora14
Hi Everyone!
I have been trying to SAN boot VBox for the past few weeks. Now that I figure out how to get everything work. Here are the steps: 1. Set up iSCSI Target with your server: 1.1. Install iSCSI Enterprise Target to Server: Assuming your server IP is 192.168.1.1. See, http://iscsitarget.sourceforge.net/ for instructions. 1.2. Make a RAW disk image (8GB): Code: # dd if=/dev/zero of =/directory/of/target/disk.img bs=1M count=0 seek=8196 1.3. Add iSCSI Target by editing /etc/iet/ietd.conf: Code: Target iqn.2011-03.com.domain:disk.img 1.4. Restart IET service: Code: # service iscsi-target restart 2. Install Virtualbox: See, http://www.virtualbox.org/. 3. Install Fedora 14 into iSCSI Target using Virtualbox: 3.1. Compile iPXE to get an image. I use floppy image (ipxe.dsk) and believe that CD/DVD (ipxe.iso) image should work equally well. 3.2. Prepare a iPXE boot script file (install.ipxe). It should look like: Code: #!ipxe 3.3. Boot VBox with ipxe.dsk and press CTRL_B for manual boot. In command line, key in: Code: iPXE> dhcp 4. Boot from the iSCSI target using VBox: Once you are done with the installation, you can use the same iPXE image to SAN boot from the iSCSI target. I created another iPXE script file which looks like: Code: #!ipxe Code: iPXE> dhcp 5. Notes: 5.1. I choose Fedora because its installer supports iSCSI installation. Other distros should work, but haven't tried any. I would be interested in hearing any of your experiences. 5.2. I still cannot boot the same iSCSI target using different VMs. Any suggestions are welcomed! |
|||
2011-04-08, 17:37
Post: #2
|
|||
|
|||
RE: iPXE SAN boot VBox with Fedora14
Thanks for writing that up!
(2011-04-08 17:21)hsuanyeh Wrote: Once you are done with the installation, you can use the same iPXE image to SAN boot from the iSCSI target. I created another iPXE script file which looks like: If you want to, you can use the prompt command to unify the install.ipxe and boot.ipxe scripts into a single fedora.ipxe script: Code: #!ipxe If the user presses F12 within two seconds, then the installer will run, otherwise the system will boot normally from the SAN. |
|||
2011-04-12, 14:49
Post: #3
|
|||
|
|||
RE: iPXE SAN boot VBox with Fedora14
Quote:If the user presses F12 within two seconds, then the installer will run, otherwise the system will boot normally from the SAN. Thanks for your suggestion, Michael! I have prepared a floppy image and an ISO image with embedded scripts. They are available here: https://sites.google.com/site/apisodeproject/iscsi-boot Assuming there's an active iSCSI target for installation/boot, the iPXE images allow users to enter iSCSI initiator and target information and thereafter install or boot Fedora. Hope it's useful. |
|||
2011-08-08, 18:07
Post: #4
|
|||
|
|||
RE: iPXE SAN boot VBox with Fedora14
(2011-04-08 17:21)hsuanyeh Wrote: I have been trying to SAN boot VBox for the past few weeks. Now that I figure out how to get everything work. Here are the steps ...Cool. (2011-04-08 17:21)hsuanyeh Wrote: 5.2. I still cannot boot the same iSCSI target using different VMs. Any suggestions are welcomed!I'm not sure that I understand why you'd want to boot more than one computer to the same SAN. If multiple computers write to the same filesystem and that filesystem isn't designed for such multi-client use, that could be trouble! |
|||
2011-08-09, 19:25
Post: #5
|
|||
|
|||
RE: iPXE SAN boot VBox with Fedora14
(2011-08-08 18:07)Sha0 Wrote: I'm not sure that I understand why you'd want to boot more than one computer to the same SAN. 1. I was trying to use one SAN image for different users, similar to the idea of terminal server. Unfortunately, Fedora 14 locks MAC address. It's not that trivial for me to unlock... 2. Also, a bit unrelated, I was trying to boot and run VBox (or other VM) using SAN as the root file system. I am hoping that after a short period of network outage, the system can still work. It looks like open-iscsi does not yet work for off-line mode. Any suggestions on the off-line mode? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)