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

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

To: Daniel Schwager <Daniel.Schwager@xxxxxxxx>
Subject: Re: [Xen-users] HOWTO: Compiling openiscsi and XEN 3.2 to work with each other
From: Stefan de Konink <skinkie@xxxxxxxxx>
Date: Fri, 23 May 2008 12:21:36 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 23 May 2008 03:22:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <EB31672367A401439CD5A4A10889D57B51E5B7@xxxxxxxxxxxxxxxxx>
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>
References: <EB31672367A401439CD5A4A10889D57B51E5B7@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080519)
Daniel Schwager schreef:
####################################
##  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

Missing the most important part ;)


cd /etc/xen/scripts
wget http://kinkrsoftware.nl/contrib/xen/block-iscsi
chmod +x block-iscsi


Now you can specify: iscsi://<<targetname>>


Stefan

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

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