WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] HOWTO: Compiling openiscsi and XEN 3.2 to work with each oth

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] HOWTO: Compiling openiscsi and XEN 3.2 to work with each other
From: "Daniel Schwager" <Daniel.Schwager@xxxxxxxx>
Date: Fri, 23 May 2008 12:18:50 +0200
Delivery-date: Fri, 23 May 2008 03:19:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aci8vmV7GXwiTnCOSZKDU66SqcEtPQ==
Thread-topic: HOWTO: Compiling openiscsi and XEN 3.2 to work with each other
####################################
##  HOWTO Installation openiscsi for XEN
####################################

####### normal XEN-installation
 yum install hgsvn dev86 transfig openssl-devel xorg-x11-proto-devel texi2html 
pciutils-devel pciutils # fedoracore8

 cd /usr/src
 hg clone http://xenbits.xensource.com/xen-3.2-testing.hg
 xen-3.2-testing.hg/
 
 make -j8 world
 make -j8 install
 depmod 2.6.18.8-xen
 mkinitrd  /boot/initrd-2.6.18.8-xen.img 2.6.18.8-xen

 # modify menu.lst .... please adapt to your root-filesystem !!
 emacs -nw  /boot/grub/menu.lst
 title (2.6.18-8-xen3.2.testing-20080521)
        root (hd0,0)
        kernel /xen-3.2.1.gz  dom0_mem=512M
        module /vmlinuz-2.6.18.8-xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        module /initrd-2.6.18.8-xen.img


 # REBOOT into you new xen-kernel (important !)

######## openiscsi build
b) additional building "clean xen-linux tree" (!!!!) for compiling openiscsi 
later 

 # Compile xen with "normal" tree
 cd /usr/src/
 hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg
 cd linux-2.6.18-xen.hg
 cat /proc/config.gz |gunzip >.config
 make -j 8

 # Compile openiscsi
  wget http://www.open-iscsi.org/bits/open-iscsi-2.0-869.tar.gz         # oder 
neuer
  tar xfvz open-iscsi-2.0-869.tar.gz
  cd /usr/src/open-iscsi-2.0-869
  make KSRC=/usr/src/linux-2.6.18-xen.hg
  make KSRC=/usr/src/linux-2.6.18-xen.hg install

 # for some reason it do install into /lib/modules/2.6.18/, no idea why, so
 unalias cp
 cp -a /lib/modules/2.6.18.8/kernel/drivers/scsi/libiscsi.ko 
/lib/modules/2.6.18.8-xen/kernel/drivers/scsi/
 cp -a /lib/modules/2.6.18.8/kernel/drivers/scsi/iscsi_tcp.ko 
/lib/modules/2.6.18.8-xen/kernel/drivers/scsi/
 cp -a /lib/modules/2.6.18.8/kernel/drivers/scsi/scsi_transport_iscsi.ko 
/lib/modules/2.6.18.8-xen/kernel/drivers/scsi/
 
 # REBOOT HERE NEEDED

### Check system

# discover
  iscsiadm -m discovery -t sendtargets -p <IP> 3260
# login
  iscsiadm -m node -T <targetname> -p <IP> -l
# logout
  iscsiadm -m node -T <targetname> -p <IP> -u

.. here we are

regards
Danny from softwaredemo.de
-------------------------------------------------------------------
DT Netsolution GmbH   -   Taläckerstr. 30    -    D-70437 Stuttgart
Geschäftsführer: Daniel Schwager, Stefan Hörz - HRB Stuttgart 19870
Tel: +49-711-849910-32, Fax: -932 - Mailto:daniel.schwager@xxxxxxxx



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>