<?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>Virtualization &#8211; LarryLai</title>
	<atom:link href="https://larrylai.com/category/it/system/cloud/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>https://larrylai.com</link>
	<description>兼聽則明 偏聽則暗</description>
	<lastBuildDate>Tue, 09 Jun 2026 18:03:23 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://larrylai.com/wp-content/uploads/2017/03/larrylai_com-favicon.png</url>
	<title>Virtualization &#8211; LarryLai</title>
	<link>https://larrylai.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Fix CentOS VM Client Boot Failure: A Step-by-Step Troubleshooting Guide</title>
		<link>https://larrylai.com/how-to-fix-centos-vm-client-boot-failure-a-step-by-step-troubleshooting-guide/</link>
					<comments>https://larrylai.com/how-to-fix-centos-vm-client-boot-failure-a-step-by-step-troubleshooting-guide/#respond</comments>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Tue, 09 Jun 2026 18:03:23 +0000</pubDate>
				<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">https://larrylai.com/how-to-fix-centos-vm-client-boot-failure-a-step-by-step-troubleshooting-guide/</guid>

					<description><![CDATA[<p>Understanding the Boot Failure: Two Failed Services When I tried to spin up my CentOS 7 guest—running on kernel 3.10 within VirtualBox 6.0.10—the boot process didn&#8217;t behave as expected. Instead of reaching a stable login prompt, the system stalled mid-way through the startup sequence. Upon inspecting the console logs, I noticed two critical error messages [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/how-to-fix-centos-vm-client-boot-failure-a-step-by-step-troubleshooting-guide/">How to Fix CentOS VM Client Boot Failure: A Step-by-Step Troubleshooting Guide</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Understanding the Boot Failure: Two Failed Services</h2>
<p>When I tried to spin up my CentOS 7 guest—running on kernel 3.10 within VirtualBox 6.0.10—the boot process didn&#8217;t behave as expected. Instead of reaching a stable login prompt, the system stalled mid-way through the startup sequence.</p>
<p>Upon inspecting the console logs, I noticed two critical error messages that pointed to exactly where things were breaking down: <code>[FAILED] Failed to start Virtual Machine and Container Registration Service</code> and <code>[FAILED] Failed to start Login Service</code>. </p>
<p>At this stage, I wasn&#8217;t entirely certain of the smoking gun. It looked like a potential issue with the SELinux configuration—specifically how it was interacting with the system&#8217;s boot state—but I also had to consider that this might be a known bug within VirtualBox 6 itself. Regardless of the exact culprit, these two service failures were preventing me from accessing my environment.</p>
<h2>Prerequisites for Troubleshooting</h2>
<p>Before diving into the fix, I made sure I had a few things in place—this approach means editing system files during boot, so a little preparation goes a long way:</p>
<ul>
<li><strong>Access to the VirtualBox console.</strong> You need to be at the keyboard when the VM first powers on, ready to catch the GRUB menu before it hands off to the kernel. (My environment was a CentOS 7 guest on VirtualBox 6.0.10.)</li>
<li><strong>A snapshot or backup first.</strong> Since we&#8217;ll be remounting the filesystem and editing <code>/etc/selinux/config</code>, take a VirtualBox snapshot beforehand. If anything goes sideways, you can roll straight back.</li>
<li><strong>Comfort with a terminal editor.</strong> The fix happens in <code>vi</code> inside a minimal rescue shell, so basic <code>vi</code> navigation (insert, save, quit) is all you need.</li>
<li><strong>Knowing your boot entry.</strong> If GRUB lists multiple kernels, be ready to identify your primary CentOS entry—that&#8217;s the one we&#8217;ll edit.</li>
</ul>
<h2>Step 1: Revealing the Hidden Boot Errors (Exit Quiet Boot)</h2>
<p>When I first encountered the boot failure, I was met with nothing but a static progress bar. By default, CentOS 7 uses a &#8220;quiet boot&#8221; setting that hides the technical minutiae of the startup process behind a clean splash screen. While this looks professional, it is incredibly unhelpful when you are troubleshooting a system that refuses to start.</p>
<p>To see what was actually happening under the hood, I needed to reveal the full system logs. As soon as the boot sequence begins, pressing the <strong>Esc</strong> key interrupts the quiet mode and displays the detailed text-based output. By doing this, I was finally able to see the specific <code>[FAILED]</code> messages—such as those regarding the Virtual Machine and Container Registration Service—that provided the first real clue into the system&#8217;s instability.</p>
<h2>Step 2: Booting CentOS into Rescue Mode via GRUB</h2>
<p>Once I realized the standard boot process was hitting a wall, my next move was to use the GRUB menu to bypass the failing services and drop straight into a command-line environment. It&#8217;s important to note that GRUB itself isn&#8217;t corrupt—it is still functioning perfectly as our entry point—we just need to change how it hands off control to the kernel.</p>
<p>Here is exactly how I navigated through the bootloader to enter rescue mode:</p>
<ol>
<li><strong>Select the Entry:</strong> When the VirtualBox window displays the GRUB boot menu, use your arrow keys to highlight your primary CentOS boot entry.</li>
<li><strong>Edit the Boot Parameters:</strong> Press the <code>e</code> key on your keyboard. This opens an editor that allows you to modify the boot instructions before they are actually executed by the system.</li>
<li><strong>Modify the Linux Line:</strong> Scroll down through the text until you find the line starting with <code>linux16</code>. This line contains the kernel-specific arguments and parameters. Navigate to the very end of this line, add a space, and append: <code>systemd.unit=rescue.target</code></li>
<li><strong>Execute the Boot:</strong> Once the parameter is added, press <code>Ctrl+X</code> (or <code>F10</code>) to boot with these new settings.</li>
</ol>
<p>This process forces CentOS to skip the standard multi-user startup sequence—where the failing services are triggered—and instead boots you directly into a minimal, single-user rescue environment where we can address the SELinux configuration issues manually.</p>
<h2>Step 3: Fixing the SELinux Configuration (the Root Cause)</h2>
<p>Once I was settled into the rescue shell, my first task wasn&#8217;t editing files—it was making sure I could actually save them. Depending on how the system lands in rescue mode, the root filesystem can come up read-only, so to be safe I remounted it writable before touching anything:</p>
<p><code>mount -o remount,rw /</code></p>
<p>With write access secured, I turned my attention to the primary suspect: the SELinux configuration. SELinux sits deep in the boot path, and when its policy gets tangled up with the system&#8217;s state—as it can in a quirky VirtualBox guest—it&#8217;s capable of quietly stalling the very services CentOS needs to finish starting.</p>
<p>I opened the configuration file using <code>vi</code>:</p>
<p><code>vi /etc/selinux/config</code></p>
<p>Inside the file, I located the line starting with <code>SELINUX=</code>. Here is the detail that made this issue so hard to pin down: it wasn&#8217;t set to <code>enforcing</code>, as you might assume. It was already on <code>permissive</code>—a mode that is only supposed to <em>log</em> policy violations, not block anything. That&#8217;s precisely why SELinux is such an easy culprit to overlook here; on paper it shouldn&#8217;t have been able to stop those services at all. Yet they still refused to start. So rather than half-measures, I turned SELinux off completely:</p>
<p><code>SELINUX=disabled</code></p>
<p>Setting the mode to <code>disabled</code> takes SELinux fully out of the boot path on the next startup, which is what finally cleared the conflict stalling the Registration and Login services. I saved the file and exited the editor. (If you&#8217;d prefer to keep SELinux active for security, you can switch it back to <code>enforcing</code> once you&#8217;ve confirmed the VM boots reliably—but for getting a stuck machine running again, disabling it is the fastest, most decisive fix.)</p>
<h2>Step 4: Verifying the Fix and Ruling Out the VirtualBox 6 Bug</h2>
<p>After saving my changes in rescue mode, I performed a standard reboot to see if the system would finally reach the login prompt. This time, the boot sequence progressed smoothly; those alarming <code>[FAILED]</code> messages that had been stalling the startup process were nowhere to be seen.</p>
<p>To double-check my work, I ran <code>getenforce</code> once the system was up. The output came back <code>Disabled</code>, confirming SELinux was fully switched off and no longer interfering with the services that had been failing to initialize.</p>
<p>While the VM is now stable, I kept one caveat in mind: the environment involves VirtualBox 6.0.10. There have been documented instances of specific service failures linked to bugs within this particular version of the hypervisor. While correcting the SELinux configuration solved my immediate problem, if you encounter similar boot issues on a different machine even after following these steps, it is worth considering that the issue might reside in the VirtualBox software itself rather than your CentOS configuration.</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/how-to-fix-centos-vm-client-boot-failure-a-step-by-step-troubleshooting-guide/">How to Fix CentOS VM Client Boot Failure: A Step-by-Step Troubleshooting Guide</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://larrylai.com/how-to-fix-centos-vm-client-boot-failure-a-step-by-step-troubleshooting-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VirtualBox VM Inaccessible on Mac</title>
		<link>https://larrylai.com/virtualbox-vm-inaccessible-mac/</link>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Tue, 22 Nov 2016 05:38:15 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">http://larrylai.com/?p=2220</guid>

					<description><![CDATA[<p>Issue: &#8220;The selected virtual machine is inaccessible. Please inspect the error message shown below and press the Refresh button if you want to repeat the accessibility check.&#8221; After saving states of all virtual machines of VirtualBox running on Mac, rebooting the Mac host without any issue. Then it was a big surprised that all virtual [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/virtualbox-vm-inaccessible-mac/">VirtualBox VM Inaccessible on Mac</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Issue:</strong></p>
<p>&#8220;The selected virtual machine is inaccessible. Please inspect the error message shown below and press the <strong>Refresh</strong> button if you want to repeat the accessibility check.&#8221; After saving states of all virtual machines of VirtualBox running on Mac, rebooting the Mac host without any issue. Then it was a big surprised that all virtual machines are inaccessible. Not only the virtual hard disks, but all the virtual machines files.</p>
<p><strong>Solution:</strong></p>
<p>This case was caused by previously renaming the external SSD storing the virtual machine files. After renaming back to original disk name, still have to</p>
<ul>
<li>Remove the virtual machines and Add them back to VirtualBox by going to the VirtualBox application top bar</li>
<li>Choose Machine -&gt; Add</li>
<li>Select the file with .vbox (that&#8217;s the virtual machine file, not the .vdi or .vmdk). In case, the there&#8217;s unexpected quit of VirtualBox, the .vbox may be corrupted, then it is necessary to rename the .vbox-prev to .vbox</li>
</ul>
<p><strong>Tricks:</strong></p>
<ul>
<li>It is not easy to recognise that the issue was caused by renaming the path (in this case, the SSD disk) of the virtual machine as not until restarting VirtualBox, it is not observed there is any error on the virtual machines.</li>
<li>Even after renaming back the path to the original one, VirtualBox still shows inaccessible virtual machine. The suggested solution of clicking the Refresh button located at bottom left cannot fix the problem. (Don&#8217;t know why Oracle is so stupid to suggest this!)</li>
<li>The Machine -&gt; Add appears only at the top bar of VirtualBox application, but not appear at the top bar of Oracle VM VirtualBox Manager</li>
<li>It is easy to misinterpret the error message that it was due to inaccessible storage and it would be tempted to create new VM and access the same original storage, but it is not good in the sense that the virtual hard disk is located under the old VM&#8217;s directory.</li>
<li>Mac users always have TimeMachine backup for the virtual machines, in such case restoring the VM directory is wasting time.</li>
</ul>
<p><strong>Config:</strong></p>
<p>OS X           10.12.1</p>
<p>VirtualBox   5.0.28</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/virtualbox-vm-inaccessible-mac/">VirtualBox VM Inaccessible on Mac</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>VirtualBox Delete Oldest Snapshot</title>
		<link>https://larrylai.com/virtualbox-delete-old-snapshot/</link>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Thu, 24 Dec 2015 06:28:57 +0000</pubDate>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">http://blog.larrylai.com/?p=2042</guid>

					<description><![CDATA[<p>Issue: Deleting the oldest snapshot of virtual machine in VirtualBox is often difficult, sometimes there is error with detail &#8220;more than one child hard disk&#8221;. Solution: Open VirtualBox control panel, select: File-&#62;Virtual Media Manager click on the Virtual child hard disk within the appropriate virtual machine (don&#8217;t check for other non-appropriate virtual machines) one by [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/virtualbox-delete-old-snapshot/">VirtualBox Delete Oldest Snapshot</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Issue:</strong></p>
<p>Deleting the oldest snapshot of virtual machine in VirtualBox is often difficult, sometimes there is error with detail &#8220;more than one child hard disk&#8221;.</p>
<p><strong>Solution:</strong></p>
<p>Open VirtualBox control panel, select:</p>
<p>File-&gt;Virtual Media Manager</p>
<p>click on the Virtual child hard disk within the appropriate virtual machine (don&#8217;t check for other non-appropriate virtual machines) one by one, at the lower part of the panel, there are some information about the hard disk, &#8220;Type&#8221;, &#8230; &#8220;Attached to:&#8221;, etc., normally all child hard disk of the same virtual machine should be &#8220;attached to&#8221; the name of the Virtual machine, but at the problem child hard disk, the info. about the &#8220;Attached to&#8221; is Not Attached, then you can select &#8220;Remove&#8221; to take it out, if ask whether to &#8220;Keep&#8221; or &#8220;Remove&#8221;, for safety, you can keep the file, then go back to Snapshots to remove again the snapshot, the error should be gone.</p>
<p><strong>Tricks:</strong></p>
<ul>
<li>Similar error occur only on deleting the oldest snapshot but not recent snapshots.</li>
<li>It is dangerous to just remove the hard disk file stored in the Snapshot directory of the virtual machine, and indeed remove snapshot process of Virtualbox is not just removal of virtual disk file, but some kind of merging the appropriate snapshot content with the current virtual hard disk. Inappropriate removing any snapshot files would be a nightmare to restart the virtual machine.</li>
<li>In many forums, it is known that the error of deleting the first snapshot is a bug of VirtualBox for quite some years since ver. 3.x, but it still exists till this version 5. A shame to the technology giant, Oracle!</li>
</ul>
<p><strong>Config:</strong></p>
<p>VirtualBox  5.0.10r104061</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/virtualbox-delete-old-snapshot/">VirtualBox Delete Oldest Snapshot</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Google Chrome Not Start Only Flicking</title>
		<link>https://larrylai.com/google-chrome-not-start-only-flicking/</link>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 08:49:30 +0000</pubDate>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">http://blog.larrylai.com/?p=2026</guid>

					<description><![CDATA[<p>Issue: Starting Chrome in Windows 7 guest from Virtualbox happens to see only flicking windows with flashing rate around 2-4 rounds per sec. Solution: Turn off hardware acceleration in Chrome setting or uncheck 3D acceleration in Virtualbox. Tricks: When flicking occurs, you cannot start Chrome, thus no way to turn off hardware acceleration at setting. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/google-chrome-not-start-only-flicking/">Google Chrome Not Start Only Flicking</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Issue:</strong></p>
<p>Starting Chrome in Windows 7 guest from Virtualbox happens to see only flicking windows with flashing rate around 2-4 rounds per sec.</p>
<p><strong>Solution:</strong></p>
<p>Turn off hardware acceleration in Chrome setting or uncheck 3D acceleration in Virtualbox.</p>
<p><strong>Tricks:</strong></p>
<p>When flicking occurs, you cannot start Chrome, thus no way to turn off hardware acceleration at setting. Either start Windows in safe mode, then start Chrome and change setting or shutdown windows then uncheck 3D acceleration setting in Virtualbox, and start windows again.</p>
<p><strong>Config:</strong></p>
<ul>
<li>Chrome 47.0.2526.80 m (64-bit) for Windows</li>
<li>Windows 7 Service Pack 1</li>
<li>Virtualbox  5.0.10</li>
</ul>
<p>The post <a rel="nofollow" href="https://larrylai.com/google-chrome-not-start-only-flicking/">Google Chrome Not Start Only Flicking</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Amazon EC2 Total Connection Lost</title>
		<link>https://larrylai.com/amazon-ec2-total-connection-lost/</link>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Mon, 22 Apr 2013 08:21:07 +0000</pubDate>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">http://blog.larrylai.com/?p=1556</guid>

					<description><![CDATA[<p>Background: Trying to set up another Drupal site on free tier of Amazon cloud, the feeling and setup are all good! After setting up LAMP stack, suddenly received an email from Amazon that I recently reached a limit on the volume of email I was able to send out of SMTP port 25 on my instance. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/amazon-ec2-total-connection-lost/">Amazon EC2 Total Connection Lost</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Background:</strong></p>
<p>Trying to set up another <a href="http://www.drupal.org" target="_blank" rel="noopener">Drupal</a> site on free tier of Amazon cloud, the feeling and setup are all good! After setting up <a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)" target="_blank" rel="noopener">LAMP</a> stack, suddenly received an email from Amazon that I recently reached a limit on the volume of email I was able to send out of <a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol" target="_blank" rel="noopener">SMTP</a> port 25 on my instance. I was shocked on the one hand worrying about if my webserver was compromised and on the other hand questioned why the Security Group pre-set by Amazon EC2 did not work according to my expectation. It led me to enable the firewall of my linux, i.e. CentOS 6.</p>
<p><strong>Issue:</strong></p>
<p>Although open the specific port for <a href="http://www.webmin.com" target="_blank" rel="noopener">webmin</a> on the linux <a href="http://en.wikipedia.org/wiki/Firewall_%28computing%29" target="_blank" rel="noopener">firewall</a>, I forgot to open the <a href="http://www.ssh.com" target="_blank" rel="noopener">SSH</a> port 22, it caused a tragic connection lost to the virtual machine. That is, it could neither be connected through SSH login nor webmin. That may be caused by incorrect set up of the firewall rules such that the specific port for webmin was unexpectedly blocked.</p>
<p><strong>Solution:</strong></p>
<ul>
<li>Terminate the virtual machine and set up a new instance.</li>
<li>Use webmin&#8217;s standard linux firewall rules and add some ports, but not other rules.</li>
</ul>
<p><strong>Configuration:</strong></p>
<ul>
<li>EC2 micro-tier</li>
<li>CentOS 6.4</li>
<li>Webmin 1.620</li>
</ul>
<p>The post <a rel="nofollow" href="https://larrylai.com/amazon-ec2-total-connection-lost/">Amazon EC2 Total Connection Lost</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Migrating Windows Physical Machine to VirtualBox</title>
		<link>https://larrylai.com/migrating-windows-physical-machine-to-virtualbox/</link>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Mon, 11 Mar 2013 07:53:06 +0000</pubDate>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">http://blog.larrylai.com/?p=1520</guid>

					<description><![CDATA[<p>Background: As more depending on iPad (now iPad mini), few tasks are to be done on my current notebook PC, Acer Aspire 1810Z running Windows 7 Home Premium. Rebuild desktop PC, HP from previous CentOS 5 to OpenSuse, I want to have a virtual Windows for some special situations, e.g. web applications need to run [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/migrating-windows-physical-machine-to-virtualbox/">Migrating Windows Physical Machine to VirtualBox</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Background:</strong></p>
<p>As more depending on iPad (now iPad mini), few tasks are to be done on my current notebook PC, Acer Aspire 1810Z running Windows 7 Home Premium.</p>
<p>Rebuild desktop PC, HP from previous CentOS 5 to OpenSuse, I want to have a virtual Windows for some special situations, e.g. web applications need to run on MS Internet Explorer. Actually, still most payment gateways connected to the Hong Kong Government&#8217;s agencies need IE to proceed the payment transactions even though some of them allow you to make booking reservation online with other browsers.</p>
<p>Choosing Oracle VirtualBox as the virtualization platform rather than OpenSuse&#8217;s preferred Xen and KVM tools because I used to running my virtualized guest OS&#8217; on VirtualBox for quite some years. My CentOS guest has been running the main webserver Apache on VirtualBox deployed in my Mac Mini for 2 years.</p>
<p>Methodology for the migration is using Windows 7 built-in backup system utilities to backup the whole system to external disk, and made a ISO bootable file to be used as the virtual boot CD in VirtualBox.</p>
<p><strong>Issues:</strong></p>
<ol>
<li>Making VirtualBox to operating properly in OpenSuse was the 1st issue. After installation, only the root user could start it, but not other normal users. I run my desktop as normal user instead of root just for security reasons.</li>
<li>Could not restore the Windows backup image to a new virtual disk with error stating that no valid disk is connected to the system. Actually, by inputing Windows command &#8220;DISKPART&#8221; followed by &#8220;LIST DISK&#8221;, the newly created disk was shown. Even though using Gparted utility to make partition table on the disk and format the disk to ntfs file system. All these did not work.</li>
<li>After recovering from the backup image, still could not kick of the Windows VM. After seeing the Windows 7 logo, total black screen and nothing happened.</li>
</ol>
<p><strong>Solutions:</strong></p>
<ol>
<li>Run VirtualBox as non-root user.
<ol>
<li>Install VirtualBox from Oracle site rather than from OpenSuse software repository. Also install Oracle VirtualBox extension Pack.</li>
<li>Change permission of /dev/vboxdrv to allow other users to access this driver.</li>
</ol>
</li>
<li>Select SATA controller to configure the virtual system disk to run Windows though transferring of files is fine using other types of storage controllers, say IDE. Configure a larger disk, say 160GB. Using a disk with small capacity say 40GB would cause the error mentioned above.</li>
<li>Configure VM with 2 processors instead of 1.</li>
</ol>
<p><strong>Tricks:</strong></p>
<ol>
<li>After installing VirtualBox from Oracle site, still some minor errors occur. Need to install/update some software in OpenSuse to clear the errors.</li>
<li>Even though the windows image is small, say 30GB, but I guess the original disk being backup was 120GB, then the target disk should not be less than 120GB. In case no physical capacity for disk is available. Thin provisioning of disk by selecting dynamic disk space allocation in VirtualBox is good.</li>
<li>I focused on changing the video RAM allocation for the VM and unchecking 3D, 2D acceleration. All these changes suggested on the web could NOT help for this scenario.</li>
</ol>
<p><strong>Config:</strong></p>
<ul>
<li>CPU E8400 dual-core 3GHz, with 4GB memory</li>
<li>OpenSuse 12.2 (x86_64)</li>
<li>VirtualBox 4.2.8 r83876, and VM configuration below:
<ul>
<li>Processor No =2</li>
<li>Memory = 1.5GB</li>
<li>3D and 2D acceleration checked</li>
</ul>
</li>
<li>Windows 7 Home Premium</li>
</ul>
<p>The post <a rel="nofollow" href="https://larrylai.com/migrating-windows-physical-machine-to-virtualbox/">Migrating Windows Physical Machine to VirtualBox</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
