{"id":492,"date":"2015-06-28T21:55:26","date_gmt":"2015-06-28T19:55:26","guid":{"rendered":"http:\/\/monodes.com\/predaelli\/?p=492"},"modified":"2015-06-28T21:55:26","modified_gmt":"2015-06-28T19:55:26","slug":"growing-your-virtualbox-virtual-disk","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2015\/06\/28\/growing-your-virtualbox-virtual-disk\/","title":{"rendered":"Growing your VirtualBox Virtual Disk"},"content":{"rendered":"<p>Most people simply had to deal with proprietary software that more or less runs exclusively on Microsoft OSes. For example when I bought my Dell laptop I used the Microsoft license that I <span id=\"result_box\" class=\"short_text\" lang=\"en\" tabindex=\"-1\"><span class=\"hps alt-edited\">grudgingly had to<\/span> <span class=\"hps\">bought to create a fully legal installation into a virtual machine as the physical machine never ran it. I did even the first boot using GNU\/Linux. I spent the serial of my fully legally owned license to install in into a VirtualBox instance. <\/span><\/span><\/p>\n<p>I underestimated the never ending space hunger of those OSes so I found useful this &#8220;<em><a href=\"https:\/\/blogs.oracle.com\/fatbloke\/entry\/growing_your_virtualbox_virtual_disk\">Growing your VirtualBox Virtual Disk (The Fat Bloke Sings)&#8221;<\/a> copied here just in case it goes offline.<a href=\"https:\/\/blogs.oracle.com\/fatbloke\/entry\/growing_your_virtualbox_virtual_disk\"><br \/>\n<\/a><\/em><!--more--><\/p>\n<blockquote>\n<div class=\"day\">\n<div id=\"growing_your_virtualbox_virtual_disk\" class=\"entry\">\n<div class=\"entry-body\">\n<p>Don&#8217;t you just hate it when this happens:<\/p>\n<h1>Out of disk-space error.<a href=\"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2015\/06\/low-disk-space.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"493\" data-permalink=\"https:\/\/monodes.com\/predaelli\/2015\/06\/28\/growing-your-virtualbox-virtual-disk\/low-disk-space\/\" data-orig-file=\"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2015\/06\/low-disk-space.jpg?fit=434%2C213&amp;ssl=1\" data-orig-size=\"434,213\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"low-disk-space\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2015\/06\/low-disk-space.jpg?fit=434%2C213&amp;ssl=1\" class=\"aligncenter size-full wp-image-493\" src=\"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2015\/06\/low-disk-space1.jpg?resize=434%2C213\" alt=\"low-disk-space\" width=\"434\" height=\"213\" \/><\/a><\/h1>\n<p>Fortunately, if you&#8217;re running inside VirtualBox, you can resize your virtual disk and magically make your guest have a bigger disk very easily. There are 2 steps to doing this&#8230;<\/p>\n<h3>1. Resize the virtual disk<\/h3>\n<p>Use the VBoxManage command line tool to extend the size of the Virtual Disk, specifying the path to the disk and the size in MB:<\/p>\n<p><span style=\"font-family: monospace;\">VBoxManage modifyhd &lt;uuid&gt;|&lt;filename&gt; [&#8211;resize &lt;megabytes&gt;|&#8211;resizebyte &lt;bytes&gt;]<\/span><\/p>\n<pre>\u00a0\n<\/pre>\n<p>If you booted up your guest at this point, the extra space is seen as an unformatted area on the disk, like this:<\/p>\n<p>[picture missing]<\/p>\n<p>So we now need to tell the guest about the extra space available.<\/p>\n<h3>2. Extend the guest&#8217;s partition to use the extra space<\/h3>\n<p>How you do this step depends on your guest OS type and the tools you have available.<\/p>\n<p>Linux guests often include the excellent <strong><a title=\"Gparted\" href=\"http:\/\/gparted.sourceforge.net\">gparted <\/a><\/strong>partition editor, whereas Windows 7 and 8 provide the Computer Management tool which can resize partitions.<\/p>\n<p>Unfortunately, with Windows XP the Computer Management tool couldn&#8217;t do this. But I do have a couple of other options:<\/p>\n<blockquote><p>Most Linux installable .isos include the aforementioned <a title=\"Gparted\" href=\"http:\/\/gparted.sourceforge.net\/\">gparted <\/a>tool, so I could simply attach, say, an Ubuntu install iso as a Virtual CD\/DVD in my Windows XP vm and boot off that. (NB don&#8217;t install Ubuntu, just run it from the CD). Then use gparted to extend the Windows XP partition, before finally rebooting.<\/p>\n<p>But I took another route and plugged my resized virtual disk to a Windows Server 2012 vm I had lying around. Then I used the Computer Management tool in Windows Server 2012 to extend the partition of the Windows XP disk, before shutting down, unplugging the disk and reattaching to my Windows XP vm. (Note that if your vm&#8217;s use different disk controllers, Windows will check the disks on booting, don&#8217;t worry).<\/p><\/blockquote>\n<p>When I finally boot up my\u00a0Windows\u00a0XP guest I see the available disk space and all is well.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2015\/06\/ScreenClip.png?w=910\" alt=\"Free Space\"  \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Most people simply had to deal with proprietary software that more or less runs exclusively on Microsoft OSes. For example when I bought my Dell laptop I used the Microsoft license that I grudgingly had to bought to create a fully legal installation into a virtual machine as the physical machine never ran it. I&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2015\/06\/28\/growing-your-virtualbox-virtual-disk\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[54,53],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-proprietary-software"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-7W","jetpack-related-posts":[{"id":11302,"url":"https:\/\/monodes.com\/predaelli\/2024\/02\/05\/quickemu\/","url_meta":{"origin":492,"position":0},"title":"Quickemu","author":"Paolo Redaelli","date":"2024-02-05","format":false,"excerpt":"This quickemu could easily dislodge VirtualBox as my favorite desktop virtualization solution: Quickly create and run highly optimized desktop virtual machines for Linux, macOS and Windows; ... Quickemu now also includes comprehensive support for macOS and Windows. Features macOS Monterey, Big Sur, Catalina, Mojave & High Sierra Windows 10 and\u2026","rel":"","context":"In &quot;Apple&quot;","block_context":{"text":"Apple","link":"https:\/\/monodes.com\/predaelli\/category\/apple\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2024\/02\/quickemu-logo.webp?fit=512%2C512&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3712,"url":"https:\/\/monodes.com\/predaelli\/2018\/01\/27\/disk2vhd\/","url_meta":{"origin":492,"position":1},"title":"Disk2vhd","author":"Paolo Redaelli","date":"2018-01-27","format":false,"excerpt":"Sometimes you are just forced to use proprietary software. Disk2vhd - Windows Sysinternals | Microsoft Docs Disk2vhd includes command-line options that enable you to script the creation of VHDs. Specify the volumes you want included in a snapshot by drive letter (e.g. c:) or use \"*\" to include all volumes.Usage:\u2026","rel":"","context":"In &quot;Proprietary software&quot;","block_context":{"text":"Proprietary software","link":"https:\/\/monodes.com\/predaelli\/category\/software\/proprietary-software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7730,"url":"https:\/\/monodes.com\/predaelli\/2020\/11\/05\/7730\/","url_meta":{"origin":492,"position":2},"title":"View this gist on GitHub\u2026","author":"Paolo Redaelli","date":"2020-11-05","format":false,"excerpt":"View this gist on GitHub Nel caso vada fuori linea vedi pagina 2 Signing VirtualBox Kernel Modules These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on \u00d8yvind Stegard's blog, save for a few key details.\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"sparkles","src":"https:\/\/i0.wp.com\/github.githubassets.com\/images\/icons\/emoji\/unicode\/2728.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2191,"url":"https:\/\/monodes.com\/predaelli\/2017\/02\/21\/hellish\/","url_meta":{"origin":492,"position":3},"title":"Hellish\u00a0","author":"Paolo Redaelli","date":"2017-02-21","format":false,"excerpt":"Hell must be full of Microsoft servers that must be administered and reinstalled over and over again. I thought of being non proficient in Ms administration since I tried for two full days to install SQL server 2008 on a freshly installed Windows server 2008. I discovered that a whole-life\u2026","rel":"","context":"In &quot;Mood&quot;","block_context":{"text":"Mood","link":"https:\/\/monodes.com\/predaelli\/category\/mood\/"},"img":{"alt_text":"","src":"http:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2017\/02\/wp-image-1265243403jpeg.jpeg?w=528&resize=350%2C200","width":350,"height":200,"srcset":"http:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2017\/02\/wp-image-1265243403jpeg.jpeg?w=528&resize=350%2C200 1x, http:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2017\/02\/wp-image-1265243403jpeg.jpeg?w=528&resize=525%2C300 1.5x"},"classes":[]},{"id":475,"url":"https:\/\/monodes.com\/predaelli\/2015\/06\/25\/its-actually-over\/","url_meta":{"origin":492,"position":4},"title":"It&#8217;s actually over","author":"Paolo Redaelli","date":"2015-06-25","format":false,"excerpt":"Google's corporate motto is \"Don't be evil\". For a convenient definition of \"evil\" it seems when you read news such as this: The default behavior of hotword, a new, black-box module in Chrome (and its free\/open cousin, Chromium) causes it to silently switch on your computer's microphone and send whatever\u2026","rel":"","context":"In &quot;Software Libero&quot;","block_context":{"text":"Software Libero","link":"https:\/\/monodes.com\/predaelli\/category\/software\/software-libero\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1751,"url":"https:\/\/monodes.com\/predaelli\/2016\/09\/05\/black-magic\/","url_meta":{"origin":492,"position":5},"title":"Black magic","author":"Paolo Redaelli","date":"2016-09-05","format":false,"excerpt":"I'm considering to move my personal cloud from OwnCloud to NextCloud. Then you read those build instructions. Building on Linux Run: mkdir build-linux cd build-linux cmake -D OEM_THEME_DIR=`pwd`\/..\/nextcloudtheme ..\/client make make install Building on OSX Attention: When building make sure to use an old Core 2 Duo build machine running\u2026","rel":"","context":"In &quot;Mood&quot;","block_context":{"text":"Mood","link":"https:\/\/monodes.com\/predaelli\/category\/mood\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}