- Timestamp:
- Mar 26, 2019 4:41:15 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Config.kmk
r77883 r77887 37 37 VBOX_MANUAL_XML_REFENTRY_FILES := \ 38 38 man_VBoxManage-snapshot.xml \ 39 man_VBoxManage-clonevm.xml \ 39 40 man_VBoxManage-mediumio.xml \ 40 41 man_VBoxManage-debugvm.xml \ -
trunk/doc/manual/docbook-refentry-to-C-help.xsl
r77882 r77887 246 246 <xsl:choose> 247 247 <xsl:when test="parent::group"><xsl:value-of select="$arg.or.sep"/></xsl:when> 248 <xsl:when test="parent::arg and self::group"></xsl:when> 248 249 <xsl:when test="ancestor-or-self::*/@sepchar"><xsl:value-of select="ancestor-or-self::*/@sepchar"/></xsl:when> 249 250 <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise> … … 367 368 <xsl:template match="varlistentry/listitem"> 368 369 <xsl:call-template name="check-children"> 369 <xsl:with-param name="UnsupportedNodes" select="*[not(self::para or self::itemizedlist or self::orderedlist )]|text()"/>370 <xsl:with-param name="UnsupportedNodes" select="*[not(self::para or self::itemizedlist or self::orderedlist or self::variablelist)]|text()"/> 370 371 <xsl:with-param name="SupportedNames">para, itemizedlist and orderedlist</xsl:with-param> 371 372 </xsl:call-template> … … 911 912 <xsl:template name="list-nodes"> 912 913 <xsl:param name="Nodes" select="node()"/> 913 914 <for-each select="$Nodes"> 915 <xsl:if test="posision() != 1"> 914 <xsl:for-each select="$Nodes"> 915 <xsl:if test="position() != 1"> 916 916 <xsl:text>, </xsl:text> 917 917 </xsl:if> 918 918 <xsl:choose> 919 919 <xsl:when test="name(.) = ''"> 920 <xsl:text>text ()</xsl:text>920 <xsl:text>text:text()</xsl:text> 921 921 </xsl:when> 922 922 <xsl:otherwise> … … 929 929 </xsl:otherwise> 930 930 </xsl:choose> 931 </for-each> 932 931 </xsl:for-each> 933 932 </xsl:template> 934 933 … … 944 943 <!-- -->: error: Only <xsl:value-of select="$SupportedNames"/> are supported as children to <!-- --> 945 944 <xsl:value-of select="name($Node)"/> 946 <!-- -->Unsupported children: <!-- --> 945 <!-- --> 946 Unsupported children: <!-- --> 947 947 <xsl:call-template name="list-nodes"> 948 948 <xsl:with-param name="Nodes" select="$UnsupportedNodes"/> -
trunk/doc/manual/en_US/man_VBoxManage-clonevm.xml
r77787 r77887 39 39 <!-- The 'id' is mandatory and must start with 'synopsis-'. --> 40 40 <command>VBoxManage clonevm</command> 41 <arg choice=" plain"><replaceable>vm</replaceable></arg>42 43 <arg>--basefolder 44 45 <arg>--group 46 47 <arg>--mode machine | machinechildren | all</arg>48 49 <arg>--name 50 51 <arg>--options link | keepallmacs | keepnatmacs | keepdisknames | keephwuuids</arg>41 <arg choice="req"><replaceable>vmname|uuid</replaceable></arg> 42 43 <arg>--basefolder=<replaceable>basefolder</replaceable></arg> 44 45 <arg>--group=<replaceable>group</replaceable>, ...</arg> 46 47 <arg>--mode=<group choice='plain'><arg choice='plain'>machine</arg><arg choice='plain'>machinechildren</arg><arg choice='plain'>all</arg></group></arg> 48 49 <arg>--name=<replaceable>name</replaceable></arg> 50 51 <arg>--options=<group choice='plain'><arg choice='plain'>link</arg><arg choice='plain'>keepallmacs</arg><arg choice='plain'>keepnatmacs</arg><arg choice='plain'>keepdisknames</arg><arg choice='plain'>keephwuuids</arg></group></arg> 52 52 53 53 <arg>--register</arg> 54 54 55 <arg>--snapshot 56 57 <arg>--uuid 55 <arg>--snapshot=<replaceable>snapshot-name</replaceable></arg> 56 57 <arg>--uuid=<replaceable>uuid</replaceable></arg> 58 58 </cmdsynopsis> 59 59 </refsynopsisdiv> … … 80 80 <variablelist> 81 81 <varlistentry> 82 <term><replaceable>vm </replaceable></term>82 <term><replaceable>vmname|uuid</replaceable></term> 83 83 <listitem><para> 84 84 Specifies the name or UUID of the VM to clone. … … 86 86 </varlistentry> 87 87 <varlistentry> 88 <term><option>--basefolder 88 <term><option>--basefolder=<replaceable>basefolder</replaceable></option></term> 89 89 <listitem><para> 90 90 Specifies the name of the folder in which to save the … … 93 93 </varlistentry> 94 94 <varlistentry> 95 <term><option>--groups 95 <term><option>--groups=<replaceable>group</replaceable>, ...</option></term> 96 96 <listitem><para> 97 97 Assigns the clone to the specified group or groups. If you … … 107 107 </varlistentry> 108 108 <varlistentry> 109 <term><option>--mode 109 <term><option>--mode=machine|machineandchildren|all</option></term> 110 110 <listitem><para> 111 111 Specifies which of the following cloning modes to use: … … 129 129 </varlistentry> 130 130 <varlistentry> 131 <term><option>--name 131 <term><option>--name=<replaceable>name</replaceable></option></term> 132 132 <listitem><para> 133 133 Specifies a new name for the new VM. The default value is … … 139 139 </varlistentry> 140 140 <varlistentry> 141 <term><option>--options </option></term>141 <term><option>--options=option</option></term> 142 142 <listitem><para> 143 143 Specifies how to create a new clone. 144 144 </para><variablelist> 145 145 <varlistentry> 146 <term><option>--options 146 <term><option>--options=link</option></term> 147 147 <listitem><para> 148 148 Creates a linked clone from a snapshot only. … … 150 150 </varlistentry> 151 151 <varlistentry> 152 <term><option>--options 152 <term><option>--options=keepallmacs</option></term> 153 153 <listitem><para> 154 154 Specifies that the new clone reuses the MAC addresses … … 156 156 </para><para> 157 157 If you do not specify this option or the 158 <option>--options 158 <option>--options=keepnatmacs</option> option, the 159 159 default behavior is to reinitialize the MAC addresses 160 160 of each virtual network card. … … 162 162 </varlistentry> 163 163 <varlistentry> 164 <term><option>--options 164 <term><option>--options=keepnatmacs</option></term> 165 165 <listitem><para> 166 166 Specifies that the new clone reuses the MAC addresses … … 169 169 </para><para> 170 170 If you do not specify this option or the 171 <option>--options 171 <option>--options=keepallmacs</option> option, the 172 172 default behavior is to reinitialize the MAC addresses 173 173 of each virtual network card. … … 175 175 </varlistentry> 176 176 <varlistentry> 177 <term><option>--option 177 <term><option>--option=keepdisknames</option></term> 178 178 <listitem><para> 179 179 Specifies that the new clone reuses the disk image … … 183 183 </varlistentry> 184 184 <varlistentry> 185 <term><option>--option 185 <term><option>--option=keephwuuids</option></term> 186 186 <listitem><para> 187 187 Specifies that the new clone reuses the hardware IDs … … 201 201 </varlistentry> 202 202 <varlistentry> 203 <term><option>--snapshot 203 <term><option>--snapshot=<replaceable>snapshot-name</replaceable></option></term> 204 204 <listitem><para> 205 205 Specifies the snapshot on which to base the new VM. By … … 209 209 </varlistentry> 210 210 <varlistentry> 211 <term><option>--uuid 211 <term><option>--uuid=<replaceable>uuid</replaceable></option></term> 212 212 <listitem><para> 213 213 Specifies the UUID for the new VM. Ensure that this ID is … … 222 222 <refsect1> 223 223 <title>Examples</title> 224 <remark role="help-scope"/>225 224 <para> 226 225 The following command creates and registers an exact clone of the … … 234 233 </para> 235 234 <screen> 236 $ VBoxManage clonevm ol7 --name "ol7-dev-001" --register --modeall \237 --options keepallmacs --options keepdisknames --optionskeephwuuids235 $ VBoxManage clonevm ol7 --name="ol7-dev-001" --register --mode=all \ 236 --options=keepallmacs --options=keepdisknames --options=keephwuuids 238 237 </screen> 239 238 <para> … … 244 243 </para> 245 244 <screen> 246 $ VBoxManage clonevm ol7 --name "ol7-dev-002" --register --snapshot"Snapshot 1"245 $ VBoxManage clonevm ol7 --name="ol7-dev-002" --register --snapshot="Snapshot 1" 247 246 </screen> 248 247 </refsect1> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r77883 r77887 103 103 { "registervm", USAGE_REGISTERVM, VBMG_CMD_TODO, handleRegisterVM, 0 }, 104 104 { "unregistervm", USAGE_UNREGISTERVM, VBMG_CMD_TODO, handleUnregisterVM, 0 }, 105 { "clonevm", USAGE_ CLONEVM, VBMG_CMD_TODO, handleCloneVM, 0 },105 { "clonevm", USAGE_S_NEWCMD, HELP_CMD_CLONEVM, handleCloneVM, 0 }, 106 106 { "movevm", USAGE_MOVEVM, VBMG_CMD_TODO, handleMoveVM, 0 }, 107 107 { "mediumproperty", USAGE_MEDIUMPROPERTY, VBMG_CMD_TODO, handleMediumProperty, 0 }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r77883 r77887 57 57 USAGE_CREATEVM, 58 58 USAGE_MODIFYVM, 59 USAGE_CLONEVM,60 59 USAGE_STARTVM, 61 60 USAGE_CONTROLVM, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r77801 r77887 733 733 "\n"); 734 734 } 735 736 if (enmCommand == USAGE_CLONEVM || enmCommand == USAGE_S_ALL)737 RTStrmPrintf(pStrm,738 "%s clonevm %s <uuid|vmname>\n"739 " [--snapshot <uuid>|<name>]\n"740 " [--mode machine|machineandchildren|all]\n"741 " [--options link|keepallmacs|keepnatmacs|\n"742 " keepdisknames|keephwuuids]\n"743 " [--name <name>]\n"744 " [--groups <group>, ...]\n"745 " [--basefolder <basefolder>]\n"746 " [--uuid <uuid>]\n"747 " [--register]\n"748 "\n", SEP);749 735 750 736 if (enmCommand == USAGE_MOVEVM || enmCommand == USAGE_S_ALL) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r77877 r77887 541 541 pszSrcName = ValueUnion.psz; 542 542 else 543 return errorSyntax( USAGE_CLONEVM,"Invalid parameter '%s'", ValueUnion.psz);543 return errorSyntax("Invalid parameter '%s'", ValueUnion.psz); 544 544 break; 545 545 546 546 default: 547 return errorGetOpt( USAGE_CLONEVM,c, &ValueUnion);547 return errorGetOpt(c, &ValueUnion); 548 548 } 549 549 } … … 551 551 /* Check for required options */ 552 552 if (!pszSrcName) 553 return errorSyntax( USAGE_CLONEVM,"VM name required");553 return errorSyntax("VM name required"); 554 554 555 555 /* Get the machine object */
Note:
See TracChangeset
for help on using the changeset viewer.