Error during persistent instance creation

Hello,

I’m trying to create a persistent VM. When this process starts, VM fails with this error (/var/log/one/oned.log):

Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: ExitCode: 0
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/mkdir -p.
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: ExitCode: 0
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one//datastores/0/7501/vm.xml.
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: ExitCode: 0
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one//datastores/0/7501/ds.xml.
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/7501/deployment.0' 'localhost' 7501 localhost
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/7501/deployment.0
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: error: unsupported configuration: unknown driver format value 'save_as'
Mon Sep 20 14:23:16 2021 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/7501/deployment.0
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: ExitCode: 255
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: Successfully execute network driver operation: clean.
Mon Sep 20 14:23:16 2021 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Mon Sep 20 14:23:16 2021 [Z0][IPM][D]: Message received: DEPLOY FAILURE 7501 Could not create domain from /var/lib/one//datastores/0/7501/deployment.0

What is the meaning of error “error: unsupported configuration: unknown driver format value ‘save_as’”?

My system is running OpenNebula 6.0.0.2. Image “DEV_PREFIX” attribute is “hd”. If I change to “vd”, problem persists.

Thanks.

Hi @Daniel_Ruiz_Molina,

Some changes were included in OpenNebula 6.0 that might be related with the error you’re seeing. In order to debug the issue, could you provide the steps you’re following for creating the persistent VM? It would be really useful if you can share the XML of the VM and the images you’re using.

Hi Christian,

I have noticed that image had some “strange” attributes like these:>

SAVED_DISK_ID → 0
SAVED_IMAGE_ID → 33
SAVED_VM_ID → 3263
SAVE_AS_HOST → YES

All other images have not these attributes, so I have decided to delete them and, volià, persistent VM creation has worked fine.

…I suppose these parameters, that existed when my system ran 5.10.x, were “compatible” with OpenNebula and, now, running 6.0.0.2, not.

Thanks.