1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-04-01 06:50:25 +03:00

M #-: Change the default emulator path

Now it points to the qemu-kvm-one script that adjust to each distro. The
qemu-kvm-one link is generated by the node-kvm packages.
This commit is contained in:
Ruben S. Montero 2023-09-05 10:49:15 +02:00
parent 2075b02cf4
commit c7f550fd2d
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -1025,9 +1025,10 @@ int LibVirtDriver::deployment_description_kvm(
file << "\t<devices>" << endl;
get_attribute(vm, host, cluster, "EMULATOR", emulator_path);
if (emulator_path.empty())
{
emulator_path = "/usr/bin/kvm";
emulator_path = "/usr/bin/qemu-kvm-one";
}
file << "\t\t<emulator>" << one_util::escape_xml(emulator_path)