{"id":304,"date":"2025-06-25T11:20:10","date_gmt":"2025-06-25T11:20:10","guid":{"rendered":"https:\/\/blog.chaiyakul.com\/?p=304"},"modified":"2025-06-25T11:20:10","modified_gmt":"2025-06-25T11:20:10","slug":"extend-vdi-oracle-virtualbox-windows","status":"publish","type":"post","link":"https:\/\/blog.chaiyakul.com\/index.php\/2025\/06\/25\/extend-vdi-oracle-virtualbox-windows\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e19\u0e32\u0e14\u0e44\u0e14\u0e23\u0e1f\u0e4c .vdi \u0e43\u0e19 Oracle VirtualBox (Windows)"},"content":{"rendered":"\n<p><u><strong>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 1: \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e19\u0e32\u0e14 .vdi \u0e14\u0e49\u0e27\u0e22 VBoxManage<\/strong><\/u><\/p>\n\n\n\n<p>1.<strong>\u0e1b\u0e34\u0e14 Virtual Machine \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22<\/strong> (\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e1b\u0e47\u0e19 <strong>Power Off<\/strong> \u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e2b\u0e49\u0e32\u0e21 Save State)<\/p>\n\n\n\n<p>2.\u0e40\u0e1b\u0e34\u0e14 <strong>PowerShell<\/strong> \u0e14\u0e49\u0e27\u0e22\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e4c Admin \u0e41\u0e25\u0e49\u0e27\u0e23\u0e31\u0e19:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncd &quot;C:\\Program Files\\Oracle\\VirtualBox&quot;\n.\\VBoxManage modifyhd &quot;D:\\VirtualBox VMs\\XP SP2 64bit\\XP SP2 64bit.vdi&quot; --resize 51200\n<\/pre><\/div>\n\n\n<p>\u0e2b\u0e21\u0e32\u0e22\u0e40\u0e2b\u0e15\u0e38:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>51200<\/code> = 50 GB (1 GB = 1024 MB)<\/li>\n\n\n\n<li>\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 path <code>.vdi<\/code> \u0e43\u0e2b\u0e49\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e38\u0e13<\/li>\n<\/ul>\n\n\n\n<p>\u0e2b\u0e32\u0e01\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 \u0e08\u0e30\u0e44\u0e21\u0e48\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21 error \u0e41\u0e25\u0e30\u0e44\u0e1f\u0e25\u0e4c <code>.vdi<\/code> \u0e08\u0e30\u0e21\u0e35\u0e02\u0e19\u0e32\u0e14\u0e43\u0e2b\u0e0d\u0e48\u0e02\u0e36\u0e49\u0e19\u0e17\u0e31\u0e19\u0e17\u0e35<\/p>\n\n\n\n<p><u><strong>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 2: \u0e02\u0e22\u0e32\u0e22\u0e1e\u0e32\u0e23\u0e4c\u0e15\u0e34\u0e0a\u0e31\u0e19\u0e43\u0e19 Windows (\u0e43\u0e19 VM)<\/strong><\/u><\/p>\n\n\n\n<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e02\u0e22\u0e32\u0e22\u0e44\u0e1f\u0e25\u0e4c <code>.vdi<\/code> \u0e41\u0e25\u0e49\u0e27 \u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e02\u0e49\u0e32 Windows \u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19 VM \u0e41\u0e25\u0e30\u0e17\u0e33\u0e15\u0e32\u0e21\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49:<\/p>\n\n\n\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e02\u0e22\u0e32\u0e22\u0e1e\u0e32\u0e23\u0e4c\u0e15\u0e34\u0e0a\u0e31\u0e19\u0e43\u0e19 Windows<\/strong><\/p>\n\n\n\n<p>1.<strong>\u0e40\u0e1b\u0e34\u0e14 VM<\/strong> (\u0e23\u0e30\u0e1a\u0e1a Windows \u0e43\u0e19 VirtualBox)<\/p>\n\n\n\n<p>2.\u0e40\u0e02\u0e49\u0e32\u0e40\u0e21\u0e19\u0e39:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e01\u0e14\u0e1b\u0e38\u0e48\u0e21 <strong>Start \u2192 \u0e1e\u0e34\u0e21\u0e1e\u0e4c<\/strong> <code>diskmgmt.msc<\/code> \u2192 Enter<\/li>\n\n\n\n<li>\u0e2b\u0e23\u0e37\u0e2d\u0e01\u0e14 <code>Windows + R<\/code> \u2192 \u0e1e\u0e34\u0e21\u0e1e\u0e4c <code>diskmgmt.msc<\/code> \u2192 Enter<\/li>\n<\/ul>\n\n\n\n<p>3.\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32\u0e21\u0e35\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48 <strong>Unallocated<\/strong> \u0e15\u0e48\u0e2d\u0e17\u0e49\u0e32\u0e22\u0e44\u0e14\u0e23\u0e1f\u0e4c C: (\u0e2b\u0e23\u0e37\u0e2d\u0e1e\u0e32\u0e23\u0e4c\u0e15\u0e34\u0e0a\u0e31\u0e19\u0e2b\u0e25\u0e31\u0e01)<\/p>\n\n\n\n<p>4.\u0e04\u0e25\u0e34\u0e01\u0e02\u0e27\u0e32\u0e17\u0e35\u0e48\u0e44\u0e14\u0e23\u0e1f\u0e4c C: \u2192 \u0e40\u0e25\u0e37\u0e2d\u0e01 <strong>Extend Volume\u2026<\/strong><\/p>\n\n\n\n<p>5.\u0e01\u0e14 Next \u2192 Next \u2192 Finish<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e23\u0e23\u0e30\u0e27\u0e31\u0e07:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e15\u0e49\u0e2d\u0e07\u0e44\u0e21\u0e48\u0e21\u0e35 <strong>\u0e1e\u0e32\u0e23\u0e4c\u0e15\u0e34\u0e0a\u0e31\u0e19\u0e2d\u0e37\u0e48\u0e19<\/strong> \u0e02\u0e27\u0e32\u0e07\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07 C: \u0e41\u0e25\u0e30\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48\u0e27\u0e48\u0e32\u0e07 (Unallocated)\n<ul class=\"wp-block-list\">\n<li>\u0e16\u0e49\u0e32\u0e21\u0e35 \u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49 GParted (Live CD) \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e1e\u0e32\u0e23\u0e4c\u0e15\u0e34\u0e0a\u0e31\u0e19\u0e01\u0e48\u0e2d\u0e19<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>.vdi<\/code> \u0e15\u0e49\u0e2d\u0e07\u0e44\u0e21\u0e48\u0e16\u0e39\u0e01 <strong>\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e42\u0e22\u0e07\u0e01\u0e31\u0e1a snapshot<\/strong> (\u0e43\u0e2b\u0e49\u0e25\u0e1a snapshot \u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e01\u0e48\u0e2d\u0e19\u0e17\u0e33)<\/li>\n\n\n\n<li>\u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a <code>.vdi<\/code> \u0e41\u0e1a\u0e1a <strong>Dynamically allocated<\/strong> \u0e2b\u0e23\u0e37\u0e2d <strong>Fixed size<\/strong> \u0e01\u0e47\u0e44\u0e14\u0e49<\/li>\n<\/ul>\n\n\n\n<p>\u0e16\u0e49\u0e32 Extend Volume \u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e35\u0e40\u0e17\u0e32 (\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49):<\/p>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e27\u0e48\u0e32:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e21\u0e35\u0e1e\u0e32\u0e23\u0e4c\u0e15\u0e34\u0e0a\u0e31\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e02\u0e27\u0e32\u0e07\u0e2d\u0e22\u0e39\u0e48<\/li>\n\n\n\n<li>\u0e2b\u0e23\u0e37\u0e2d Unallocated \u0e44\u0e21\u0e48\u0e15\u0e48\u0e2d\u0e17\u0e49\u0e32\u0e22 C:<\/li>\n<\/ul>\n\n\n\n<p>\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e19\u0e35\u0e49 \u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49 <strong>GParted Live CD<\/strong> \u0e21\u0e32\u0e0a\u0e48\u0e27\u0e22\u0e22\u0e49\u0e32\u0e22\u0e1e\u0e32\u0e23\u0e4c\u0e15\u0e34\u0e0a\u0e31\u0e19\u0e01\u0e48\u0e2d\u0e19 \u0e41\u0e25\u0e49\u0e27\u0e04\u0e48\u0e2d\u0e22\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32 Extend Volume \u0e43\u0e19 Windows<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 1: \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e19\u0e32\u0e14 .vdi \u0e14\u0e49\u0e27\u0e22 VBoxManage 1.\u0e1b\u0e34\u0e14 Virt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","footnotes":""},"categories":[159,103],"tags":[],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-virtualbox","category-windows"],"_links":{"self":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/comments?post=304"}],"version-history":[{"count":1,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":305,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/304\/revisions\/305"}],"wp:attachment":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/media?parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/categories?post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/tags?post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}