Using RDM image results in error "'file' driver requires '/dev/xxx' to be a regular file

Please, describe the problem here and provide additional information below (if applicable) …


Versions of the related components and OS (frontend, hypervisors, VMs): 7.0

Steps to reproduce:
Followed Raw Device Mapping Datastore | to create RDM datastore and used cli to create image:
oneimage create -d 115 --name lvm_test --source /dev/ubuntu-vg/test --format raw --prefix vd --persistent --type OS --size 0MB --disk_type BLOCK

Current results:
Deployed VM fails with “‘file’ driver requires ‘/dev/ubuntu-vg/test’ to be a regular file”

Can anybody help me - thx

We’d need some more context to help
What is the output of oneimage show -j lvm_test, also oneimage show -j VM_NAME_or_ID

Best Regards,
Anton Todorov

Hi Anton,
Thank you for your replay, I’ve attached the output of:

  • oneimage show -j lvm_test
  • onevm show -j lvmtest23

lvmtest23.txt (5.9 KB)

lvm_test.txt (1.1 KB)

Just seen the following in the rdm datastore:
DISK_TYPE=“BLOCK”
DISK_TYPE_SHARED=“FILE”
DISK_TYPE_SSH=“FILE”

I’d like to use deploy mode ssh (for a second disk) - how can I change DISK_TYPE_SSH to BLOCK?
(onedatastore update does not work)

changed DISK_TYPE_SSH = “BLOCK” in oned.conf solved the problem

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.