From 9132a26063f7e35c571b0b3c29f1f9b982ba9f8f Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Fri, 28 Oct 2022 11:04:29 +0100 Subject: [PATCH] Fix changing from passthru to custom CPU. --- plugins/dynamix.vm.manager/include/libvirt_helpers.php | 2 ++ plugins/dynamix.vm.manager/templates/Custom.form.php | 2 +- plugins/dynamix.vm.manager/templates/LibreELEC.form.php | 2 +- plugins/dynamix.vm.manager/templates/OpenELEC.form.php | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/dynamix.vm.manager/include/libvirt_helpers.php b/plugins/dynamix.vm.manager/include/libvirt_helpers.php index 6ccab4f76..4e24c7615 100644 --- a/plugins/dynamix.vm.manager/include/libvirt_helpers.php +++ b/plugins/dynamix.vm.manager/include/libvirt_helpers.php @@ -1188,6 +1188,8 @@ if (!$new['devices']['tpm']) unset($old['devices']['tpm']); // remove existing auto-generated settings unset($old['cputune']['vcpupin'],$old['devices']['video'],$old['devices']['disk'],$old['devices']['interface'],$old['devices']['filesystem'],$old['cpu']['@attributes'],$old['os']['boot'],$old['os']['loader'],$old['os']['nvram']); + // Remove old CPU cache and features + unset($old['cpu']['cache'], $old['cpu']['feature']) ; // set namespace $new['metadata']['vmtemplate']['@attributes']['xmlns'] = 'unraid'; } diff --git a/plugins/dynamix.vm.manager/templates/Custom.form.php b/plugins/dynamix.vm.manager/templates/Custom.form.php index d383f9743..7c164b2c7 100644 --- a/plugins/dynamix.vm.manager/templates/Custom.form.php +++ b/plugins/dynamix.vm.manager/templates/Custom.form.php @@ -313,7 +313,7 @@