diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c index 7fcbd11b6b9d0c183b11a083ba2d3d6b2554c5b6..1bc9c8bd1801996b22620d47d642cceefd51bdba 100644 --- a/src/parallels/parallels_sdk.c +++ b/src/parallels/parallels_sdk.c @@ -3080,6 +3080,13 @@ static int prlsdkAddDisk(PRL_HANDLE sdkdom, if (prlsdkAddDeviceToBootList(sdkdom, devIndex, devType, 0) < 0) goto cleanup; + + /* If we add physical device as a boot disk to container + * we have to specify mount point for it */ + if (isCt) { + pret = PrlVmDevHd_SetMountPoint(sdkdisk, "/"); + prlsdkCheckRetGoto(pret, cleanup); + } } return 0; @@ -3314,6 +3321,13 @@ prlsdkDoApplyConfig(virConnectPtr conn, goto error; } + for (i = 0; i < def->nfss; i++) { + if (STREQ(def->fss[i]->dst, "/")) + needBoot = false; + if (prlsdkAddFS(sdkdom, def->fss[i]) < 0) + goto error; + } + for (i = 0; i < def->ndisks; i++) { bool bootDisk = false; @@ -3327,11 +3341,6 @@ prlsdkDoApplyConfig(virConnectPtr conn, goto error; } - for (i = 0; i < def->nfss; i++) { - if (prlsdkAddFS(sdkdom, def->fss[i]) < 0) - goto error; - } - return 0; error: