pezzak
November 28, 2016, 7:58pm
1
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'/>
</disk>
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’
Hi,
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
pezzak
November 29, 2016, 11:36am
3
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:
http://docs.opennebula.org/5.2/deployment/open_cloud_host_setup/kvm_driver.html#additional-attributes
Kind Regards,
Anton Todorov