Volatile scsi disk does not present in guest

I’ve added scsi volatile disk to kvm vm:

  <disk type='file' device='disk'>
  	<source file='/var/lib/one//datastores/0/125/disk.4'/>
  	<target dev='sde'/>
  	<driver name='qemu' type='raw' cache='none'/>

VM successfully booted, and:
virsh # domblklist one-125:

Target Source

hda /var/lib/one//datastores/0/125/disk.0
hdb /var/lib/one//datastores/0/125/disk.3
hdc /var/lib/one//datastores/0/125/disk.1
hdd /var/lib/one//datastores/0/125/disk.2
sde /var/lib/one//datastores/0/125/disk.4

lspci in guest:

00:04.0 SCSI storage controller: LSI Logic / Symbios Logic 53c895a

But disk not present in guest os, i can’t find it in /dev or by ‘fdisk -l’


Coluld you share some more info regarding the setup? Which OpenNebula version, what is the host OS, are the other disks on SCSI too, etc?

If the host os is ubuntu, try explicitly to define the scsi controller to virtio-scsi, I had issues with the “lsi” emulation which is the default one if not specified on that os.

Kind Regards,
Anton Todorov

I’m using:

  • opennebula 5.0.2 (which has been upgraded from 4.0.1)
  • ubuntu 14.04.5 on hosts
  • ubuntu 14.04.5 on guests
    on all vm’s hd* (ide) disks are used, but i need connect more than 4 disk and faced with this issue

i changed scsi controller to virtio-scsi and it helped!
but i did this by virsh edit command, how change controller in opennebula?

in case of adding vd* disk to vm everything works ok.

AFAIK currently you can add the scsi controller definition as RAW data in /etc/one/vmm_exec/vmmexec_kvm.conf or in the VM template. For more info:

Kind Regards,
Anton Todorov