Create local ISO store from USB stick XenServer 6
I was in the pre setup of a new Citrix XenServer 6 and no possibility to connect to an shared ISO store. So I created one myself with an 32 GB USB stick so that I could setup some VM’s
Login to your XenServer via putty or any ssh tool you like and and create an ISO folder
mkdir /mnt/Kingston/iso
Put the usb disk in your server. and run the following commands
ls -l /dev/disk/by-id | grep usb
this wil return your device path
lrwxrwxrwx 1 root root 10 Oct 31 13:57 usb-Kingston_DT_101_G2_001CC0EC34B1F090B5F81684-part1 -> ../../sdc1
fdisk /dev/sdc
mkfs -t ext3 /dev/sdc1
mount /dev/sdc1 /mnt/Kingston/iso
UUID=$(uuidgen)
xe sr-introduce name-label=“Servername:/mnt/Kingston/iso/” content-type=iso shared=false type=iso uuid=${UUID}
xe sr-param-set other-config:auto-scan=true uuid=${UUID}
xe pbd-create host-uuid="c8547677-0254-464b-bde9-fd5b3b4053b1" sr-uuid=${UUID} device-config:location="/mnt/Kingston/iso/" device-config:options="-o bind"
use the uuid provided by the last runned command
xe pbd-plug uuid=8f5d37c8-775e-aff1-0943-e470576372d2
Then I copied my Microsoft 2008 R2 image to this folder with WinSCP.
Thanks to Landon Fraley