Modify "Virtual Machine Template" from CLI

Hi,

after some updates (OpenNebula version and datasotre configuration), some VMs that were “undeployed” don’t start now because I have changed datastore TM_MAD from “qcow2” to “ssh”. In VMs that don’t restart now, I get this error:

and, in CLI, if I run “onevm show 9459” (for example), I can see these information:

[oneadmin@myserver ~]$ onevm show 9459
VIRTUAL MACHINE 9459 INFORMATION
ID                  : 9459
NAME                : rooter
USER                : sdci-5-4
GROUP               : SDCI
STATE               : PENDING
LCM_STATE           : LCM_INIT
LOCK                : None
RESCHED             : No
START TIME          : 07/11 12:42:28
END TIME            : -
DEPLOY ID           : 3b316a13-4047-4fc0-9cb6-0b9338390c85

VIRTUAL MACHINE MONITORING
CPU                 : 0.0
MEMORY              : 1011.6M
NETTX               : 33K
NETRX               : 1K
DISKRDBYTES         : 411789070
DISKRDIOPS          : 11661
DISKWRBYTES         : 24092672
DISKWRIOPS          : 1716
ID                  : 9459
TIMESTAMP           : 1658144850

PERMISSIONS
OWNER               : um-
GROUP               : ---
OTHER               : ---

VM DISKS
 ID DATASTORE  TARGET IMAGE                               SIZE      TYPE SAVE
  0 default    vda    Deb11ON                             84M/14G   file   NO
  1 -          hda    CONTEXT                             1M/-      -       -

VM NICS
 ID NETWORK              BRIDGE       IP              MAC               PCI_ID
  0 Internet             br1          10.10.10.40     02:00:0a:0a:0a:28
  1 Middle               br2          20.20.20.22     02:00:14:14:14:16

SECURITY

NIC_ID NETWORK                   SECURITY_GROUPS
     0 Internet                  0
     1 Middle                    0

SECURITY GROUP   TYPE     PROTOCOL NETWORK                       RANGE
  ID NAME                          VNET START             SIZE
   0 default     OUTBOUND ALL
   0 default     INBOUND  ALL

VIRTUAL MACHINE HISTORY
SEQ UID  REQ   HOST         ACTION       DS           START        TIME     PROLOG
  0 0    4752  localhost    undeploy-h    0  07/11 12:42:36   0d 14h17m   0h00m02s
  1 0    7744  localhost    undeploy-h    0  07/18 13:26:17   0d 00h07m   0h00m03s

USER TEMPLATE
HOT_RESIZE=[
  CPU_HOT_ADD_ENABLED="NO",
  MEMORY_HOT_ADD_ENABLED="NO" ]
HYPERVISOR="kvm"
INPUTS_ORDER=""
LOGO="images/logos/debian.png"
MEMORY_UNIT_COST="GB"
SCHED_DS_REQUIREMENTS="ID=\"0\""
SCHED_MESSAGE="Mon Jul 18 13:47:25 2022: Cannot dispatch VM: No system datastore meets capacity and SCHED_DS_REQUIREMENTS: (\"CLUSTERS/ID\" @> 0) & (TM_MAD = \"qcow2\") & ( ID=\"0\" )"
SCHED_REQUIREMENTS="ID=\"14\""
USER_INPUTS=[
  CPU="O|fixed|| |0.5",
  MEMORY="M|range||1024..3072|1024" ]

VIRTUAL MACHINE TEMPLATE
AUTOMATIC_DS_REQUIREMENTS="(\"CLUSTERS/ID\" @> 0) & (TM_MAD = \"qcow2\")"
AUTOMATIC_NIC_REQUIREMENTS="(\"CLUSTERS/ID\" @> 0)"
AUTOMATIC_REQUIREMENTS="(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED)"
CONTEXT=[
  DISK_ID="1",
  ETH0_CONTEXT_FORCE_IPV4="",
  ETH0_DNS="8.8.8.8",
  ETH0_EXTERNAL="",
  ETH0_GATEWAY="10.10.10.1",
  ETH0_GATEWAY6="",
  ETH0_IP="10.10.10.40",
  ETH0_IP6="",
  ETH0_IP6_GATEWAY="",
  ETH0_IP6_METHOD="",
  ETH0_IP6_METRIC="",
  ETH0_IP6_PREFIX_LENGTH="",
  ETH0_IP6_ULA="",
  ETH0_MAC="02:00:0a:0a:0a:28",
  ETH0_MASK="255.255.254.0",
  ETH0_METHOD="",
  ETH0_METRIC="",
  ETH0_METRIC6="",
  ETH0_MTU="",
  ETH0_NETWORK="10.10.10.0",
  ETH0_SEARCH_DOMAIN="",
  ETH0_VLAN_ID="",
  ETH0_VROUTER_IP="",
  ETH0_VROUTER_IP6="",
  ETH0_VROUTER_MANAGEMENT="",
  ETH1_CONTEXT_FORCE_IPV4="",
  ETH1_DNS="",
  ETH1_EXTERNAL="",
  ETH1_GATEWAY="",
  ETH1_GATEWAY6="",
  ETH1_IP="20.20.20.22",
  ETH1_IP6="",
  ETH1_IP6_GATEWAY="",
  ETH1_IP6_METHOD="",
  ETH1_IP6_METRIC="",
  ETH1_IP6_PREFIX_LENGTH="",
  ETH1_IP6_ULA="",
  ETH1_MAC="02:00:14:14:14:16",
  ETH1_MASK="255.255.254.0",
  ETH1_METHOD="",
  ETH1_METRIC="",
  ETH1_METRIC6="",
  ETH1_MTU="",
  ETH1_NETWORK="20.20.20.0",
  ETH1_SEARCH_DOMAIN="",
  ETH1_VLAN_ID="",
  ETH1_VROUTER_IP="",
  ETH1_VROUTER_IP6="",
  ETH1_VROUTER_MANAGEMENT="",
  NETWORK="YES",
  PASSWORD="5yoDK8jK3gKWuCS0RFtsNQ==",
  SSH_PUBLIC_KEY="",
  START_SCRIPT_BASE64="L2Jpbi9lY2hvICJhZG1pbnA6TmVidWxhQ2FvcyIgfCBjaHBhc3N3ZA==",
  TARGET="hda" ]
CPU="0.5"
CPU_COST="0.01"
CPU_MODEL=[
  MODEL="host-passthrough" ]
DISK_COST="7.5e-07"
FEATURES=[
  ACPI="yes" ]
GRAPHICS=[
  LISTEN="0.0.0.0",
  TYPE="VNC" ]
MEMORY="2048"
MEMORY_COST="1.46484e-05"
OS=[
  BOOT="disk0",
  UUID="3b316a13-4047-4fc0-9cb6-0b9338390c85" ]
TEMPLATE_ID="237"
TM_MAD_SYSTEM="qcow2"
VCPU="2"
VMID="9459"

So my question is if I could modify values in “VIRTUAL MACHINE TEMPLATE” section and remove “AUTOMATIC_DS_REQUIREMENTS” parameter and “TM_MAD_SYSTE;” (inside CONTEXT) to allow the VM restart.

Thanks a lot!!

You could try

onedb update-body vm --id 9459

BR,
Anton

Hi,

but, after modifying manually VM body and changing “TM_MAD=ssh” to “TM_MAD=qcow2” and run an “undeploy” to the VM, this value returns to “TM_MAD=ssh” and, then, next start fails…

Is there any way to change forewer value TM_MAD=ssh to TM_MAD=qcow2 inside VM body?

Thanks.

A long shot - did you change both the disk records and the (last) history record?

In VM body, I changed both TM_MAD=ssh in section (VM contains two disks), but I didn’t change history record. How can I change it?

mmm… I think I have also modified “TM_MAD=qcow2” in section… Yes, I have checked it now.

But VM doesn’t start… It seems like “something” applies three values AUTOMATIC and I dont’ know why…

I need to solve it today. It’s a big problem for me and for my environment.

Thanks a million and a lot!

It is popping at the bottom of the XML. Here is an example output:

EDITOR=cat onedb update-body vm --id 18
<VM>
  <ID>18</ID>
  <UID>0</UID>
  <GID>0</GID>
  <UNAME>oneadmin</UNAME>
  <GNAME>oneadmin</GNAME>
  <NAME>test1</NAME>
  <PERMISSIONS>
    <OWNER_U>1</OWNER_U>
    <OWNER_M>1</OWNER_M>
    <OWNER_A>0</OWNER_A>
    <GROUP_U>0</GROUP_U>
    <GROUP_M>0</GROUP_M>
    <GROUP_A>0</GROUP_A>
    <OTHER_U>0</OTHER_U>
    <OTHER_M>0</OTHER_M>
    <OTHER_A>0</OTHER_A>
  </PERMISSIONS>
  <LAST_POLL>0</LAST_POLL>
  <STATE>3</STATE>
  <LCM_STATE>3</LCM_STATE>
  <PREV_STATE>3</PREV_STATE>
  <PREV_LCM_STATE>3</PREV_LCM_STATE>
  <RESCHED>0</RESCHED>
  <STIME>1677142808</STIME>
  <ETIME>0</ETIME>
  <DEPLOY_ID>5e903ecf-1113-4cf8-bccf-44604fdf30bf</DEPLOY_ID>
  <MONITORING/>
  <TEMPLATE>
    <AUTOMATIC_DS_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0 | "CLUSTERS/ID" @> 100) & (TM_MAD = "storpool")]]></AUTOMATIC_DS_REQUIREMENTS>
    <AUTOMATIC_NIC_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0 | "CLUSTERS/ID" @> 100)]]></AUTOMATIC_NIC_REQUIREMENTS>
    <AUTOMATIC_REQUIREMENTS><![CDATA[(CLUSTER_ID = 0 | CLUSTER_ID = 100) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED)]]></AUTOMATIC_REQUIREMENTS>
    <CONTEXT>
      <DISK_ID><![CDATA[1]]></DISK_ID>
      <ETH0_DNS><![CDATA[8.8.8.8]]></ETH0_DNS>
      <ETH0_EXTERNAL><![CDATA[]]></ETH0_EXTERNAL>
      <ETH0_GATEWAY><![CDATA[192.168.122.1]]></ETH0_GATEWAY>
      <ETH0_GATEWAY6><![CDATA[]]></ETH0_GATEWAY6>
      <ETH0_IP><![CDATA[192.168.122.2]]></ETH0_IP>
      <ETH0_IP6><![CDATA[]]></ETH0_IP6>
      <ETH0_IP6_GATEWAY><![CDATA[]]></ETH0_IP6_GATEWAY>
      <ETH0_IP6_METHOD><![CDATA[]]></ETH0_IP6_METHOD>
      <ETH0_IP6_METRIC><![CDATA[]]></ETH0_IP6_METRIC>
      <ETH0_IP6_PREFIX_LENGTH><![CDATA[]]></ETH0_IP6_PREFIX_LENGTH>
      <ETH0_IP6_ULA><![CDATA[]]></ETH0_IP6_ULA>
      <ETH0_MAC><![CDATA[02:00:c0:a8:7a:02]]></ETH0_MAC>
      <ETH0_MASK><![CDATA[255.255.255.0]]></ETH0_MASK>
      <ETH0_METHOD><![CDATA[]]></ETH0_METHOD>
      <ETH0_METRIC><![CDATA[]]></ETH0_METRIC>
      <ETH0_MTU><![CDATA[1500]]></ETH0_MTU>
      <ETH0_NETWORK><![CDATA[192.168.122.0]]></ETH0_NETWORK>
      <ETH0_SEARCH_DOMAIN><![CDATA[]]></ETH0_SEARCH_DOMAIN>
      <ETH0_VLAN_ID><![CDATA[]]></ETH0_VLAN_ID>
      <ETH0_VROUTER_IP><![CDATA[]]></ETH0_VROUTER_IP>
      <ETH0_VROUTER_IP6><![CDATA[]]></ETH0_VROUTER_IP6>
      <ETH0_VROUTER_MANAGEMENT><![CDATA[]]></ETH0_VROUTER_MANAGEMENT>
      <NETWORK><![CDATA[YES]]></NETWORK>
      <PASSWORD><![CDATA[xxxxxxxxxxxxxxxxxxxxxxxx]]></PASSWORD>
      <SET_HOSTNAME><![CDATA[test1]]></SET_HOSTNAME>
      <SSH_PUBLIC_KEY><![CDATA[]]></SSH_PUBLIC_KEY>
      <TARGET><![CDATA[hda]]></TARGET>
    </CONTEXT>
    <CPU><![CDATA[1]]></CPU>
    <DISK>
      <ALLOW_ORPHANS><![CDATA[yes]]></ALLOW_ORPHANS>
      <CLONE><![CDATA[YES]]></CLONE>
      <CLONE_TARGET><![CDATA[SELF]]></CLONE_TARGET>
      <CLUSTER_ID><![CDATA[0,100]]></CLUSTER_ID>
      <DATASTORE><![CDATA[default]]></DATASTORE>
      <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
      <DEV_PREFIX><![CDATA[vd]]></DEV_PREFIX>
      <DISK_ID><![CDATA[0]]></DISK_ID>
      <DISK_SNAPSHOT_TOTAL_SIZE><![CDATA[0]]></DISK_SNAPSHOT_TOTAL_SIZE>
      <DISK_TYPE><![CDATA[BLOCK]]></DISK_TYPE>
      <DRIVER><![CDATA[raw]]></DRIVER>
      <FORMAT><![CDATA[raw]]></FORMAT>
      <IMAGE><![CDATA[Alpine Linux 3.15]]></IMAGE>
      <IMAGE_ID><![CDATA[9]]></IMAGE_ID>
      <IMAGE_STATE><![CDATA[2]]></IMAGE_STATE>
      <LN_TARGET><![CDATA[NONE]]></LN_TARGET>
      <ORIGINAL_SIZE><![CDATA[256]]></ORIGINAL_SIZE>
      <READONLY><![CDATA[NO]]></READONLY>
      <SAVE><![CDATA[NO]]></SAVE>
      <SIZE><![CDATA[512]]></SIZE>
      <SOURCE><![CDATA[ans-ds-1/ans-img-9]]></SOURCE>
      <TARGET><![CDATA[vda]]></TARGET>
      <TM_MAD><![CDATA[storpool]]></TM_MAD>
      <TYPE><![CDATA[BLOCK]]></TYPE>
    </DISK>
    <DISK>
      <ALLOW_ORPHANS><![CDATA[yes]]></ALLOW_ORPHANS>
      <CLONE><![CDATA[YES]]></CLONE>
      <CLONE_TARGET><![CDATA[SELF]]></CLONE_TARGET>
      <CLUSTER_ID><![CDATA[0,100]]></CLUSTER_ID>
      <DATASTORE><![CDATA[default]]></DATASTORE>
      <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
      <DEV_PREFIX><![CDATA[sd]]></DEV_PREFIX>
      <DISK_ID><![CDATA[2]]></DISK_ID>
      <DISK_SNAPSHOT_TOTAL_SIZE><![CDATA[0]]></DISK_SNAPSHOT_TOTAL_SIZE>
      <DISK_TYPE><![CDATA[BLOCK]]></DISK_TYPE>
      <DRIVER><![CDATA[raw]]></DRIVER>
      <FORMAT><![CDATA[raw]]></FORMAT>
      <IMAGE><![CDATA[test]]></IMAGE>
      <IMAGE_ID><![CDATA[17]]></IMAGE_ID>
      <IMAGE_STATE><![CDATA[2]]></IMAGE_STATE>
      <IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
      <LN_TARGET><![CDATA[NONE]]></LN_TARGET>
      <ORIGINAL_SIZE><![CDATA[1024]]></ORIGINAL_SIZE>
      <READONLY><![CDATA[NO]]></READONLY>
      <SAVE><![CDATA[NO]]></SAVE>
      <SIZE><![CDATA[2048]]></SIZE>
      <SOURCE><![CDATA[ans-ds-1/ans-img-17]]></SOURCE>
      <TARGET><![CDATA[sda]]></TARGET>
      <TM_MAD><![CDATA[storpool]]></TM_MAD>
      <TM_MAD_SYSTEM><![CDATA[storpool]]></TM_MAD_SYSTEM>
      <TYPE><![CDATA[BLOCK]]></TYPE>
    </DISK>
    <DISK>
      <ALLOW_ORPHANS><![CDATA[yes]]></ALLOW_ORPHANS>
      <CLONE><![CDATA[NO]]></CLONE>
      <CLONE_TARGET><![CDATA[SELF]]></CLONE_TARGET>
      <CLUSTER_ID><![CDATA[0,100]]></CLUSTER_ID>
      <DATASTORE><![CDATA[default]]></DATASTORE>
      <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
      <DEV_PREFIX><![CDATA[sd]]></DEV_PREFIX>
      <DISK_ID><![CDATA[3]]></DISK_ID>
      <DISK_SNAPSHOT_TOTAL_SIZE><![CDATA[0]]></DISK_SNAPSHOT_TOTAL_SIZE>
      <DISK_TYPE><![CDATA[BLOCK]]></DISK_TYPE>
      <DRIVER><![CDATA[raw]]></DRIVER>
      <FORMAT><![CDATA[raw]]></FORMAT>
      <IMAGE><![CDATA[perstest1]]></IMAGE>
      <IMAGE_ID><![CDATA[10]]></IMAGE_ID>
      <IMAGE_STATE><![CDATA[8]]></IMAGE_STATE>
      <IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
      <LN_TARGET><![CDATA[NONE]]></LN_TARGET>
      <ORIGINAL_SIZE><![CDATA[1024]]></ORIGINAL_SIZE>
      <PERSISTENT><![CDATA[YES]]></PERSISTENT>
      <READONLY><![CDATA[NO]]></READONLY>
      <SAVE><![CDATA[YES]]></SAVE>
      <SIZE><![CDATA[1024]]></SIZE>
      <SOURCE><![CDATA[ans-ds-1/ans-img-10]]></SOURCE>
      <TARGET><![CDATA[sdb]]></TARGET>
      <TM_MAD><![CDATA[storpool]]></TM_MAD>
      <TM_MAD_SYSTEM><![CDATA[storpool]]></TM_MAD_SYSTEM>
      <TYPE><![CDATA[BLOCK]]></TYPE>
    </DISK>
    <GRAPHICS>
      <LISTEN><![CDATA[0.0.0.0]]></LISTEN>
      <PORT><![CDATA[5918]]></PORT>
      <TYPE><![CDATA[VNC]]></TYPE>
    </GRAPHICS>
    <MEMORY><![CDATA[128]]></MEMORY>
    <NIC>
      <AR_ID><![CDATA[0]]></AR_ID>
      <BRIDGE><![CDATA[virbr0]]></BRIDGE>
      <BRIDGE_TYPE><![CDATA[linux]]></BRIDGE_TYPE>
      <CLUSTER_ID><![CDATA[0,100]]></CLUSTER_ID>
      <FILTER_IP_SPOOFING><![CDATA[YES]]></FILTER_IP_SPOOFING>
      <FILTER_MAC_SPOOFING><![CDATA[YES]]></FILTER_MAC_SPOOFING>
      <GATEWAY><![CDATA[192.168.122.1]]></GATEWAY>
      <IP><![CDATA[192.168.122.2]]></IP>
      <MAC><![CDATA[02:00:c0:a8:7a:02]]></MAC>
      <MODEL><![CDATA[virtio]]></MODEL>
      <NAME><![CDATA[NIC0]]></NAME>
      <NETWORK><![CDATA[192.168.122-virbr0]]></NETWORK>
      <NETWORK_ID><![CDATA[0]]></NETWORK_ID>
      <NETWORK_UNAME><![CDATA[oneadmin]]></NETWORK_UNAME>
      <NIC_ID><![CDATA[0]]></NIC_ID>
      <SECURITY_GROUPS><![CDATA[0]]></SECURITY_GROUPS>
      <TARGET><![CDATA[one-18-0]]></TARGET>
      <VN_MAD><![CDATA[fw]]></VN_MAD>
    </NIC>
    <NIC_DEFAULT>
      <MODEL><![CDATA[virtio]]></MODEL>
    </NIC_DEFAULT>
    <OS>
      <ARCH><![CDATA[x86_64]]></ARCH>
      <FIRMWARE><![CDATA[]]></FIRMWARE>
      <FIRMWARE_SECURE><![CDATA[YES]]></FIRMWARE_SECURE>
      <UUID><![CDATA[5e903ecf-1113-4cf8-bccf-44604fdf30bf]]></UUID>
    </OS>
    <SECURITY_GROUP_RULE>
      <PROTOCOL><![CDATA[ALL]]></PROTOCOL>
      <RULE_TYPE><![CDATA[OUTBOUND]]></RULE_TYPE>
      <SECURITY_GROUP_ID><![CDATA[0]]></SECURITY_GROUP_ID>
      <SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME>
    </SECURITY_GROUP_RULE>
    <SECURITY_GROUP_RULE>
      <PROTOCOL><![CDATA[ALL]]></PROTOCOL>
      <RULE_TYPE><![CDATA[INBOUND]]></RULE_TYPE>
      <SECURITY_GROUP_ID><![CDATA[0]]></SECURITY_GROUP_ID>
      <SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME>
    </SECURITY_GROUP_RULE>
    <TEMPLATE_ID><![CDATA[5]]></TEMPLATE_ID>
    <TM_MAD_SYSTEM><![CDATA[storpool]]></TM_MAD_SYSTEM>
    <VMID><![CDATA[18]]></VMID>
  </TEMPLATE>
  <USER_TEMPLATE>
    <HOT_RESIZE>
      <CPU_HOT_ADD_ENABLED><![CDATA[NO]]></CPU_HOT_ADD_ENABLED>
      <MEMORY_HOT_ADD_ENABLED><![CDATA[NO]]></MEMORY_HOT_ADD_ENABLED>
    </HOT_RESIZE>
    <LOGO><![CDATA[images/logos/linux.png]]></LOGO>
    <MEMORY_UNIT_COST><![CDATA[MB]]></MEMORY_UNIT_COST>
  </USER_TEMPLATE>
  <HISTORY_RECORDS>
    <HISTORY>
      <OID>18</OID>
      <SEQ>17</SEQ>
      <HOSTNAME>one512kvm1</HOSTNAME>
      <HID>0</HID>
      <CID>0</CID>
      <STIME>1677246060</STIME>
      <ETIME>0</ETIME>
      <VM_MAD><![CDATA[kvm]]></VM_MAD>
      <TM_MAD><![CDATA[storpool]]></TM_MAD>
      <DS_ID>0</DS_ID>
      <PSTIME>0</PSTIME>
      <PETIME>0</PETIME>
      <RSTIME>1677246060</RSTIME>
      <RETIME>0</RETIME>
      <ESTIME>0</ESTIME>
      <EETIME>0</EETIME>
      <ACTION>0</ACTION>
      <UID>-1</UID>
      <GID>-1</GID>
      <REQUEST_ID>-1</REQUEST_ID>
    </HISTORY>
  </HISTORY_RECORDS>
</VM>

Other option is to stop the opennebula service and alter the database directly (dump/edit/restore or write a patch module for onedb on Ruby. I was using onedb patches for the pre ‘onedb update-body’ era of OpenNebula, though. So not sure is the patching interface still available for onedb)

Yes, I have modified that section.

About modifying VM directly, how could I do that? When I stop opennebula services, I think I can’t access to db… so… could you help me more and explain step by step?

Thanks.

You could iteract directly with the database, defined in the oned.conf - sqlite3 or mysql/postgresql. You should use the DB tools to alter the given backend. The XML are directly inserted in the DB, table vm_pool rows body and short_body…
But I think you should first expend all gaming options possible using onedb update-body. Like - when there is an issue resuming after undeploy - try editing the VM in undeployed state…

When VM is undeployed, “onedm update-body” shows correctly parameter <AUTOMATIC_DS_REQUIREMENTS>, but if user (or me) resumes VM from Sunstone, that parameter takes again value TM_MAD=ssh. However, if I resume from CLI as oneadmin with “onedb deploy VM_ID HOST_ID”, VM starts OK. Why?

Here are the places in the code where the AUTOMATIC_DS_REQUIREMENTS are generated:

So you should take a look what/where is set and is there any ‘qcow2’ leftovers that needs to be altered…

I changed both TM_MAD=ssh in section (VM contains two disks), but I didn’t change history record. How can I change it?

I think you should first expend all gaming options possible using onedb update-body. Like - when there is an issue resuming after undeploy - try editing the VM in undeployed state….

.