iscsi: Configuration problem

drnicolas

Renowned Member
Dec 8, 2010
174
7
83
I am a newbie with Proxmox 2.0 und would like to present my tapes to a VM

I found this http://pve.proxmox.com/wiki/Tape_Drives about the job, but it seems not to work for Proxmox 2.0

1. I don' have iscsi-scst installed. Instead tehre seems to open-scsi
2. I don't have etc/scst.conf

3. cat /proc/scsi_tgt/scsi_tgt |grep tape does not work for me. I dont't have these directories. Ihave only something below /scsi

4. After installing package lsscsi, the command gives me ...
root@proxmox:~# lsscsi
[2:0:0:0] disk ATA WDC WD10EADS-65M 01.0 /dev/sda
[3:0:0:0] disk ATA WDC WD15EARS-00M 51.0 /dev/sdb
00[4:0:0:0] disk ATA SAMSUNG HD502HI 1AG0 /dev/sdc
[5:0:0:0] cd/dvd TSSTcorp CDDVDW SH-S223C SB05 /dev/sr0
[10:0:2:0] tape TANDBERG TS400 0468 /dev/st0
[10:0:5:0] tape HP Ultrium 2-SCSI S65D /dev/st1
[11:0:0:0] disk Generic USB Disk 9.02 /dev/sdd
root@proxmox:~#

5. Another problem: iscsi seems not work at all ...
iscsiamd -m discovery -tst -p 192.168.1.199:3260 gives errors
iscsiadm: cannot make connection to 192.168.1.199:3260 (111)

Any ideas what I can do ?
 
what OS do have in the VM, what backup tool do you want to use?
 
The VM OS is W2008R2; Symantec BE2010R3 should be used

In the meantime, I managed to get iSCSI-Target up and running.

W2008R2 can now connect to iSCSI,but I don't see my tape-drive then.

Is there a sample config available ?

The HOWTO I found here seems to be for another iSCSI implementation
 
did you try to use the Backup Exec Linux remote media agent?
 
Hello,

i want to use my Tape (HP Ultrium 4-SCSI) pass through in a VM-Guests (Win 2003 Server) to Backup something.

I read this thread and the Wiki: http://pve.proxmox.com/wiki/Tape_Drives and the Wiki don't work with PVE 2.0!

My Tape was on:

root@xx:~# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 02 Id: 00 Lun: 00
Vendor: LSI Model: RAID 5/6 SAS 6G Rev: 2.90
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 02 Id: 01 Lun: 00
Vendor: LSI Model: RAID 5/6 SAS 6G Rev: 2.90
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: TSSTcorp Model: CDDVDW TS-L633F Rev: FT00
Type: CD-ROM ANSI SCSI revision: 05
Host: scsi5 Channel: 00 Id: 03 Lun: 00
Vendor: HP Model: Ultrium 4-SCSI Rev: B22D
Type: Sequential-Access ANSI SCSI revision: 05
Host: scsi8 Channel: 00 Id: 00 Lun: 00
Vendor: TOSHIBA Model: MK1059GSM Rev: 0100
Type: Direct-Access

or

root@xx:~# lsscsi
[0:2:0:0] disk LSI RAID 5/6 SAS 6G 2.90 /dev/sda
[0:2:1:0] disk LSI RAID 5/6 SAS 6G 2.90 /dev/sdb
[1:0:0:0] cd/dvd TSSTcorp CDDVDW TS-L633F FT00 /dev/sr0
[5:0:3:0] tape HP Ultrium 4-SCSI B22D /dev/st0
[8:0:0:0] disk TOSHIBA MK1059GSM 0100 /dev/sdc

and

root@xx:~# cat /sys/class/scsi_generic/sg4/device/model
Ultrium 4-SCSI

now i test to modify the config at /etc/pve/qemu-server/150.conf

boot: dc
bootdisk: ide0
cores: 2
ide0: local:150/vm-150-disk-1.raw
ide1: local:150/vm-150-disk-2.raw
ide2: cdrom,media=cdrom
keyboard: de
memory: 1024
name: vm150
net0: e1000=8E:8A:24:B5:05:E2,bridge=vmbr0
onboot: 1
ostype: wxp
sockets: 1
usb4: host=18a5:022e
scsi4: /dev/sg4

But this do not work and my guests don't boot.

At boot came the follow Error:

kvm: -drive file=/dev/sg4,if=none,id=drive-scsi4,aio=native,cache=none: could not open disk image /dev/sg4: Invalid argument
TASK ERROR: start failed: command '/usr/bin/kvm -id 150 -chardev 'socket,id=monitor,path=/var/run/qemu-server/150.mon,server,nowait' -mon 'chardev=monitor,mode=readline' -vnc unix:/var/run/qemu-server/150.vnc,x509,password -pidfile /var/run/qemu-server/150.pid -daemonize -readconfig /usr/share/qemu-server/pve-usb.cfg -device 'usb-tablet,bus=ehci.0,port=6' -device 'usb-host,vendorid=0x18a5,productid=0x022e' -name vm150 -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga cirrus -localtime -rtc-td-hack -k de -drive 'file=/dev/cdrom,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=100' -device 'lsi,id=lsi0,bus=pci.0,addr=0x5' -drive 'file=/dev/sg4,if=none,id=drive-scsi4,aio=native,cache=none' -device 'scsi-block,bus=lsi0.0,scsi-id=4,drive=drive-scsi4,id=scsi4' -drive 'file=/var/lib/vz/images/150/vm-150-disk-2.raw,if=none,id=drive-ide1,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1' -drive 'file=/var/lib/vz/images/150/vm-150-disk-1.raw,if=none,id=drive-ide0,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=202' -m 1024 -netdev 'type=tap,id=net0,ifname=tap150i0,script=/var/lib/qemu-server/pve-bridge' -device 'e1000,romfile=,mac=8E:8A:24:B5:05:E2,netdev=net0,bus=pci.0,addr=0x12,id=net0' -cpuunits 1000' failed: exit code 1




best regards,
greeneye
 
scsi passthrough never worked for windows. I suggest you use a backup software which support remote media agents (connected on the host).
 
@tom

thank you very much for your answer, hmmm, but I think we need a scsi passthrough to the guests.
This was essiantial in the guests, because only so we can use different device with different backup-software.

And i think, i was not the only one, who need this!

Please, is there any other way to connect the SCSI - Device (not only Tape and with no "Backup Exec Linux remote media agent") on the Host to the VM-Guests (Win Server)?

wait for your answer, very thanxs
greeneye
 
Last edited:
I understand that you need it but scsi passthrough to windows guests is not working. And I already the posted a workaround/solution.
 
hmmm, it's a great pity.

@Tom, thank you very much for your answer

Is this the only way, to connect the device at the host to the guests at a network-way. Have this problem all KVM and QEMU?