From e9867e2b8c87b725116efd95c2dedcfd7c36ff11 Mon Sep 17 00:00:00 2001 From: Florent BEAUCHAMP Date: Thu, 21 Sep 2023 14:25:10 +0200 Subject: [PATCH] fix(xo-server): add mbr for cloud init only for windows VM --- CHANGELOG.unreleased.md | 2 ++ packages/xo-server/src/xapi/index.mjs | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index da2538da03a..48fda45319b 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -12,6 +12,7 @@ > Users must be able to say: “I had this issue, happy to know it's fixed” - [Backup/Mirror] Fix backup report not being sent (PR [#7049](https://github.com/vatesfr/xen-orchestra/pull/7049)) +- [Cloudinit] Fix Kaleos VM not bootable (PR [#7050](https://github.com/vatesfr/xen-orchestra/pull/7050)) ### Packages to release @@ -30,5 +31,6 @@ - xo-server-backup-reports patch +- xo-server patch diff --git a/packages/xo-server/src/xapi/index.mjs b/packages/xo-server/src/xapi/index.mjs index ee4859b4b5b..8b6a498ec53 100644 --- a/packages/xo-server/src/xapi/index.mjs +++ b/packages/xo-server/src/xapi/index.mjs @@ -1328,7 +1328,10 @@ export default class Xapi extends XapiBase { ) ), ]) - buffer = addMbr(buffer) + // only add the MBR for windows VM + if (vm.platform?.virdian === true) { + buffer = addMbr(buffer) + } const vdi = await this._getOrWaitObject( await this.VDI_create({ name_label: 'XO CloudConfigDrive',