Changeset 84570 in vbox
- Timestamp:
- May 27, 2020 3:40:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r84526 r84570 2982 2982 if (fRebootOnFinish) 2983 2983 { 2984 /** @todo Implement this. */2985 vrc = VERR_NOT_IMPLEMENTED;2986 2984 if (pCtx->cVerbose) 2987 RTPrintf("Rebooting is not implemented yet, sorry!\n"); 2988 2989 if (RT_SUCCESS(vrc)) 2985 RTPrintf("Rebooting guest ...\n"); 2986 com::SafeArray<GuestShutdownFlag_T> aShutdownFlags; 2987 aShutdownFlags.push_back(GuestShutdownFlag_Reboot); 2988 CHECK_ERROR(pCtx->pGuest, Shutdown(ComSafeArrayAsInParam(aShutdownFlags))); 2989 if (FAILED(rc)) 2990 2990 { 2991 if (pCtx->cVerbose) 2992 RTPrintf("Rebooting guest ...\n"); 2991 if (rc == VBOX_E_NOT_SUPPORTED) 2992 { 2993 RTPrintf("Current installed Guest Additions don't support automatic rebooting. " 2994 "Please reboot manually.\n"); 2995 vrc = VERR_NOT_SUPPORTED; 2996 } 2997 else 2998 vrc = gctlPrintError(pCtx->pGuest, COM_IIDOF(IGuest)); 2993 2999 } 2994 2995 if (RT_SUCCESS(vrc)) 3000 else 2996 3001 { 2997 3002 if (fWaitReady)
Note:
See TracChangeset
for help on using the changeset viewer.