VBoxManageHelp.cpp revision c0a5da26f7222b0a486d6d9ba4d1f475a78a2c73
6a67d144095c31bbafed93cec1619590157335eajvergara * VBoxManage - help and other message output.
6a67d144095c31bbafed93cec1619590157335eajvergara * Copyright (C) 2006-2012 Oracle Corporation
6a67d144095c31bbafed93cec1619590157335eajvergara * This file is part of VirtualBox Open Source Edition (OSE), as
6a67d144095c31bbafed93cec1619590157335eajvergara * available from http://www.virtualbox.org. This file is free software;
6a67d144095c31bbafed93cec1619590157335eajvergara * you can redistribute it and/or modify it under the terms of the GNU
6a67d144095c31bbafed93cec1619590157335eajvergara * General Public License (GPL) as published by the Free Software
6a67d144095c31bbafed93cec1619590157335eajvergara * Foundation, in version 2 as it comes in the "COPYING" file of the
6a67d144095c31bbafed93cec1619590157335eajvergara * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
6a67d144095c31bbafed93cec1619590157335eajvergara * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
f71f7a61dec7c9089378d14493ad564a1dedf0b5neil_a_wilson/*******************************************************************************
6a67d144095c31bbafed93cec1619590157335eajvergara* Header Files *
6a67d144095c31bbafed93cec1619590157335eajvergara*******************************************************************************/
6a67d144095c31bbafed93cec1619590157335eajvergara RTStrmPrintf(pStrm, VBOX_PRODUCT " Command Line Management Interface Version "
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suter "All rights reserved.\n"
6a67d144095c31bbafed93cec1619590157335eajvergaravoid printUsage(USAGECATEGORY u64Cmd, PRTSTREAM pStrm)
6a67d144095c31bbafed93cec1619590157335eajvergara bool fDumpOpts = false;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fLinux = true;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fLinux = false;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fWin = true;
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter bool fWin = false;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fSolaris = true;
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara bool fSolaris = false;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fFreeBSD = true;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fFreeBSD = false;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fDarwin = false;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fVBoxSDL = true;
6a67d144095c31bbafed93cec1619590157335eajvergara bool fVBoxSDL = false;
2401d3c2af505789c7c3b860a43e973f27731243jvergara " VBoxManage [<general option>] <command>\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara "General Options:\n \n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [-v|--version] print version number and exit\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [-q|--nologo] suppress the logo\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [--settingspw <pw>] provide the settings password\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [--settingspwfile <file>] provide a file containing the settings password\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara "Commands:\n \n");
6a67d144095c31bbafed93cec1619590157335eajvergara "%s list [--long|-l]%s vms|runningvms|ostypes|hostdvds|hostfloppies|\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " bridgedifs|hostonlyifs|dhcpservers|hostinfo|\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " bridgedifs|dhcpservers|hostinfo|\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " hostcpuids|hddbackends|hdds|dvds|floppies|\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " usbhost|usbfilters|systemproperties|extpacks|\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " groups\n"
6a67d144095c31bbafed93cec1619590157335eajvergara "%s showvminfo %s <uuid>|<name> [--details]\n"
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suter " [--machinereadable]\n"
ffa279622cea61d6eec13e3df386bd3015388388jvergara "%s showvminfo %s <uuid>|<name> --log <idx>\n"
6a67d144095c31bbafed93cec1619590157335eajvergara "%s registervm %s <filename>\n"
6a67d144095c31bbafed93cec1619590157335eajvergara "%s unregistervm %s <uuid>|<name> [--delete]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara "%s createvm %s --name <name>\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--groups <group>, ...]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--ostype <ostype>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--register]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--basefolder <path>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--uuid <uuid>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara "%s modifyvm %s <uuid|name>\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--name <name>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--groups <group>, ...]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--ostype <ostype>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--memory <memorysize in MB>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--pagefusion on|off]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--vram <vramsize in MB>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--acpi on|off]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--pciattach 03:04.0]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--pciattach 03:04.0@02:01.0]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--pcidetach 03:04.0]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--ioapic on|off]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--pae on|off]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--hpet on|off]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--hwvirtex on|off]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--hwvirtexexcl on|off]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--nestedpaging on|off]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--largepages on|off]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--vtxvpid on|off]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--synthcpu on|off]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--cpuidset <leaf> <eax> <ebx> <ecx> <edx>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--cpuidremove <leaf>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--cpuidremoveall]\n"
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suter " [--hardwareuuid <uuid>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--cpus <number>]\n"
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suter " [--cpuhotplug on|off]\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [--plugcpu <id>]\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [--unplugcpu <id>]\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [--cpuexecutioncap <1-100>]\n"
252ea19a057499e16910a99b951793bdd6d468f7kenneth_suter " [--rtcuseutc on|off]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--monitorcount <number>]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara " [--accelerate3d on|off]\n"
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suter " [--accelerate2dvideo on|off]\n"
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suter " [--firmware bios|efi|efi32|efi64]\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [--chipset ich9|piix3]\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [--bioslogofadein on|off]\n"
2401d3c2af505789c7c3b860a43e973f27731243jvergara " [--bioslogofadeout on|off]\n"
76d78217d6ca09688d73efe4da48c76e6abc1f23kenneth_suter " [--bioslogodisplaytime <msec>]\n"
76d78217d6ca09688d73efe4da48c76e6abc1f23kenneth_suter " [--bioslogoimagepath <imagepath>]\n"
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergara " [--biosbootmenu disabled|menuonly|messageandmenu]\n"
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergara " [--biossystemtimeoffset <msec>]\n"
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergara " [--biospxedebug on|off]\n"
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergara " [--boot<1-4> none|floppy|dvd|disk|net>]\n"
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergara " [--nic<1-N> none|null|nat|bridged|intnet"
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergara "|hostonly"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--nictype<1-N> Am79C970A|Am79C973"
6a67d144095c31bbafed93cec1619590157335eajvergara "|\n 82540EM|82543GC|82545EM"
6a67d144095c31bbafed93cec1619590157335eajvergara "|\n virtio"
6a67d144095c31bbafed93cec1619590157335eajvergara#endif /* VBOX_WITH_VIRTIO */
6a67d144095c31bbafed93cec1619590157335eajvergara " [--cableconnected<1-N> on|off]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--nictrace<1-N> on|off]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--nictracefile<1-N> <filename>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--nicproperty<1-N> name=[value]]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--nicspeed<1-N> <kbps>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--nicbootprio<1-N> <priority>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--nicpromisc<1-N> deny|allow-vms|allow-all]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--nicbandwidthgroup<1-N> none|<name>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--bridgeadapter<1-N> none|<devicename>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--hostonlyadapter<1-N> none|<devicename>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--intnet<1-N> <network name>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--natnet<1-N> <network>|default]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--nicgenericdrv<1-N> <driver>\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--natsettings<1-N> [<mtu>],[<socksnd>],\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [<sockrcv>],[<tcpsnd>],\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [<tcprcv>]]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--natpf<1-N> [<rulename>],tcp|udp,[<hostip>],\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " <hostport>,[<guestip>],<guestport>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--natpf<1-N> delete <rulename>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--nattftpprefix<1-N> <prefix>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--nattftpfile<1-N> <file>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--nattftpserver<1-N> <ip>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--natbindip<1-N> <ip>\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--natdnspassdomain<1-N> on|off]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--natdnsproxy<1-N> on|off]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--natdnshostresolver<1-N> on|off]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--nataliasmode<1-N> default|[log],[proxyonly],\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [sameports]]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--macaddress<1-N> auto|<mac>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--mouse ps2|usb|usbtablet\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--keyboard ps2|usb\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--uart<1-N> off|<I/O base> <IRQ>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--uartmode<1-N> disconnected|\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " server <pipe>|\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " client <pipe>|\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " file <file>|\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " <devicename>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--lpt<1-N> off|<I/O base> <IRQ>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--lptmode<1-N> <devicename>]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--guestmemoryballoon <balloonsize in MB>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--gueststatisticsinterval <seconds>]\n"
48013e6d1c0677bd7649309e6b0b611b6c364c77jvergara /* Get the line break sorted when dumping all option variants. */
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--audiocontroller ac97|hda|sb16]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--clipboard disabled|hosttoguest|guesttohost|\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " bidirectional]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--draganddrop disabled|hosttoguest\n");
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--vrde on|off]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--vrdeextpack default|<name>\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--vrdeproperty <name=[value]>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--vrdeport <hostport>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--vrdeaddress <hostip>]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--vrdeauthtype null|external|guest]\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--vrdeauthlibrary default|<name>\n"
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter " [--vrdemulticon on|off]\n"
6a67d144095c31bbafed93cec1619590157335eajvergara " [--vrdereusecon on|off]\n"
#ifdef VBOX_WITH_USB_CARDREADER
if (fVBoxSDL)
#if defined(VBOX_WITH_NETFLT)
#ifdef VBOX_WITH_GUEST_PROPS
#ifdef VBOX_WITH_GUEST_CONTROL
#if defined(VBOX_WITH_NETFLT)
# if !defined(RT_OS_SOLARIS)
#if defined(VBOX_WITH_NETFLT)
#if defined(VBOX_WITH_NETFLT)
#ifndef VBOX_ONLY_DOCS
if (g_fInternalMode)
return RTEXITCODE_SYNTAX;
RTEXITCODE errorGetOpt(USAGECATEGORY fUsageCategory, int rc, union RTGETOPTUNION const *pValueUnion)
return RTEXITCODE_SUCCESS;
#ifndef VBOX_ONLY_DOCS
if (g_fInternalMode)
return RTEXITCODE_SUCCESS;
#ifndef VBOX_ONLY_DOCS
if (g_fInternalMode)
if (rc > 0)
return RTEXITCODE_SYNTAX;