[PVE-User] RDX access to the guest...

Marco Gaiarin gaio at sv.lnf.it
Tue May 31 12:34:32 CEST 2016


I'm setting up a test Proxmox installation (one host, local storage).
Latest version.

All tests seems to go well, guests boot and do what expected.

Now we are trying to use an RDX backup system, hitting some trouble.

I'm following:

	https://pve.proxmox.com/wiki/Tape_Drives

because seems the most relevant wiki page (RDX, are, instead more an
hard disk on cartdrige then a tape, but anyway... ;).

I've tried the ''passthrought'' mode, eg:

	https://pve.proxmox.com/wiki/Tape_Drives#Using_Tape_Drives_as_SCSI_pass_through_.28for_Linux_KVM_guests.29

but does not work, proxmox say:

 Running as unit 100.scope.
 kvm: -drive file=/dev/sg3,if=none,id=drive-scsi0,format=raw,cache=none,aio=native,detect-zeroes=on: file system may not support O_DIRECT
 kvm: -drive file=/dev/sg3,if=none,id=drive-scsi0,format=raw,cache=none,aio=native,detect-zeroes=on: Could not open '/dev/sg3': Invalid argument
 TASK ERROR: start failed: command '/usr/bin/systemd-run --scope --slice qemu --unit 100 -p 'KillMode=none' -p 'CPUShares=1000' /usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=f3bd2671-d16c-413c-835b-c8b8a8ac27f3' -name medoacus -smp '4,sockets=1,cores=4,maxcpus=4' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga cirrus -vnc unix:/var/run/qemu-server/100.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 12288 -k it -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:b22ae61328f8' -drive 'file=/dev/cdrom,if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -device 'lsi,id=scsihw0,bus=pci.0,addr=0x5' -drive 'file=/dev/sg3,if=none,id=drive-scsi0,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'scsi-block,bus=scsihw0.0,scsi-id=0,drive=drive-scsi0,id=scsi0' -drive 'file=/dev/pve/vm-100-disk-1,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=101' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=32:38:30:38:32:36,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -netdev 'type=tap,id=net1,ifname=tap100i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=66:38:62:35:36:32,netdev=net1,bus=pci.0,addr=0x13,id=net1,bootindex=301'' failed: exit code 1

but /dev/sg3 exist and have the correct permission:

 root at pvepd1:~# ls -la /dev/sg3
 crw-rw---- 1 root disk 21, 3 May 31 12:17 /dev/sg3

and is the correct device:

 root at pvepd1:~# cat /sys/class/scsi_generic/sg3/device/model 
 RDX             


I'm forced to use iSCSI method? The setup is rather simple, so i hope no... ;(((


Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
    http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the pve-user mailing list