Install windows7 onto iscsi target: Server Setup

A PC (IP= with ubuntu/debian installed is used as:

TFTP server

        HTTP Server

        CIFS Server

        ISCSI Server (Target)


TFTP server

#  Setup tftp server

apt-get install tftpd-hpa

/etc/init.d/tftpd-hpa start


#  Testing tftp server

apt-get install tftp

uname -a >/srv/tftp/test


>get test


diff test /srv/tftp/test


# Install syslinux 4.x  (SYSLINUX 4.0.1 debian-20100714)

apt-get install syslinux

cp /usr/lib/syslinux/pxelinux.0 /srv/tftp/

# copy other interested support files
cp /usr/lib/syslinux/menu.c32 /srv/tftp
cp /usr/lib/syslinux/memdisk /srv/tftp
cp /usr/lib/syslinux/mboot.c32 /srv/tftp
cp /usr/lib/syslinux/chain.c32 /srv/tftp
mkdir -pv /srv/tftp/pxelinux.cfg

To simplify the script across ubuntu and debian,  create the /tftp linkto the actual tftp root directory (/srv/tftp in case)



Install windows7 onto iscsi target: Route

A tp-link TL-841N route with ddwrt firmware (build 24160) is used in the test:

Route Config:

Route IP =

DNSMasq  = Enable

Local DNS = Enable

No DNS Rebind = Enable

Additional DNSMasq Options

dhcp-option=44,,         dhcp-option=6,,,,,




      dhcp-boot,               specified pxe boot file and the tftp server

dhcp-option=44,       specified wins server

dhcp-option=6,       specified upstream DNS server

Install windows7 onto iscsi target: Overview


Install windows7 from ISO file on Cifs server, onto to the iscsi target.

With the help of the following software:







Test Environment:

Server:      Linux PC,  IP_Server=

Including tftp/samba/iscsc server

Client:       Diskless Virtual Box on window7

Router:     DDWRT with IP_router=



windows iscsicli

Action Command
Set startup type to automatic sc [server-name] config msiscsi start= auto
Add iSCSI Targets iscsicli.exe QAddTargetPortal [tartget-portal-address] [chap-username] [chap-password]
Get iSCSI Targets iscsicli.exe ListTargets
Login to Targets iscsicli.exe QLoginTarget [target-iqn]
Set up a persistent connection (reconnects after server reboot) iscsicli.exe PersistentLoginTarget [target-iqn] T * * * * * * * * * * * * * * * 0
List the persistent connections to target LUNs iscsicli.exe ListPersistentTargets
Check active connections iscsicli.exe ReportTargetMappings