mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-13 00:46:03 -06: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;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
} else {
|
||||
@ -2882,12 +2889,12 @@ static int vboxDomainCreate(virDomainPtr dom) {
|
||||
data->pFuncs->pfnUtf8ToUtf16("vrdp", &sessionType);
|
||||
}
|
||||
|
||||
data->vboxObj->vtbl->OpenRemoteSession(data->vboxObj,
|
||||
data->vboxSession,
|
||||
iid,
|
||||
sessionType,
|
||||
env,
|
||||
&progress );
|
||||
rc = data->vboxObj->vtbl->OpenRemoteSession(data->vboxObj,
|
||||
data->vboxSession,
|
||||
iid,
|
||||
sessionType,
|
||||
env,
|
||||
&progress );
|
||||
if (NS_FAILED(rc)) {
|
||||
vboxError(dom->conn, VIR_ERR_OPERATION_FAILED,
|
||||
"%s", "openremotesession failed, domain can't be started");
|
||||
|
Loading…
Reference in New Issue
Block a user