{"id":1597,"date":"2014-08-13T22:38:59","date_gmt":"2014-08-13T06:38:59","guid":{"rendered":"http:\/\/www.yclimw.com\/?p=1597"},"modified":"2021-05-31T14:08:42","modified_gmt":"2021-05-31T06:08:42","slug":"virtualbox-use-record","status":"publish","type":"post","link":"https:\/\/www.yclimw.com\/?p=1597","title":{"rendered":"virtualbox\u4f7f\u7528\u8bb0\u5f55"},"content":{"rendered":"<h1>\n\tvirtualbox\u865a\u62df\u786c\u76d8\u6269\u5bb9\u65b9\u6cd5<br \/>\n<\/h1>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000\u30001.\u6253\u5f00cmd\uff0c\u8f6c\u5230vboxmanage.exe\u6240\u5728\u76ee\u5f55\uff0cvboxmanage\u5728virtualbox\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\u3002\u6211\u7684\u76ee\u5f55\u662f\u5728<\/font><\/span><span style=\"font-family: \u6977\u4f53; font-size: 19px;\">C:\\Program Files\\Oracle\\VirtualBox\\<\/span>\n<\/p>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000\u30002.\u4f7f\u7528vboxmanage\u8fdb\u884c\u6269\u5bb9<\/font><\/span>\n<\/p>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000\u3000vboxmanage\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u547d\u4ee4\u80fd\u975e\u5e38\u5bb9\u6613\u7684\u8fdb\u884c\u6269\u5bb9<\/font><\/span>\n<\/p>\n<pre class=\"brush:bash;\">\r\nVBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB<\/pre>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000\u3000\u5176\u4e2d\u53c2\u6570 YOUR_HARD_DISK.vdi \u662f\u60a8\u8981\u4fee\u6539\u7684 VirtualBox \u865a\u62df\u786c\u76d8\u955c\u50cf\u6587\u4ef6\u3002<\/font><\/span>\n<\/p>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000\u3000\u800c\u53c2\u6570 SIZE_IN_MB \u662f\u6307\u4fee\u6539\u540e\u7684\u786c\u76d8\u5bb9\u91cf\uff0c\u5355\u4f4d\u662f\u5146\u5b57\u8282\u3002<\/font><\/span>\n<\/p>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000\u3000Ps\uff1a<\/font><\/span>\n<\/p>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000\u3000YOUR_HARD_DISK.vdi\u53ef\u4ee5\u4e0d\u5728vboxmanage\u76ee\u5f55\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b9a\u4e49\u8def\u5f84(\u53ef\u4ee5\u7528\u53cc\u5f15\u53f7\u5c06\u8def\u5f84\u5305\u542b\u8d77\u6765\uff0c\u4ee5\u514d\u542b\u6709\u7a7a\u683c\u7b49\u5b57\u7b26\u5bfc\u81f4\u9519\u8bef)\u7684\u65b9\u6cd5<\/font><\/span><span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u4fee\u6539\u5176\u4ed6\u6587\u4ef6\u5939\u4e2d\u7684vdi\u6587\u4ef6\uff0c\u4f8b\uff1a\u6211\u7684vdi\u6587\u4ef6\u5728<\/font><\/span><font face=\"\u6977\u4f53\"><span style=\"font-size: 19px;\">e:\\VirtualBox VMs\\Windows\u7cfb\u7edf\\Windows XP\\Windoes XP.vdi,<\/span><\/font><span style=\"font-family: \u6977\u4f53; font-size: 14pt;\">\u800cvboxmanage\u5728<\/span><span style=\"font-family: \u6977\u4f53; font-size: 19px;\">C:\\Program Files\\Oracle\\VirtualBox\\<\/span><span style=\"font-family: \u6977\u4f53; font-size: 14pt;\">\uff0c\u90a3\u4e48\u6211\u5728\u4fee\u6539\u7684\u65f6\u5019\u5c31\u53ef\u4ee5\u5728\u6587\u4ef6\u540d\u524d\u52a0\u8def\u5f84<\/span>\n<\/p>\n<pre class=\"brush:bash;\">\r\nVBoxManage modifyhd &ldquo;e:\\VirtualBox VMs\\Windows\u7cfb\u7edf\\Windows XP\\Windoes XP.vdi&rdquo; --resize 25000<\/pre>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000\u3000\u6269\u5bb9\u5b8c\u6210\u540e\uff0c\u8fd8\u8981\u5728\u865a\u62df\u673a\u91cc\u9762\uff0c\u683c\u5f0f\u5316\u5206\u533a\uff0c\u5206\u914d\u65b0\u589e\u7684\u7a7a\u95f4\u3002<\/font><\/span>\n<\/p>\n<hr \/>\n<h1>\n\tVirtualBox\u865a\u62df\u673a\u4e0bvdi\u3001vhd\u3001vmdk\u865a\u62df\u786c\u76d8\u683c\u5f0f\u7684\u76f8\u4e92\u8f6c\u6362<br \/>\n<\/h1>\n<p>\n\t<font face=\"\u6977\u4f53\"><span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\">\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528VirtualBox\u81ea\u5e26\u7684VBoxManager.exe\u5de5\u5177\u6765\u8fdb\u884c\u5404\u79cd\u683c\u5f0f\u7684\u8f6c\u6362<\/span><\/font>\n<\/p>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">&nbsp; \u547d\u4ee4\u5982\u4e0b(Windows\u73af\u5883\uff0cLinux\u7248\u7684\u5e94\u8be5\u4e5f\u6709VBoxManager\u8fd9\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6)\uff0cVBoxManager\u5b58\u5728\u4e8eVirtualBox\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\u3002<\/font><\/span>\n<\/p>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u3000vmdk\u8f6c\u6362\u6210vdi<\/font><\/span>\n<\/p>\n<pre class=\"brush:bash;\">\r\nVBoxManage.exe clonehd source.vmdk target.vdi --format VDI<\/pre>\n<p>\n\t<font face=\"\u6977\u4f53\"><span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\">&nbsp; vdi\u8f6c\u6362\u6210vmdk<\/span><\/font>\n<\/p>\n<pre class=\"brush:php;\">\r\nVBoxManage.exe clonehd source.vdi target.vmdk --format VMDK<\/pre>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">&nbsp; vmdk\u8f6cvhd<\/font><\/span>\n<\/p>\n<pre class=\"brush:bash;\">\r\nVBoxManage.exe clonehd source.vmdk target.vhd --format VHD<\/pre>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">&nbsp; vdi\u8f6c\u6362\u6210vhd<\/font><\/span>\n<\/p>\n<pre class=\"brush:bash;\">\r\nVBoxManage.exe clonehd source.vdi target.vhd -- format VHD<\/pre>\n<p>\n\t<span data-wiz-span=\"data-wiz-span\" style=\"font-size: 14pt;\"><font face=\"\u6977\u4f53\">\u5176\u4ed6\u683c\u5f0f\u7684\u76f8\u4e92\u8f6c\u6362\u7c7b\u4f3c\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\u8fd0\u884c\u5b8c\u547d\u4ee4\u4e4b\u540e\uff0c\u539f\u6587\u4ef6\u5e76\u4e0d\u4f1a\u88ab\u5220\u9664\u3002<\/font><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>virtualbox\u865a\u62df\u786c\u76d8\u6269\u5bb9\u65b9\u6cd5 \u3000\u30001.\u6253\u5f00cmd\uff0c\u8f6c\u5230vboxmanage.exe\u6240\u5728\u76ee\u5f55\uff0cvboxm &hellip; <a href=\"https:\/\/www.yclimw.com\/?p=1597\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">virtualbox\u4f7f\u7528\u8bb0\u5f55<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[98,99],"tags":[295,128,275,296,177],"class_list":{"0":"post-1597","1":"post","2":"type-post","3":"status-publish","4":"format-aside","5":"hentry","6":"category-it","7":"category-99","8":"tag-it","9":"tag-virtualbox","11":"tag-296","12":"tag-177","13":"post_format-post-format-aside"},"_links":{"self":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/1597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1597"}],"version-history":[{"count":2,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/1597\/revisions"}],"predecessor-version":[{"id":2084,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/1597\/revisions\/2084"}],"wp:attachment":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}