diff --git a/src/vmm/LibVirtDriverKVM.cc b/src/vmm/LibVirtDriverKVM.cc index f5cd095a79..ed97eda3bd 100644 --- a/src/vmm/LibVirtDriverKVM.cc +++ b/src/vmm/LibVirtDriverKVM.cc @@ -909,15 +909,23 @@ int LibVirtDriver::deployment_description_kvm( // ---- Disk type and source for the image ---- - if ( type == "BLOCK" ) + if ( type == "BLOCK" || type == "BLOCK_CDROM" ) { ostringstream dev; dev << vm->get_system_dir() << "/disk." << disk_id; - file << "\t\t\n" - << "\t\t\t\n"; + if (type == "BLOCK_CDROM") + { + file << "\t\t" << endl; + } + else + { + file << "\t\t" << endl; + } + + file << "\t\t\t" << endl; } else if ( type == "ISCSI" ) {