You can disable certain menu actions in the VM window:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeMenus OPTION[,OPTION...]
where
Do not show any menu in the VM window.
Do not show Application/File menu in the VM window.
Do not show the Machine menu in the VM window.
Do not show the View menu in the VM window.
Do not show Input menu in the VM window.
Do not show the Devices menu in the VM window.
Do not show the Help menu in the VM window.
Do not show the Debug menu in the VM window. The Debug menu is only visible if the GUI was started with special command line parameters or environment variable settings.
This is a per-VM or global setting. Any combination of the above is allowed. To restore the default behavior, use the following command:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeMenus
You can also disable certain menu actions of certain menus. Use the following command to disable certain actions of the Application menu. This is only available on macOS hosts.
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeApplicationMenuActions OPTION[,OPTION...]
where
Do not show any menu item in this menu.
Do not show the Preferences menu item in this menu.
Do not show the Network Operations Manager menu item in this menu.
Do not show the Reset All Warnings menu item in this menu.
Do not show the Close menu item in this menu.
This is a per-VM or global setting. Any combination of the above is allowed. To restore the default behavior, use the following command:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeMenus
Use the following command to disable certain actions of the Machine menu:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeMachineMenuActions OPTION[,OPTION...]
where
Do not show any menu item in this menu.
Do not show the Settings menu item in this menu.
Do not show the Take Snapshot... menu item in this menu.
Do not show the Session Information... menu item in this menu.
Do not show the File Manager... menu item in this menu.
Do not show the Pause menu item in this menu.
Do not show the Reset menu item in this menu.
Do not show the ACPI Shutdown menu item in this menu.
This is a per-VM or global setting. Any combination of the above is allowed. To restore the default behavior, use
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeMachineMenuActions
Use the following command to disable certain actions of the View menu:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeViewMenuActions OPTION[,OPTION...]
where
Do not show any menu item in this menu.
Do not show the Full-screen Mode menu item in this menu.
Do not show the Seamless Mode menu item in this menu.
Do not show the Scaled Mode menu item in this menu.
Do not show the Auto-resize Guest Display menu item in this menu.
Do not show the Adjust Window Size menu item in this menu.
Do not show the Take Screenshot... menu item in this menu.
Do not show the Recording menu item in this menu.
Do not show the Remote Display menu item in this menu.
Do not show the Menu Bar menu item in this menu.
Do not show the Menu Bar Settings... menu item in this menu.
Do not show the Status Bar menu item in this menu.
Do not show the Statusbar Settings... menu item in this menu.
This is a per-VM or global setting. Any combination of the above is allowed. To restore the default behavior, use
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeViewMenuActions
Use the following command to disable certain actions of the Input menu:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeInputMenuActions OPTION[,OPTION...]
where
Do not show any menu item in this menu.
Do not show the Keyboard menu item in this menu.
Do not show the Keyboard Settings... menu item in this menu.
Do not show the Soft Keyboard... menu item in this menu.
Do not show the Insert Ctrl-Alt-Del menu item in this menu.
Do not show the Insert Ctrl-Alt-Backspace menu item in this menu.
Do not show the Insert Ctrl-Break menu item in this menu.
Do not show the Insert Insert menu item in this menu.
Do not show the Insert Print Screen menu item in this menu.
Do not show the Insert Alt Print Screen menu item in this menu.
Do not show the Insert Host Key Combo menu item in this menu.
Do not show the MouseIntegration menu item in this menu.
This is a per-VM or global setting. Any combination of the above is allowed. To restore the default behavior, use
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeInputMenuActions
Use the following command to disable certain actions of the Devices menu:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeDevicesMenuActions OPTION[,OPTION...]
where
Do not show any menu item in this menu.
Do not show the Hard Disks menu item in this menu.
Do not show the Optical Devices menu item in this menu.
Do not show the Floppy Drives menu item in this menu.
Do not show the Audio menu item in this menu.
Do not show the Network menu item in this menu.
Do not show the Network Settings menu item in this menu.
Do not show the USB menu item in this menu.
Do not show the WebCams menu item in this menu.
Do not show the Shared Folders menu item in this menu.
Do not show the Shared Folders Settings... menu item in this menu.
Do not show the Shared Clipboard menu item in this menu.
Do not show the Drag and Drop menu item in this menu.
Do not show the Insert Guest Additions CD image... menu item in this menu.
This is a per-VM or global or global setting. Any combination of the above is allowed. To restore the default behavior, use
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeDevicesMenuActions
Use the following command to disable certain actions of the Debug menu:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeDebuggerMenuActions OPTION[,OPTION...]
where
Do not show any menu item in this menu.
Do not show the Statistics... menu item in this menu.
Do not show the Command Line... menu item in this menu.
Do not show the Logging... menu item in this menu.
Do not show the Show Log... menu item in this menu.
Do not show the Guest Control Terminal... menu item in this menu.
This is a per-VM or global setting. Any combination of the above is allowed. To restore the default behavior, use
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeDebuggerMenuActions
Use the following command to disable certain actions of the View menu:
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeHelpMenuActions OPTION[,OPTION...]
where
Do not show any menu item in this menu.
Do not show the Contents... menu item in this menu.
Do not show the VirtualBox Web Site... menu item in this menu.
Do not show the VirtualBox Bug Tracker... menu item in this menu.
Do not show the VirtualBox Forums... menu item in this menu.
Do not show the Oracle Web Site... menu item in this menu.
Do not show the About VirtualBox... menu item in this menu. Only for non-macOS hosts.
This is a per-VM or global setting. Any combination of the above is allowed. To restore the default behavior, use
VBoxManage setextradata "VM name"|global GUI/RestrictedRuntimeHelpMenuActions