mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
VBox bug when starting machine from old versions
* src/vbox/vbox_tmpl.c: fix a bug where one can't start domains defined with older builds or with empty "FRONTEND/Type" tag in their xml files.
This commit is contained in:
parent
f2ad7824aa
commit
b22d935dbe
@ -2850,6 +2850,13 @@ static int vboxDomainCreate(virDomainPtr dom) {
|
|||||||
vrdpPresent = 1;
|
vrdpPresent = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!vrdpPresent && !sdlPresent && !guiPresent) {
|
||||||
|
/* if nothing is selected it means either the machine xml
|
||||||
|
* file is really old or some values are missing so fallback
|
||||||
|
*/
|
||||||
|
guiPresent = 1;
|
||||||
|
}
|
||||||
|
|
||||||
data->pFuncs->pfnUtf8Free(valueTypeUtf8);
|
data->pFuncs->pfnUtf8Free(valueTypeUtf8);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -2882,7 +2889,7 @@ static int vboxDomainCreate(virDomainPtr dom) {
|
|||||||
data->pFuncs->pfnUtf8ToUtf16("vrdp", &sessionType);
|
data->pFuncs->pfnUtf8ToUtf16("vrdp", &sessionType);
|
||||||
}
|
}
|
||||||
|
|
||||||
data->vboxObj->vtbl->OpenRemoteSession(data->vboxObj,
|
rc = data->vboxObj->vtbl->OpenRemoteSession(data->vboxObj,
|
||||||
data->vboxSession,
|
data->vboxSession,
|
||||||
iid,
|
iid,
|
||||||
sessionType,
|
sessionType,
|
||||||
|
Loading…
Reference in New Issue
Block a user