<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sybase数据库技术，数据库恢复专家 &#187; virtualbox</title>
	<atom:link href="http://www.dbainfo.net/tag/virtualbox/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Sat, 14 Jun 2025 16:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>修复virtualbox中丢失xml文件导致不能启动虚拟机的问题</title>
		<link>https://www.dbainfo.net/recover-virtualbox-with-no-xml-configuration-file.htm</link>
		<comments>https://www.dbainfo.net/recover-virtualbox-with-no-xml-configuration-file.htm#comments</comments>
		<pubDate>Mon, 16 Aug 2010 11:12:03 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=815</guid>
		<description><![CDATA[前日误删除了C:\Documents and Settings\Administrator\.virtualbox目录，导致virtualbox上配置的redhat64bit虚拟机不能启动了。 试图拷贝一个其它虚拟机的xml文件修改一下，但是不可以。提示物理盘的uuid不匹配。那个虚拟机的xml文件丢失了，那么此虚拟机vdi文件上记录的uuid就无从得知了。 难道此redhat64bit虚拟机就不能用了？文件好几个G呢，删除了又太可惜，重装一遍很麻烦。 最后，在网上找到一个解决的办法： 利用virtualbox自带的命令行工具VBoxManage.exe 对残留的vdi虚拟机文件进行克隆，最后会重新生成一个uuid。 D:\Program Files\Oracle\VirtualBox&#62;VBoxManage.exe clonehd /? Oracle VM VirtualBox Command Line Management Interface Version 3.2.6 (C) 2005-2010 Oracle Corporation All rights reserved. Usage: VBoxManage clonehd&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;uuid&#62;&#124;&#60;filename&#62; &#60;outputfile&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [--format VDI&#124;VMDK&#124;VHD&#124;RAW&#124;&#60;other&#62;] &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [--variant Standard,Fixed,Split2G,Stream,ESX] &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [--type normal&#124;writethrough&#124;immutable] &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [--remember] [--existing] Syntax error: Mandatory output file parameter missing &#160; 步骤一： VBoxManage.exe [...]]]></description>
			<content:encoded><![CDATA[<p>前日误删除了C:\Documents and Settings\Administrator\.virtualbox目录，导致virtualbox上配置的redhat64bit虚拟机不能启动了。</p>
<p>试图拷贝一个其它虚拟机的xml文件修改一下，但是不可以。提示物理盘的uuid不匹配。那个虚拟机的xml文件丢失了，那么此虚拟机vdi文件上记录的uuid就无从得知了。</p>
<p>难道此redhat64bit虚拟机就不能用了？文件好几个G呢，删除了又太可惜，重装一遍很麻烦。</p>
<p>最后，在网上找到一个解决的办法：</p>
<p>利用virtualbox自带的命令行工具<strong>VBoxManage.exe</strong> 对残留的vdi虚拟机文件进行克隆，最后会重新生成一个uuid。</p>
<blockquote>
<p>D:\Program Files\Oracle\VirtualBox&gt;VBoxManage.exe clonehd /?<br />
		Oracle VM VirtualBox Command Line Management Interface Version 3.2.6<br />
		(C) 2005-2010 Oracle Corporation<br />
		All rights reserved.<br />
		Usage:<br />
		VBoxManage clonehd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;uuid&gt;|&lt;filename&gt; &lt;outputfile&gt;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [--format VDI|VMDK|VHD|RAW|&lt;other&gt;]<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [--variant Standard,Fixed,Split2G,Stream,ESX]<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [--type normal|writethrough|immutable]<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [--remember] [--existing]<br />
		Syntax error: Mandatory output file parameter missing</p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>步骤一：</strong> </span></p>
<p>VBoxManage.exe clonehd D:\virtual-machine\linux5_64bit\linux5_64bit.vdi&nbsp; D:\virtual-machine\linux5_64bit\linux5.vdi</p>
<p>耐心等待一会之后，会在命令行的下面显示一个重新生成的uuid，此uuid和D:\virtual-machine\linux5_64bit\linux5.vdi中的磁盘物理uuid是一致的。</p>
<p><strong><span style="font-size: medium;">步骤二：</span> </strong></p>
<p>在VirtualBox.xml文件中有：</p>
<p>&lt;MachineRegistry&gt;<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;MachineEntry uuid=&quot;{<strong>014d4435-25a9-4ce3-9aa6-ea18cc407698</strong> }&quot; src=&quot;<strong>Machines\linux5_64bit\linux5.xml</strong> &quot;/&gt;<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;MachineEntry uuid=&quot;{4d307441-f7a7-4196-8dee-d4d6910b0bae}&quot; src=&quot;Machines\VMWIN7\VMWIN7.xml&quot;/&gt;<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;MachineEntry uuid=&quot;{8046d767-abf4-4eb5-bb73-451b54fbba38}&quot; src=&quot;D:\virtual-machine\redhat64\redhat64.xml&quot;/&gt;<br />
	&nbsp;&nbsp;&nbsp; &lt;/MachineRegistry&gt;<br />
	对应本机安装的所有的虚拟机，记录各个虚拟机的配置xml文件的位置，以及每个虚拟机对应的机器id（machine uuid）。</p>
<p><span style="font-size: medium;"><strong>步骤三：</strong> </span></p>
<p>找到redhat64bit虚拟机的配置文件<strong>Machines\linux5_64bit\linux5.xml，其中</strong></p>
<p>&lt;StorageController name=&quot;SATA &amp;#x63A7;&amp;#x5236;&amp;#x5668;&quot; type=&quot;AHCI&quot; PortCount=&quot;1&quot; useHostIOCache=&quot;false&quot; IDE0MasterEmulationPort=&quot;0&quot; IDE0SlaveEmulationPort=&quot;1&quot; IDE1MasterEmulationPort=&quot;2&quot; IDE1SlaveEmulationPort=&quot;3&quot;&gt;<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;AttachedDevice type=&quot;HardDisk&quot; port=&quot;0&quot; device=&quot;0&quot;&gt;<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Image uuid=&quot;{<span style="color: rgb(255, 0, 0);"><strong>4a0544d6-e496-4b21-af8c-e432410ea0a7</strong> </span> }&quot;/&gt;<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/AttachedDevice&gt;<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/StorageController&gt;<br />
	上面的image uuid就是通过VBoxManage.exe clonehd重新生成的硬盘id。</p>
<p><span style="font-size: medium;"><strong>步骤四：</strong> </span></p>
<p>linux5.xml中</p>
<p>&lt;Machine uuid=&quot;{<strong>014d4435-25a9-4ce3-9aa6-ea18cc407698</strong> }&quot; name=&quot;linux5&quot; OSType=&quot;RedHat_64&quot; lastStateChange=&quot;2010-08-16T10:41:07Z&quot;&gt;</p>
<p>的<strong>014d4435-25a9-4ce3-9aa6-ea18cc407698</strong> 要和VirtualBox.xml中的<strong>MachineEntry uuid</strong> 保持一致。</p>
<p>这样基本上重新打开以下virtualbox虚拟机，就能使用redhat64bit虚拟机了。呵呵。</p>
<p>参考：http://www.modhul.com/2009/06/17/how-to-clone-or-copy-a-virtualbox-virtual-disk/</p>
<p>&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-<br />
	&mdash;- 本文为andkylee个人原创，请在尊重作者劳动成果的前提下进行转载；<br />
	&mdash;- 转载务必注明原始出处 :<a href="../" target="_blank" title="http://www.dbainfo.net"> http://www.dbainfo.net</a><br />
	&mdash;- 关键字：virtualbox xml hard disk uuid&nbsp; VBoxManage.exe clonehd <br />
	&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-</p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/recover-virtualbox-with-no-xml-configuration-file.htm">https://www.dbainfo.net/recover-virtualbox-with-no-xml-configuration-file.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/recover-virtualbox-with-no-xml-configuration-file.htm">修复virtualbox中丢失xml文件导致不能启动虚拟机的问题</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li>2012-04-11 -- <a href="https://www.dbainfo.net/ase-alter-table-modify-column-default-value.htm" title="ASE修改列的默认值属性">ASE修改列的默认值属性</a> (0)</li><li>2012-03-21 -- <a href="https://www.dbainfo.net/an-sybase-method-to-remove-same-records.htm" title="Sybase去除重复数据的一种方法">Sybase去除重复数据的一种方法</a> (0)</li><li>2014-08-23 -- <a href="https://www.dbainfo.net/online-compress-iq-dumpfile-by-pipefile.htm" title="一种使用管道文件在线压缩IQ备份文件的方法">一种使用管道文件在线压缩IQ备份文件的方法</a> (0)</li><li>2009-12-18 -- <a href="https://www.dbainfo.net/install-sybase-at-linux5-4el.htm" title="在linux5.4enterprise下安装sybase成功">在linux5.4enterprise下安装sybase成功</a> (0)</li><li>2012-02-23 -- <a href="https://www.dbainfo.net/sybase-ase12-5-4-client-tool-sybase-sql-advantage-without-installation-version-htm.htm" title="免安装（绿色版）的Sybase ASE12.5.4附带的客户端工具Sybase SQL Advantage">免安装（绿色版）的Sybase ASE12.5.4附带的客户端工具Sybase SQL Advantage</a> (2)</li><li>2010-09-15 -- <a href="https://www.dbainfo.net/sql-server-database-all-tables-space-order-desc.htm" title="统计SQL SERVER数据库内所有表占用空间并排序">统计SQL SERVER数据库内所有表占用空间并排序</a> (0)</li><li>2010-02-22 -- <a href="https://www.dbainfo.net/sql-server-patch-version-mapping-table.htm" title="SQL Server补丁版本的检查[转]">SQL Server补丁版本的检查[转]</a> (0)</li><li>2019-04-12 -- <a href="https://www.dbainfo.net/sybase-ase-asa-recovery-service.htm" title="Sybase ASE及SQL Anywhere数据库修复专家">Sybase ASE及SQL Anywhere数据库修复专家</a> (0)</li><li>2011-09-14 -- <a href="https://www.dbainfo.net/ase-v15-7-for-sap-business-suite-released-in-techwave.htm" title="ASE 15.7 for SAP® Business Suite Released in Techwave!!!">ASE 15.7 for SAP® Business Suite Released in Techwave!!!</a> (1)</li><li>2010-05-31 -- <a href="https://www.dbainfo.net/mysql-split-page-ways.htm" title="MySQL中数据结果集分页功能的实现方法">MySQL中数据结果集分页功能的实现方法</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/recover-virtualbox-with-no-xml-configuration-file.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
