Skip to content

Commit 82f2f95

Browse files
authored
fix fsvm-init.yml to detect virtio-scsi in kvm
1 parent 5b7c3b4 commit 82f2f95

File tree

1 file changed

+1
-1
lines changed
  • plugins/storage/sharedfs/storagevm/src/main/resources/conf

1 file changed

+1
-1
lines changed

plugins/storage/sharedfs/storagevm/src/main/resources/conf/fsvm-init.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ write_files:
3131
3232
get_block_device() {
3333
if [ "$HYPERVISOR" == "kvm" ]; then
34-
BLOCK_DEVICE="vdb"
34+
lspci | grep "Virtio SCSI" > /dev/null && BLOCK_DEVICE="sdb" || BLOCK_DEVICE="vdb"
3535
elif [ "$HYPERVISOR" == "xenserver" ]; then
3636
BLOCK_DEVICE="xvdb"
3737
elif [ "$HYPERVISOR" == "vmware" ]; then

0 commit comments

Comments
 (0)