<?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>VirtualBox &#8211; My Shitty Code</title>
	<atom:link href="https://myshittycode.com/tag/virtualbox/feed/" rel="self" type="application/rss+xml" />
	<link>https://myshittycode.com</link>
	<description>Embracing the Messiness in Search of Epic Solutions</description>
	<lastBuildDate>Fri, 06 Jan 2023 17:18:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://myshittycode.com/wp-content/uploads/2022/04/cropped-icon-32x32.png</url>
	<title>VirtualBox &#8211; My Shitty Code</title>
	<link>https://myshittycode.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">205304208</site>	<item>
		<title>Windows 10 Was NOT My Idea, But It Was Free</title>
		<link>https://myshittycode.com/2015/08/18/windows-10-was-not-my-idea-but-it-was-free/</link>
					<comments>https://myshittycode.com/2015/08/18/windows-10-was-not-my-idea-but-it-was-free/#respond</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Wed, 19 Aug 2015 01:48:19 +0000</pubDate>
				<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://myshittycode.com/?p=799</guid>

					<description><![CDATA[<p>So, I decided to make use of the complimentary upgrade from my current Windows 7 running on VirtualBox to Windows 10. Not exactly the smoothest process, but I got it working after 5 days. I&#8217;m listing all the problems I encountered and the solutions I applied to get my free toy that I rarely use. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2015/08/18/windows-10-was-not-my-idea-but-it-was-free/">Windows 10 Was NOT My Idea, But It Was Free</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>So, I decided to make use of the complimentary upgrade from my current Windows 7 running on VirtualBox to Windows 10. Not exactly the smoothest process, but I got it working after 5 days.</p>



<p>I&#8217;m listing all the problems I encountered and the solutions I applied to get my free toy that I rarely use.</p>



<h2 class="wp-block-heading">PROBLEM: &#8220;Get Windows 10&#8221; icon not showing on taskbar</h2>



<p>To fix this, run all Windows updates first. In my case, I had to upgrade my Windows 7 to SP1 for that icon to show up.</p>



<h2 class="wp-block-heading">PROBLEM: &#8220;CPU isn&#8217;t supported&#8221; error</h2>



<p>When clicking on &#8220;Get Windows 10&#8221;, you may get &#8220;CPU isn&#8217;t supported&#8221; error.</p>



<p>To fix this, shut down guest VM. Then, check &#8220;Enable PAE/NX&#8221; setting in VirtualBox.</p>



<h2 class="wp-block-heading">PROBLEM: &#8220;Get Windows 10&#8221; error report doesn&#8217;t refresh</h2>



<p>It appears Microsoft configures Windows 10 Compatibility Appraiser to run every once awhile.</p>



<p>To fix this, force it immediately because my time is money.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; title: ; notranslate">
schtasks.exe /Run /TN &quot;\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser&quot;
</pre></div>


<p>Wait for a few minutes before checking the error report.</p>



<h2 class="wp-block-heading">PROBLEM: &#8220;Virtualbox Graphics Adapter was not compatible with Windows 10&#8221; error</h2>



<p>Okay, this is pure bull.</p>



<p>To fix this, download <a href="http://windows.microsoft.com/en-us/windows-10/media-creation-tool-install" target="_blank" rel="noopener">Media Creation Tool</a> and use that to perform the upgrade instead.</p>



<h2 class="wp-block-heading">PROBLEM: Progress stuck at 0% for hours</h2>



<p>When running media creation tool, the progress may be stuck at 0% or whatever percentage for hours. Well, the Microsoft servers are overloaded.</p>



<p>To fix this, rerun Media Creation Tool, say 5AM in the morning&#8230; works for me.</p>



<h2 class="wp-block-heading">PROBLEM: &#8220;Setup has failed to initialize the working directory&#8221; error</h2>



<p>Basically, the guest VM doesn&#8217;t have enough space for Windows 10 upgrade.</p>



<p>To fix this, shut down guest VM.</p>



<p>Then, increase the virtual space by running the following command on the host. In my case, I increased my virtual size to 100GB.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
VBoxManage modifyhd &quot;/Users/Shitty Author/VirtualBox VMs\Windows 7\Windows 7.vdi” --resize 102400
</pre></div>


<p>Now, increase the actual space by first downloading <a href="http://gparted.org/download.php" target="_blank" rel="noopener">GParted Live ISO</a>.</p>



<p>In VirtualBox, add this ISO to &#8220;IDE Controller&#8221;. Make sure CD is booted before hard drive.</p>



<p>Run guest VM.</p>



<p>When GParted Live gets loaded, use the default values by hitting Enter keys several times.</p>



<p>Expand the existing NTFS drive space accordingly.</p>



<p>Restart guest VM.</p>



<p>Rerun Media Creation Tool&#8230; and hopefully it works this time.</p>



<h2 class="wp-block-heading">What Now?</h2>



<p>Well, now I have Windows 10 Pro running in VirtualBox, together with Ubuntu, Centos, Fedora and Android OS.</p>



<p>In reality, I will only use Windows 10 to test my software and spend 99.9% of my time on Mac.</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2015/08/18/windows-10-was-not-my-idea-but-it-was-free/">Windows 10 Was NOT My Idea, But It Was Free</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2015/08/18/windows-10-was-not-my-idea-but-it-was-free/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">799</post-id>	</item>
		<item>
		<title>VirtualBox: Failed to delete the storage unit of the hard disk /PATH/HARD-DISK.vdi. Cannot close medium &#8216;/PATH/HARD-DISK.vdi&#8217; because it has N child media.</title>
		<link>https://myshittycode.com/2013/11/23/virtualbox-failed-to-delete-the-storage-unit-of-the-hard-disk-pathhard-disk-vdi-cannot-close-medium-pathhard-disk-vdi-because-it-has-n-child-media/</link>
					<comments>https://myshittycode.com/2013/11/23/virtualbox-failed-to-delete-the-storage-unit-of-the-hard-disk-pathhard-disk-vdi-cannot-close-medium-pathhard-disk-vdi-because-it-has-n-child-media/#respond</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Sat, 23 Nov 2013 14:36:33 +0000</pubDate>
				<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">http://myshittycode.com/?p=240</guid>

					<description><![CDATA[<p>After upgrading to VirtualBox 4.3.2 r90405, I get this dreaded error message when running VirtualBox:- I was able to clone the offending VDI and boot from the cloned VDI without losing any data. The cloning process took about half hour. Now, when I try to remove the offending VDI under Virtual Media Manager, I get [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2013/11/23/virtualbox-failed-to-delete-the-storage-unit-of-the-hard-disk-pathhard-disk-vdi-cannot-close-medium-pathhard-disk-vdi-because-it-has-n-child-media/">VirtualBox: Failed to delete the storage unit of the hard disk /PATH/HARD-DISK.vdi. Cannot close medium &#8216;/PATH/HARD-DISK.vdi&#8217; because it has N child media.</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>After upgrading to VirtualBox 4.3.2 r90405, I get this dreaded error message when running VirtualBox:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
One or more virtual hard disks, CD/DVD or floppy disk image files are not
currently accessible. As a result, you will not be able to operate virtual
machines that use these files until they become accessible later.
Press Check to open the Virtual Media Manager window and see which files
are inaccessible, or press Ignore to ignore this message.
</pre></div>


<p>I was able to clone the offending VDI and boot from the cloned VDI without losing any data. The cloning process took about half hour.</p>



<p>Now, when I try to remove the offending VDI under <strong>Virtual Media Manager</strong>, I get the following error message:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Failed to delete the storage unit of the hard disk
/Users/theUser/Library/VirtualBox/HardDisks/Windows.vdi.
Cannot close medium &#039;/Users/theUser/Library/VirtualBox/HardDisks/Windows.vdi&#039;
because it has 2 child media.
</pre></div>


<p>So, I ran the following command on the Terminal:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
VBoxManage list hdds
</pre></div>


<p>&#8230; and these are the results I see:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; highlight: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]; title: ; notranslate">
UUID:           8c688dc1-0ec3-4528-82b8-efd78a24277e
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /Users/theUser/Library/VirtualBox/HardDisks/Windows.vdi
Storage format: VDI
Capacity:       51200 MBytes


UUID:           7ef3723f-e960-4e68-9b8c-ef8d65b1474b
Parent UUID:    8c688dc1-0ec3-4528-82b8-efd78a24277e
State:          inaccessible
Type:           normal (differencing)
Location:       /Users/theUser/Library/VirtualBox/Machines/Windows 7 64/Snapshots/{7ef3723f-e960-4e68-9b8c-ef8d65b1474b}.vdi
Storage format: VDI
Capacity:       0 MBytes

UUID:           633a54a5-c3c0-4330-b371-9d448ae28c4c
Parent UUID:    8c688dc1-0ec3-4528-82b8-efd78a24277e
State:          inaccessible
Type:           normal (differencing)
Location:       /Users/theUser/Library/VirtualBox/Machines/Windows 7 64/Snapshots/{633a54a5-c3c0-4330-b371-9d448ae28c4c}.vdi
Storage format: VDI
Capacity:       0 MBytes

UUID:           7375877a-0e16-4803-a972-ac4e84f71a4b
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /Users/theUser/Library/VirtualBox/HardDisks/Ubuntu 32.vdi
Storage format: VDI
Capacity:       8192 MBytes

UUID:           70a8d322-a207-4e56-afc3-50fbaa97593e
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /Users/theUser/VirtualBox VMs/Ubuntu 64 Clone/Ubuntu 64 Clone.vdi
Storage format: VDI
Capacity:       10240 MBytes

UUID:           6d655fd9-362b-4ae6-b2ad-2be61582aa72
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /Users/theUser/VirtualBox VMs/Ubuntu 12.04 LTS - 64bit/Ubuntu 12.04 LTS - 64bit.vdi
Storage format: VDI
Capacity:       10240 MBytes

UUID:           1ff0ee93-bdf0-4162-ad50-636bbc8870cf
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /Users/theUser/VirtualBox VMs/Centos 64/Centos 64.vdi
Storage format: VDI
Capacity:       10240 MBytes

UUID:           190349ca-ce6d-4f95-bf65-f378f476c403
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /Users/theUser/VirtualBox VMs/Windows 7/Windows 7-disk1.vdi
Storage format: VDI
Capacity:       51200 MBytes
</pre></div>


<p>The highlighted rows are the offending VDIs that I tried to remove. After checking the file system, both Windows 7 snapshots no longer exist but VirtualBox still keeps track of them in <b>VirtualBox.xml</b>.</p>



<p>Using the UUIDs, I remove both snapshots first:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
VBoxManage closemedium disk 633a54a5-c3c0-4330-b371-9d448ae28c4c
VBoxManage closemedium disk 7ef3723f-e960-4e68-9b8c-ef8d65b1474b
</pre></div>


<p>Then, I remove the offending parent VDI:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
VBoxManage closemedium disk 8c688dc1-0ec3-4528-82b8-efd78a24277e
</pre></div>


<p>Now, when I rerun VirtualBox again, the error message does not appear anymore</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2013/11/23/virtualbox-failed-to-delete-the-storage-unit-of-the-hard-disk-pathhard-disk-vdi-cannot-close-medium-pathhard-disk-vdi-because-it-has-n-child-media/">VirtualBox: Failed to delete the storage unit of the hard disk /PATH/HARD-DISK.vdi. Cannot close medium &#8216;/PATH/HARD-DISK.vdi&#8217; because it has N child media.</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2013/11/23/virtualbox-failed-to-delete-the-storage-unit-of-the-hard-disk-pathhard-disk-vdi-cannot-close-medium-pathhard-disk-vdi-because-it-has-n-child-media/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">240</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Disk

Served from: myshittycode.com @ 2026-02-21 04:59:57 by W3 Total Cache
-->