Try changing this line
$spec.deviceChange[0].device.backing.diskMode = "independent_persistent"
into this
$spec.deviceChange[0].device.backing.diskMode = "persistent"
Try changing this line
$spec.deviceChange[0].device.backing.diskMode = "independent_persistent"
into this
$spec.deviceChange[0].device.backing.diskMode = "persistent"