- Timestamp:
- Mar 12, 2022 7:18:11 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150455
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/doc/manual/Config.kmk ¶
r94198 r94199 68 68 man_VBoxManage-bandwidthctl.xml \ 69 69 man_VBoxManage-showmediuminfo.xml \ 70 man_VBoxManage-createmedium.xml 70 man_VBoxManage-createmedium.xml \ 71 man_VBoxManage-clonemedium.xml 71 72 72 73 ## List of user manual XML files. -
TabularUnified trunk/doc/manual/en_US/man_VBoxManage-clonemedium.xml ¶
r82969 r94199 20 20 <refentry id="vboxmanage-clonemedium" lang="en"> 21 21 <refentryinfo> 22 <pubdate> August 2019</pubdate>22 <pubdate>$Date$</pubdate> 23 23 <title>VBoxManage clonemedium</title> 24 24 </refentryinfo> … … 32 32 <refname>VBoxManage-clonemedium</refname> 33 33 <refpurpose>create a clone of a medium</refpurpose> 34 <refclass> Oracle VM VirtualBox</refclass>34 <refclass>&product-name;</refclass> 35 35 </refnamediv> 36 36 -
TabularUnified trunk/doc/manual/en_US/user_VBoxManage.xml ¶
r94198 r94199 1089 1089 </sect1> 1090 1090 1091 <sect1 id="vboxmanage-clonemedium"> 1092 1093 <title>VBoxManage clonemedium</title> 1094 1095 <para> 1096 This command duplicates a virtual disk, DVD, or floppy medium to a 1097 new medium, usually an image file, with a new unique identifier 1098 (UUID). The new image can be transferred to another host system or 1099 reimported into &product-name; using the Virtual Media Manager. 1100 See <xref linkend="vdis" /> and <xref linkend="cloningvdis" />. 1101 The syntax is as follows: 1102 </para> 1103 1104 <screen>VBoxManage clonemedium [disk|dvd|floppy] <uuid|inputfile> <uuid|outputfile> 1105 1106 [--format VDI|VMDK|VHD|RAW|<other>] 1107 [--variant Standard,Fixed,Split2G,Stream,ESX] 1108 [--existing]</screen> 1109 1110 <para> 1111 The medium to clone as well as the target image must be described 1112 either by its UUIDs, if the mediums are registered, or by its 1113 filename. Registered images can be listed by <command>VBoxManage 1114 list hdds</command>. See <xref linkend="vboxmanage-list" />. A 1115 filename must be specified as valid path, either as an absolute 1116 path or as a relative path starting from the current directory. 1117 </para> 1118 1119 <para> 1120 The following options are available: 1121 </para> 1122 1123 <variablelist> 1124 1125 <varlistentry> 1126 <term> 1127 <computeroutput>--format</computeroutput> 1128 </term> 1129 1130 <listitem> 1131 <para> 1132 Set a file format for the output file different from the 1133 file format of the input file. 1134 </para> 1135 </listitem> 1136 </varlistentry> 1137 1138 <varlistentry> 1139 <term> 1140 <computeroutput>--variant</computeroutput> 1141 </term> 1142 1143 <listitem> 1144 <para> 1145 Set a file format variant for the output file. This is a 1146 comma-separated list of variant flags. Not all combinations 1147 are supported, and specifying inconsistent flags will result 1148 in an error message. 1149 </para> 1150 </listitem> 1151 </varlistentry> 1152 1153 <varlistentry> 1154 <term> 1155 <computeroutput>--existing</computeroutput> 1156 </term> 1157 1158 <listitem> 1159 <para> 1160 Perform the clone operation to an already existing 1161 destination medium. Only the portion of the source medium 1162 which fits into the destination medium is copied. This means 1163 if the destination medium is smaller than the source only a 1164 part of it is copied, and if the destination medium is 1165 larger than the source the remaining part of the destination 1166 medium is unchanged. 1167 </para> 1168 </listitem> 1169 </varlistentry> 1170 1171 </variablelist> 1172 1173 <note> 1174 <para> 1175 For compatibility with earlier versions of &product-name;, the 1176 <command>clonevdi</command> and <command>clonehd</command> 1177 commands are still supported and mapped internally to the 1178 <command>clonemedium</command> command. 1179 </para> 1180 </note> 1181 1182 </sect1> 1091 <xi:include href="user_man_VBoxManage-clonemedium.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1183 1092 1184 1093 <sect1 id="vboxmanage-mediumproperty"> -
TabularUnified trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp ¶
r94198 r94199 206 206 { "modifyhd", USAGE_MODIFYMEDIUM, VBMG_CMD_TODO, handleModifyMedium, 0 }, /* backward compatibility */ 207 207 { "modifyvdi", USAGE_MODIFYMEDIUM, VBMG_CMD_TODO, handleModifyMedium, 0 }, /* backward compatibility */ 208 { "clonemedium", USAGE_ CLONEMEDIUM, VBMG_CMD_TODO, handleCloneMedium, 0 },209 { "clonehd", USAGE_ CLONEMEDIUM, VBMG_CMD_TODO, handleCloneMedium, 0 }, /* backward compatibility */210 { "clonevdi", USAGE_ CLONEMEDIUM, VBMG_CMD_TODO, handleCloneMedium, 0 }, /* backward compatibility */208 { "clonemedium", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, 209 { "clonehd", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, /* backward compatibility */ 210 { "clonevdi", USAGE_S_NEWCMD, HELP_CMD_CLONEMEDIUM, handleCloneMedium, 0 }, /* backward compatibility */ 211 211 { "encryptmedium", USAGE_ENCRYPTMEDIUM, VBMG_CMD_TODO, handleEncryptMedium, 0 }, 212 212 { "checkmediumpwd", USAGE_MEDIUMENCCHKPWD, VBMG_CMD_TODO, handleCheckMediumPassword, 0 }, -
TabularUnified trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h ¶
r94198 r94199 99 99 USAGE_INVALID = 0, 100 100 USAGE_MODIFYMEDIUM, 101 USAGE_CLONEMEDIUM,102 101 USAGE_CREATEHOSTIF, 103 102 USAGE_REMOVEHOSTIF, -
TabularUnified trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp ¶
r94198 r94199 1025 1025 case 'd': // disk 1026 1026 if (cmd != CMD_NONE) 1027 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1027 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1028 1028 cmd = CMD_DISK; 1029 1029 break; … … 1031 1031 case 'D': // DVD 1032 1032 if (cmd != CMD_NONE) 1033 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1033 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1034 1034 cmd = CMD_DVD; 1035 1035 break; … … 1037 1037 case 'f': // floppy 1038 1038 if (cmd != CMD_NONE) 1039 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz);1039 return errorSyntax(Disk::tr("Only one command can be specified: '%s'"), ValueUnion.psz); 1040 1040 cmd = CMD_FLOPPY; 1041 1041 break; … … 1069 1069 pszDst = ValueUnion.psz; 1070 1070 else 1071 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);1071 return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz); 1072 1072 break; 1073 1073 … … 1076 1076 { 1077 1077 if (RT_C_IS_GRAPH(c)) 1078 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("unhandled option: -%c"), c);1078 return errorSyntax(Disk::tr("unhandled option: -%c"), c); 1079 1079 else 1080 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("unhandled option: %i"), c);1080 return errorSyntax(Disk::tr("unhandled option: %i"), c); 1081 1081 } 1082 1082 else if (c == VERR_GETOPT_UNKNOWN_OPTION) 1083 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("unknown option: %s"), ValueUnion.psz);1083 return errorSyntax(Disk::tr("unknown option: %s"), ValueUnion.psz); 1084 1084 else if (ValueUnion.pDef) 1085 return errorSyntax( USAGE_CLONEMEDIUM,"%s: %Rrs", ValueUnion.pDef->pszLong, c);1085 return errorSyntax("%s: %Rrs", ValueUnion.pDef->pszLong, c); 1086 1086 else 1087 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("error: %Rrs"), c);1087 return errorSyntax(Disk::tr("error: %Rrs"), c); 1088 1088 } 1089 1089 } … … 1092 1092 cmd = CMD_DISK; 1093 1093 if (!pszSrc) 1094 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Mandatory UUID or input file parameter missing"));1094 return errorSyntax(Disk::tr("Mandatory UUID or input file parameter missing")); 1095 1095 if (!pszDst) 1096 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Mandatory output file parameter missing"));1096 return errorSyntax(Disk::tr("Mandatory output file parameter missing")); 1097 1097 if (fExisting && (!format.isEmpty() || enmMediumVariant != MediumVariant_Standard)) 1098 return errorSyntax( USAGE_CLONEMEDIUM,Disk::tr("Specified options which cannot be used with --existing"));1098 return errorSyntax(Disk::tr("Specified options which cannot be used with --existing")); 1099 1099 1100 1100 ComPtr<IMedium> pSrcMedium; -
TabularUnified trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp ¶
r94198 r94199 639 639 "\n", SEP); 640 640 641 if (enmCommand == USAGE_CLONEMEDIUM || enmCommand == USAGE_S_ALL)642 RTStrmPrintf(pStrm,643 "%s clonemedium %s [disk|dvd|floppy] <uuid|inputfile> <uuid|outputfile>\n"644 " [--format VDI|VMDK|VHD|RAW|<other>]\n"645 " [--variant Standard,Fixed,Split2G,Stream,ESX]\n"646 " [--existing]\n"647 "\n", SEP);648 649 641 if (enmCommand == USAGE_MEDIUMPROPERTY || enmCommand == USAGE_S_ALL) 650 642 RTStrmPrintf(pStrm,
Note:
See TracChangeset
for help on using the changeset viewer.