VBOX: Make the disable USB/COM/LPT/Clipboard/DragDrop VM modifications non-fatal. Some commands appear to have introduced in recent builds of VirtualBox and error out on older builds.

This commit is contained in:
Rom Walton 2013-08-14 11:51:30 -04:00
parent cebe16ccbe
commit e3316714ff
1 changed files with 0 additions and 7 deletions

View File

@ -828,10 +828,8 @@ int VBOX_VM::register_vm() {
); );
command = "modifyvm \"" + vm_name + "\" "; command = "modifyvm \"" + vm_name + "\" ";
command += "--usb off "; command += "--usb off ";
command += "--usbcardreader off ";
retval = vbm_popen(command, output, "modifyusb", false, false); retval = vbm_popen(command, output, "modifyusb", false, false);
if (retval) return retval;
// Tweak the VM's COM Port Support // Tweak the VM's COM Port Support
// //
@ -845,7 +843,6 @@ int VBOX_VM::register_vm() {
command += "--uart2 off "; command += "--uart2 off ";
retval = vbm_popen(command, output, "modifycom", false, false); retval = vbm_popen(command, output, "modifycom", false, false);
if (retval) return retval;
// Tweak the VM's LPT Port Support // Tweak the VM's LPT Port Support
// //
@ -859,7 +856,6 @@ int VBOX_VM::register_vm() {
command += "--lpt2 off "; command += "--lpt2 off ";
retval = vbm_popen(command, output, "modifylpt", false, false); retval = vbm_popen(command, output, "modifylpt", false, false);
if (retval) return retval;
// Tweak the VM's Audio Support // Tweak the VM's Audio Support
// //
@ -872,7 +868,6 @@ int VBOX_VM::register_vm() {
command += "--audio none "; command += "--audio none ";
retval = vbm_popen(command, output, "modifyaudio", false, false); retval = vbm_popen(command, output, "modifyaudio", false, false);
if (retval) return retval;
// Tweak the VM's Clipboard Support // Tweak the VM's Clipboard Support
// //
@ -885,7 +880,6 @@ int VBOX_VM::register_vm() {
command += "--clipboard disabled "; command += "--clipboard disabled ";
retval = vbm_popen(command, output, "modifyclipboard", false, false); retval = vbm_popen(command, output, "modifyclipboard", false, false);
if (retval) return retval;
// Tweak the VM's Drag & Drop Support // Tweak the VM's Drag & Drop Support
// //
@ -898,7 +892,6 @@ int VBOX_VM::register_vm() {
command += "--draganddrop disabled "; command += "--draganddrop disabled ";
retval = vbm_popen(command, output, "modifydragdrop", false, false); retval = vbm_popen(command, output, "modifydragdrop", false, false);
if (retval) return retval;
// Only perform hardware acceleration check on 32-bit VM types, 64-bit VM types require it. // Only perform hardware acceleration check on 32-bit VM types, 64-bit VM types require it.
// //