cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
891
Views
1
Helpful
1
Replies
CSCO11518558
Beginner

YAML - Virtual service definition file - disk section

Hello everyone!

We develop a service VM, working on ISR4300/4400 as a service container, and we have a problem:

If we power off the ISR by button or unplug the cable (hard power off), some files in our VM get corruted and fail the integrity check on VM start. In consequence of which, our daemons do not start properly.

The question is:

Is it possible to turn off caching in YAML definition file in the disk section?

I mean this thing (from libvirt XML):

<disk type="file" device="disk">

  <driver name="qemu" type="qcow2" cache="none"/>

By default, it comes like this:

<disk type="file" device="disk">

  <driver name="qemu" type="qcow2"/>


Turnng off caching manually via vman_.xml file on ISR seems to work for us, and files dont get corrupted after hard power off.


Is it possible to turn it off in YAML definition file to put it in our OVA?


Thanks!

1 REPLY 1
bolick
Cisco Employee

I don't believe there is the capability of mapping the cache parameter from YAML. YAML only maps some of the most common libvert parameters that don't change between versions. I'm checking with some of the developers, but my suspicion is that this isn't something YAML does today.

Content for Community-Ad