Install windows7 onto iscsi target: Server Setup

A PC (IP=192.168.127.88) 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

tftp 127.0.0.1

>get test

>quit

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 = 192.168.127.2

DNSMasq  = Enable

Local DNS = Enable

No DNS Rebind = Enable

Additional DNSMasq Options

dhcp-boot=pxe/pxelinux.0,lzheng-ubuntu-10,192.168.127.88
dhcp-option=44,172.24.63.201,172.24.63.202         dhcp-option=6,172.24.63.212,172.24.63.211,172.24.63.163,172.24.63.161,172.24.63.162

 

************************************************************************

Note

      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

Target:

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

With the help of the following software:

   pxe/ipxe

   http

   cifs

   winpe

 

 

Test Environment:

Server:      Linux PC,  IP_Server=192.168.127.88

Including tftp/samba/iscsc server

Client:       Diskless Virtual Box on window7

Router:     DDWRT with IP_router=192.168.127.2

 

继续阅读

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