<?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>biotext.org.uk &#187; VirtualBox</title>
	<atom:link href="http://biotext.org.uk/tag/virtualbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://biotext.org.uk</link>
	<description>Not a typewriter</description>
	<lastBuildDate>Sat, 05 Feb 2011 14:18:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Things to try when VirtualBox networking messes up</title>
		<link>http://biotext.org.uk/things-to-try-when-virtualbox-networking-messes-up/</link>
		<comments>http://biotext.org.uk/things-to-try-when-virtualbox-networking-messes-up/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 09:52:40 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://biotext.org.uk/?p=447</guid>
		<description><![CDATA[This is really a note-to-self but it might help other people too. I have two network interfaces in my Ubuntu guest (on OS X 10.4 host), one NAT, one host-only. Sometimes one of them doesn&#8217;t get an IP address &#8212; in ifconfig it has an inet6 address but not an inet address. Today I tried [...]]]></description>
			<content:encoded><![CDATA[<p>This is really a note-to-self but it might help other people too.</p>
<p>I have two network interfaces in my Ubuntu guest (on OS X 10.4 host), one NAT, one host-only.</p>
<p>Sometimes one of them doesn&#8217;t get an IP address &#8212; in ifconfig it has an inet6 address but not an inet address.</p>
<p>Today I tried</p>
<p><code>sudo dhclient eth1</code></p>
<p>and it worked &#8212; all it needed to do was re-query VirtualBox&#8217;s built-in DHCP server.</p>
<p>I would have thought this would do that automatically:</p>
<p><code>sudo /etc/init.d/networking restart</code></p>
<p>However that didn&#8217;t help&#8230; But dhclient did.</p>
<p>Another recurring problem is that when I move between different networks, DNS resolution gets screwed up. There&#8217;s a description of this with a suggested work around (using VBox&#8217;s DNS Proxy) here:</p>
<p>http://forums.virtualbox.org/viewtopic.php?f=1&#038;t=28332</p>
<p>However, while this seemed to help with two of the networks I use frequently, it didn&#8217;t with a third, even after rebooting.</p>
<p>So, as suggested on one or two threads, I&#8217;ve removed the DNSProxy setting, and set the Ubuntu guest to use Google&#8217;s public DNS servers instead of those provided by the DHCP server for the NATted virtual NIC. (Blah blah blah.) Follow example here (more or less):</p>
<p><a href="http://grumpymole.posterous.com/how-to-use-google-public-dns-or-opendns-in-ub">http://grumpymole.posterous.com/how-to-use-google-public-dns-or-opendns-in-ub</a></p>
<p>Seems to be working so far&#8230; But only tested on one of the offending networks, and without rebooting yet. Updates to come later.</p>
<p>&#8230; Nope, after upgrading to Snow Leopard and the latest VirtualBox (it&#8217;s now from Oracle &#8212; scary), random problems persist.</p>
<p>Sometimes I&#8217;ll lose guest-host connectivity in the middle of a session, without any sleep or other interruptions, but will still be able to see the internet from the NAT adaptor.</p>
<p>One possible solution here involving using OS X itself as the NAT router:</p>
<p><a href="http://akutz.wordpress.com/2009/08/20/building-a-better-os-x-firewall-or-how-i-solved-the-nat-problem-for-virtualbox/">http://akutz.wordpress.com/2009/08/20/building-a-better-os-x-firewall-or-how-i-solved-the-nat-problem-for-virtualbox/</a></p>
<p>&#8230; but it&#8217;ll take work.</p>
<p>Or maybe a simpler version of the same approach: have a single host-only adaptor, use OS X&#8217;s internet sharing to share the AirPort card, and manually tell the vbox to use 192.168.56.1 as the default gateway:</p>
<p><a href="http://forum.virtualbox.org/viewtopic.php?f=1&#038;t=26544">http://forum.virtualbox.org/viewtopic.php?f=1&#038;t=26544</a></p>
<p>If all else fails, try using a different ethernet hardware emulator.</p>
]]></content:encoded>
			<wfw:commentRss>http://biotext.org.uk/things-to-try-when-virtualbox-networking-messes-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacBook keyboard hacks for # (hash/pound/numbersign)</title>
		<link>http://biotext.org.uk/macbook-keyboard-hacks-for-hash-pound-numbersign/</link>
		<comments>http://biotext.org.uk/macbook-keyboard-hacks-for-hash-pound-numbersign/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 14:32:09 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://biotext.org.uk/?p=412</guid>
		<description><![CDATA[One of the few annoying things about my oldish MacBook Pro is its keyboard, for example a few unresponsive keys, but particularly the lack of a # key. It&#8217;s a UK keyboard, and has £ for shift-3, and # is hidden in alt-3 (not labelled). This is fine in native desktop apps, but less fine [...]]]></description>
			<content:encoded><![CDATA[<p>One of the few annoying things about my oldish MacBook Pro is its keyboard, for example a few unresponsive keys, but particularly the lack of a # key. It&#8217;s a UK keyboard, and has £ for shift-3, and # is hidden in alt-3 (not labelled).</p>
<p>This is fine in native desktop apps, but less fine in some text-mode programs (e.g. vim), when for some reason this often produces a superscript <sup>3</sup> instead.</p>
<p>So I&#8217;ve set up a custom keyboard mapping in iTerm to map F3 to #, which works nicely. <strong>However!</strong></p>
<p>If I&#8217;m SSHed in to a remote Linux machine (or even my local Ubuntu VirtualBox) neither of these keys work in X apps. But, xmodmap (via the config file ~/.Xmodmap) can help. For some reason, Macs all have a dedicated key for these characters &#8212; § and ± &#8212; which <em>no-one</em> ever uses. But with this line in ~/.Xmodmap we can remap it to produce #:</p>
<p>keycode 18=numbersign</p>
<p><strong>UPDATE:</strong> I&#8217;ve found a better way which works pretty much globally&#8230;</p>
<p>Using <a href="http://scripts.sil.org/Ukelele">Ukelele</a> you can copy the British keyboard layout and then remap keys to your heart&#8217;s content. I&#8217;ve moved the § character to the alt-§ key combination, in case I ever need it, and moved the # character to the raw § key. This seems to be respected <em>almost</em> everywhere so I don&#8217;t need to mess around with alt-3 or F3 any more. Joy. It also works over <a href="http://www.jinx.de/JollysFastVNC.html">JollysFastVNC</a> to a remote RealVNC server, which none of the other methods did.</p>
<p>Unfortunately, things still aren&#8217;t perfect. If I actually open a VirtualBox console session into GNOME on the local Ubuntu VM, the pointless § and ± key actually produces &lt; and &gt; so neither of these tricks work. In fact, I can&#8217;t get anything to generate a # even though I have the MacBook Pro Intl keyboard layout selected in GNOME. Any ideas?</p>
<p><strong>UPDATE 2:</strong> YES!! I&#8217;ve finally cracked it for VirtualBox. With the help of the xkeycaps command, I discovered that X the keycodes coming into Ubuntu weren&#8217;t what I thought they were &#8212; somewhere the Mac-ness of the keyboard layout was getting lost. It turned out that the § key was generating keycode 94 instead. So I set up this in .Xmodmap on the Ubuntu VM:</p>
<p>keycode 94=numbersign</p>
<p>Now it works in VirtualBox too. Leave gifts of thanks below :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://biotext.org.uk/macbook-keyboard-hacks-for-hash-pound-numbersign/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

