1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-27 10:50:10 +03:00

bug #1367: Use type raw for cd's including context

This commit is contained in:
Ruben S. Montero 2012-08-28 20:30:14 +02:00
parent 03f15b6498
commit 00e655d58b

View File

@ -370,7 +370,11 @@ int LibVirtDriver::deployment_description_kvm(
file << "\t\t\t<driver name='qemu' type='";
if ( !driver.empty() )
if ( type == "CDROM" ) // Use driver raw for CD's
{
file << "raw";
}
else if ( !driver.empty() )
{
file << driver;
}
@ -415,16 +419,7 @@ int LibVirtDriver::deployment_description_kvm(
file << "\t\t\t<target dev='" << target << "'/>" << endl;
file << "\t\t\t<readonly/>" << endl;
file << "\t\t\t<driver name='qemu' type='";
if ( !driver.empty() )
{
file << driver << "'/>" << endl;
}
else
{
file << default_driver << "'/>" << endl;
}
file << "\t\t\t<driver name='qemu' type='raw'/>" << endl;
file << "\t\t</disk>" << endl;
}