diff --git a/src/onedb/local/5.6.0_to_5.7.80.rb b/src/onedb/local/5.6.0_to_5.7.80.rb
index 07e3379e1c..57e1af0db4 100644
--- a/src/onedb/local/5.6.0_to_5.7.80.rb
+++ b/src/onedb/local/5.6.0_to_5.7.80.rb
@@ -313,6 +313,11 @@ module Migrator
xml.STIME body.root.xpath('STIME').text
xml.ETIME body.root.xpath('ETIME').text
xml.DEPLOY_ID body.root.xpath('DEPLOY_ID').text
+
+ xml.LOCK {
+ xml.LOCKED body.root.xpath('LOCK/LOCKED').text unless body.root.xpath('LOCK/LOCKED').text.empty?
+ } unless body.root.xpath('LOCK').text.empty?
+
xml.TEMPLATE {
xml.AUTOMATIC_REQUIREMENTS body.root.xpath('TEMPLATE/AUTOMATIC_REQUIREMENTS').text
xml.AUTOMATIC_DS_REQUIREMENTS body.root.xpath('TEMPLATE/AUTOMATIC_DS_REQUIREMENTS').text unless body.root.xpath('TEMPLATE/AUTOMATIC_DS_REQUIREMENTS').text.empty?
diff --git a/src/vm/VirtualMachine.cc b/src/vm/VirtualMachine.cc
index 8e8ffa8f11..e3b8e590af 100644
--- a/src/vm/VirtualMachine.cc
+++ b/src/vm/VirtualMachine.cc
@@ -2357,6 +2357,11 @@ string& VirtualMachine::to_xml_short(string& xml)
<< "" << etime << ""
<< "" << deploy_id << "";
+ if (locked != PoolObjectSQL::ST_NONE)
+ {
+ oss << "" << static_cast(locked) << "";
+ }
+
oss << ""
<< "" << cpu_tmpl << ""
<< "" << mem_tmpl << ""