<?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>Lacqui&#039;s Log &#187; VirtualBox</title>
	<atom:link href="http://blog.lacqui.com/category/computers/virtualbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lacqui.com</link>
	<description>Not just good - Just good enough</description>
	<lastBuildDate>Sun, 23 Oct 2011 18:59:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Virtual Hard-Disk Upgrade</title>
		<link>http://blog.lacqui.com/2009/02/virtual-hard-disk-upgrade/</link>
		<comments>http://blog.lacqui.com/2009/02/virtual-hard-disk-upgrade/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 04:09:57 +0000</pubDate>
		<dc:creator>lacqui</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.lacqui.com/?p=21</guid>
		<description><![CDATA[After getting Gentoo installed on my VirtualBox, I realized that my 20 GB virtual HD wasn&#8217;t as big as I had thought.  I decided to double my storage. Figuring out what to do was relatively painless.  The Linux Documentation Project has a slightly outdated howto document on hard drive upgrades; the process was almost the [...]]]></description>
			<content:encoded><![CDATA[<p>After getting <a href="http://www.gentoo.org">Gentoo</a> installed on my <a href="http://www.virtualbox.org">VirtualBox</a>, I realized that my 20 GB virtual HD wasn&#8217;t as big as I had thought.  I decided to double my storage.</p>
<p>Figuring out what to do was relatively painless.  The <a href="http://tldp.org/">Linux Documentation Project</a> has a slightly outdated <a href="http://tldp.org/HOWTO/Hard-Disk-Upgrade/index.html">howto document on hard drive upgrades</a>; the process was almost the same.  The first major difference was in the installation of a new drive.  Instead of physically installing a new drive, you need to create a new virtual drive image.  With VBox running but not booted:</p>
<ul>
<li>File -&gt; Virtual Media Manager</li>
<li>File -&gt; New</li>
<li>Fill in the details for the new image.  Note that, even if you&#8217;re going to replace an existing image, you still need to give it a new name.</li>
<li>OK</li>
<li>Right-click on the virtual machine, and go to Settings</li>
<li>Click on &#8220;Hard Disks&#8221;</li>
<li>Add the new image as the primary slave</li>
</ul>
<p>Now you can boot the virtual machine and follow the howto doc.</p>
<p>The second major issue was with the bootloader.  The howto was written in 2000, when <a href="http://en.wikipedia.org/wiki/LILO_(boot_loader)">LILO</a> was the standard Linux bootloader.  However, <a href="http://www.gnu.org/software/grub/">GRUB</a> seems to be more in favour these days, so somewhat different commands are required.</p>
<p>Once the files are copied to the new image (as per the howto instructions), I used the following commands:</p>
<p><code><br />
# <strong>grub</strong><br />
grub&gt; <strong>root (hd1,0)</strong><br />
grub&gt; <strong>setup (hd1)</strong><br />
grub&gt; <strong>quit</strong></code></p>
<p>Where the code i typed was <strong>emphasized</strong>.  Note also that (hd1,0)  is if your virtual drive is the primary slave; your situation may change.  GRUB has tab-completion, so typing (hd&lt;TAB&gt; will show you your options.</p>
<p>One more change that may or may not be required, depending on your distribution.  If your system uses <a href="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" class="broken_link">udev</a> (if /new-disk/dev is empty, you&#8217;re using udev), you need to add devices for your console and null (for the few seconds before udev is loaded):</p>
<p><code><br />
mknod -m600 /new-disk/dev/console 5 1<br />
mknod -m600 /new-disk/dev/tty0 4 0<br />
mknod -m600 /new-disk/dev/tty1 4 1<br />
mknod -m666 /new-disk/dev/null 1 3<br />
</code></p>
<p>These will be hidden by the udev system, but are important for boot.</p>
<p>Once you have done this, shut down the virtual machine.  Then go to the virtual machine&#8217;s preferences and switch the hard drives around, so the new hard drive is now primary master.  After a reboot, you should have a working system with a larger hard drive.  Remove the old hard drive image, or keep it as extra storage space.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.lacqui.com%2F2009%2F02%2Fvirtual-hard-disk-upgrade%2F&amp;title=Virtual%20Hard-Disk%20Upgrade" id="wpa2a_2"><img src="http://blog.lacqui.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lacqui.com/2009/02/virtual-hard-disk-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo under Vista</title>
		<link>http://blog.lacqui.com/2009/02/gentoo-under-vista/</link>
		<comments>http://blog.lacqui.com/2009/02/gentoo-under-vista/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 05:44:28 +0000</pubDate>
		<dc:creator>lacqui</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.lacqui.com/?p=3</guid>
		<description><![CDATA[My current laptop runs 64-bit Vista.  This computer is used by my family for gaming, so there&#8217;s not much chance that I&#8217;ll be converting it full-time to Linux.  Instead, I decided to use Sun&#8217;s VirtualBox to run a Linux development box under Vista. After much wavering between Ubuntu and Gentoo, I finally settled on the [...]]]></description>
			<content:encoded><![CDATA[<p>My current laptop runs 64-bit Vista.  This computer is used by my family for gaming, so there&#8217;s not much chance that I&#8217;ll be converting it full-time to Linux.  Instead, I decided to use <a title="Sun VirtualBox" href="http://www.virtualbox.org">Sun&#8217;s VirtualBox</a> to run a Linux development box under Vista.</p>
<p>After much wavering between <a title="Ubuntu Linux" href="http://www.ubuntu.com">Ubuntu</a> and <a title="Gentoo Linux" href="http://www.gentoo.org">Gentoo</a>, I finally settled on the latter.  No particular reason, except maybe that I&#8217;m not planning on using much GUI, so Gentoo is a lighter-weight system in that regard.  It is quite possible that I&#8217;ll add an Ubuntu system as well, as this is the system my father uses and I would like that software I write may one day end up on his default install.</p>
<p>The installation was pretty straightforward.  After installing VirtualBox through the standard Windows installer, I noticed that VirtualBox has a preset for Gentoo systems.  I used that preset, generated my hard drive image (20 GB virtual drive), then mounted my Gentoo iso.  Boot, no problems so far.</p>
<p>My virtual machine is still installing (hey, Gentoo isn&#8217;t exactly a fast installer), but I still have two major to-do items:</p>
<ul>
<li>Get <a title="VirtualBox VM Service" href="http://sourceforge.net/projects/vboxvmservice">VBoxVmService</a> working.  This is a system to allow VirtualBox to run as a Windows service.  Unfortunately, information on VBoxVmService is spread throughout forum threads, and it&#8217;s hard to follow; even though I seem to have everything set up correctly (according to the instructions), it&#8217;s not working.  Even worse, the logs indicate that everything <em>is</em> working, so troubleshooting is going to be an issue.</li>
<li>Install the VirtualBox guest additions.  These allow for better interfacing between the host and guest systems.</li>
</ul>
<p>Once I have everything working, I&#8217;m going to take some time to get back into &#8220;programmer-mode&#8221;, it having been almost five years since I could call myself a professional programmer.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.lacqui.com%2F2009%2F02%2Fgentoo-under-vista%2F&amp;title=Gentoo%20under%20Vista" id="wpa2a_4"><img src="http://blog.lacqui.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.lacqui.com/2009/02/gentoo-under-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

