VMware Communities
RootMason
Contributor
Contributor
Jump to solution

iSCSI boot from SAN in VMWare Workstation 9

Hello all!

I have created an iSCSI Target (Debian Wheezy) and an iSCSI Initiator (CentOS 6). Installation from netinstall (of CentOS) on eth0 to LUN0 on eth1 worked just fine. Adjusted BIOS on VMWare to boot from e1000 first. On boot the OS immediately tries to PXE boot, not iSCSI...

Any big brains in here know what I'm doing wrong? I've got about 16 hours sunk in trying to develop this project so any help would be much appreciated! Thanks in advance for your time!

0 Kudos
1 Solution

Accepted Solutions
RootMason
Contributor
Contributor
Jump to solution

Here is the correct answer to my problem:  VMWare Workstation 9 does not support iSCSI booting.  It requires "PXE chainloading", where PXE loads to a gPXE (or iPXE) image gives VMWare PXE the ability to bootstrap an iSCSI target.  Here are some valuable pages I found on the subject, though none show my specific "PXE boot CentOS from Debian iSCSI in VMWare Workstation 9"... guess I may be the one to write that tutorial up!


PXE Booting Ubuntu from an iSCSI drive

http://www.heath-bar.com/blog/?p=184

Setting up PXE chainloading

pxechaining - Etherboot/gPXE Wiki

Using iSCSI On Debian Squeeze (Initiator And Target)

http://www.howtoforge.com/using-iscsi-on-debian-squeeze-initiator-and-target

View solution in original post

0 Kudos
4 Replies
weinstein5
Immortal
Immortal
Jump to solution

Welcome to the Comunity - The iSCSI intiator requires the OS to be already running - so you will want be able to boot the vm form the iSCSI SAN -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
RootMason
Contributor
Contributor
Jump to solution

Thanks for the welcome, much appreciated buddy!  In response, yes, that's exactly my problem...  I've installed CentOS to the SAN, but it boots to PXE and asks for TFTP service instead of booting to ISCSI.  Here's an article which I think shows where I'm going wrong:

The theory in a nutshell

So, what do we need for booting iSCSI on a computer that doesn't support iSCSI boot? There's a quite crazy, repeating bootstrapping process:

  1. The BIOS or NIC send a DHCP request to set-up the IP network settings and find a network bootable server, using the PXE-UNDI mechanisms
  2. gPXE image is found, and downloaded using TFTP. gPXE sends yet another DHCP request and should now find the iSCSI address of the remote boot disk
  3. gPXE starts as an iSCSI initiator that logs in to the iSCSI target, reads the remote boot disk's MBR and starts its boot loader (grub)
  4. grub loads the kernel and initrd
  5. initrd sends yet another DHCP request, sets up the IP network, and uses the iscsistart script, which sets up the iscsi initiator and logins (yes, again) to the iscsi target.
  6. iscsistart script then mounts this disk and uses pivot_root (as usual) to make it the new root
  7. boot process starts from the real root now, running /sbin/init

What do you think?  Does this sound correct to you?  It say it should boot to TFTP to find a gPXE image... But how do create or find this image?  Ugh, this is why I'm the intern!  Again thanks for your help!!

0 Kudos
RootMason
Contributor
Contributor
Jump to solution

Here is the correct answer to my problem:  VMWare Workstation 9 does not support iSCSI booting.  It requires "PXE chainloading", where PXE loads to a gPXE (or iPXE) image gives VMWare PXE the ability to bootstrap an iSCSI target.  Here are some valuable pages I found on the subject, though none show my specific "PXE boot CentOS from Debian iSCSI in VMWare Workstation 9"... guess I may be the one to write that tutorial up!


PXE Booting Ubuntu from an iSCSI drive

http://www.heath-bar.com/blog/?p=184

Setting up PXE chainloading

pxechaining - Etherboot/gPXE Wiki

Using iSCSI On Debian Squeeze (Initiator And Target)

http://www.howtoforge.com/using-iscsi-on-debian-squeeze-initiator-and-target

0 Kudos
jmtella
Enthusiast
Enthusiast
Jump to solution

gPXE only in vmware 7.

iPXE works in vmware 9  http://ipxe.org/howto/vmware

0 Kudos