mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
feature #4358: Adds <metadata><vm_xml64> element to the deployment file.
This new element includes de VM template in XML format and base64 encoded
This commit is contained in:
1 parent
6004270685
commit
66bc3ec399
1 file changed
+5
@@ -209,6 +209,8 @@ int LibVirtDriver::deployment_description_kvm(
|
||||
string default_raw = "";
|
||||
string data = "";
|
||||
|
||||
string vm_xml;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
file.open(file_name.c_str(), ios::out);
|
||||
@@ -1152,6 +1154,9 @@ int LibVirtDriver::deployment_description_kvm(
|
||||
<< "\t\t<system_datastore>"
|
||||
<< one_util::escape_xml(vm->get_remote_system_dir())
|
||||
<< "</system_datastore>\n"
|
||||
<< "\t\t<vm_xml64>"
|
||||
<< one_util::escape_xml(one_util::base64_encode(vm->to_xml(vm_xml)))
|
||||
<< "<vm_xml64>\n"
|
||||
<< "\t</metadata>\n";
|
||||
|
||||
file << "</domain>" << endl;
|
||||
|
||||
Reference in new issue
Block a user