We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2fc60 commit c4dad08Copy full SHA for c4dad08
1 file changed
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
@@ -2762,7 +2762,11 @@ public DevicesDef getDevices() {
2762
@Override
2763
public String toString() {
2764
StringBuilder vmBuilder = new StringBuilder();
2765
- vmBuilder.append("<domain type='" + _hvsType + "'>\n");
+ if ("kvm".equalsIgnoreCase(_hvsType)) {
2766
+ vmBuilder.append("<domain type='" + _hvsType + "' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>\n");
2767
+ } else {
2768
+ vmBuilder.append("<domain type='" + _hvsType + "'>\n");
2769
+ }
2770
vmBuilder.append("<name>" + _domName + "</name>\n");
2771
if (_domUUID != null) {
2772
vmBuilder.append("<uuid>" + _domUUID + "</uuid>\n");
0 commit comments