<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: VirtualBox host to guest networking</title>
	<atom:link href="http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/</link>
	<description>Callum on life</description>
	<lastBuildDate>Tue, 07 Feb 2012 21:09:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alan Porter</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-74700</link>
		<dc:creator>Alan Porter</dc:creator>
		<pubDate>Wed, 20 Jul 2011 14:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-74700</guid>
		<description>Shorewall allows me to NAT through whichever connection is active.  My /etc/shorewall/masq file looks like this:
&lt;code&gt;
eth0,wlan0  172.20.20.0/24
&lt;/code&gt;

If I were doing the same thing using an iptables rule, I would simply do this:
&lt;code&gt;
iptables -t nat -I POSTROUTING -s 172.20.20.0/24 -j MASQUERADE
&lt;/code&gt;

You do not have to specify which interface you&#039;re masquerading (NAT-ing) to.  It&#039;ll figure that out based on the destination and the routing tables.

Alan</description>
		<content:encoded><![CDATA[<p>Shorewall allows me to NAT through whichever connection is active.  My /etc/shorewall/masq file looks like this:<br />
<code><br />
eth0,wlan0  172.20.20.0/24<br />
</code></p>
<p>If I were doing the same thing using an iptables rule, I would simply do this:<br />
<code><br />
iptables -t nat -I POSTROUTING -s 172.20.20.0/24 -j MASQUERADE<br />
</code></p>
<p>You do not have to specify which interface you&#8217;re masquerading (NAT-ing) to.  It&#8217;ll figure that out based on the destination and the routing tables.</p>
<p>Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-74697</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Wed, 20 Jul 2011 14:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-74697</guid>
		<description>Ok, now I understand. Thanks.

I suppose that you need to manually change the NAT configuration of vnet0 according to which interface is up, is that correct? Or does the NAT routing automatically switch to whichever is the &quot;live&quot; outgoing network? If it does, I suppose that&#039;s a simpler solution. My setup does allow me to disconnect my guest machine from the internet while still keeping it available from my host. But that&#039;s not something I ever remember doing...</description>
		<content:encoded><![CDATA[<p>Ok, now I understand. Thanks.</p>
<p>I suppose that you need to manually change the NAT configuration of vnet0 according to which interface is up, is that correct? Or does the NAT routing automatically switch to whichever is the &#8220;live&#8221; outgoing network? If it does, I suppose that&#8217;s a simpler solution. My setup does allow me to disconnect my guest machine from the internet while still keeping it available from my host. But that&#8217;s not something I ever remember doing&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Porter</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-74694</link>
		<dc:creator>Alan Porter</dc:creator>
		<pubDate>Wed, 20 Jul 2011 14:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-74694</guid>
		<description>Actually, no.  I am using a single bridged connection from virtualbox to my &#039;vnet0&#039;.  I do not use virtualbox&#039;s NAT at all.  Then I use dnsmasq to do DHCP and DNS and I use shorewall to do NAT to my hosts eth0 or wlan0 (whichever one happens to be in use at the time).

My primary motivations were:

(1) I could start my VM&#039;s whether my host&#039;s eth0 or wlan0 were up or down.  And I could move my laptop, unplug eth0, start using wlan0, and the VM&#039;s would be unaffected.  I would never need to change their bridge connection just because the host had changed the  way it connected to the world.

(2) I could use dnsmasq to keep track of what winxp was doing, and I could also insert my own fake DNS entries, like &quot;doubleclick.net = 127.0.0.1&quot;, etc.

(3) Networking is cool.

A note about my example interfaces file above... the qlen line is not needed... that was an experiment.  And you may have to get rid of the commented-out &quot;bridge_ports none&quot; line.

Alan</description>
		<content:encoded><![CDATA[<p>Actually, no.  I am using a single bridged connection from virtualbox to my &#8216;vnet0&#8242;.  I do not use virtualbox&#8217;s NAT at all.  Then I use dnsmasq to do DHCP and DNS and I use shorewall to do NAT to my hosts eth0 or wlan0 (whichever one happens to be in use at the time).</p>
<p>My primary motivations were:</p>
<p>(1) I could start my VM&#8217;s whether my host&#8217;s eth0 or wlan0 were up or down.  And I could move my laptop, unplug eth0, start using wlan0, and the VM&#8217;s would be unaffected.  I would never need to change their bridge connection just because the host had changed the  way it connected to the world.</p>
<p>(2) I could use dnsmasq to keep track of what winxp was doing, and I could also insert my own fake DNS entries, like &#8220;doubleclick.net = 127.0.0.1&#8243;, etc.</p>
<p>(3) Networking is cool.</p>
<p>A note about my example interfaces file above&#8230; the qlen line is not needed&#8230; that was an experiment.  And you may have to get rid of the commented-out &#8220;bridge_ports none&#8221; line.</p>
<p>Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-74689</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Wed, 20 Jul 2011 13:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-74689</guid>
		<description>Thanks for sharing. So you&#039;re able to use the VirtualBox NAT connection to talk from the host to the guest, is that correct? It&#039;s a long time since I set all this up, but as I recall, I set it up because when my external networks were down (eth0 wlan0) I was unable to reach my guest machine. I was using the guest machine as a dev web server, so working without internet became impractical. Maybe VirtualBox has changed slightly and now I can use a NAT connection instead, or maybe I missed something originally.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing. So you&#8217;re able to use the VirtualBox NAT connection to talk from the host to the guest, is that correct? It&#8217;s a long time since I set all this up, but as I recall, I set it up because when my external networks were down (eth0 wlan0) I was unable to reach my guest machine. I was using the guest machine as a dev web server, so working without internet became impractical. Maybe VirtualBox has changed slightly and now I can use a NAT connection instead, or maybe I missed something originally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Porter</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-74619</link>
		<dc:creator>Alan Porter</dc:creator>
		<pubDate>Wed, 20 Jul 2011 01:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-74619</guid>
		<description>I still don&#039;t understand why I did not need the tap interface on the Ubuntu boxes, but I do need it on the Mint one.  But I am very happy that your solution worked for me.

I was able to automate the creation of the interfaces.  This is my /etc/network/interfaces file:

&lt;code&gt;
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# eth0 is controlled by NetworkManager
#auto eth0
#iface eth0 inet dhcp

# VirtualBox TAP device bridge
auto tap0
iface tap0 inet manual
  up ifconfig $IFACE 0.0.0.0 up
  down ifconfig $IFACE down
  tunctl_user alan

# VirtualBox NAT bridge
auto vnet0
iface vnet0 inet static
   address 172.20.20.1
   netmask 255.255.255.0
   #bridge_ports none
   bridge_ports tap0
   bridge_maxwait 0
   bridge_fd 1
   bridge_stp off 1
   up ip link set vnet0 qlen 1000
   up iptables -t nat -I POSTROUTING -s 172.20.20.0/24 -j MASQUERADE
   down iptables -t nat -D POSTROUTING -s 172.20.20.0/24 -j MASQUERADE
&lt;/code&gt;

I hope this helps others.

Alan</description>
		<content:encoded><![CDATA[<p>I still don&#8217;t understand why I did not need the tap interface on the Ubuntu boxes, but I do need it on the Mint one.  But I am very happy that your solution worked for me.</p>
<p>I was able to automate the creation of the interfaces.  This is my /etc/network/interfaces file:</p>
<p><code><br />
# interfaces(5) file used by ifup(8) and ifdown(8)<br />
auto lo<br />
iface lo inet loopback</p>
<p># eth0 is controlled by NetworkManager<br />
#auto eth0<br />
#iface eth0 inet dhcp</p>
<p># VirtualBox TAP device bridge<br />
auto tap0<br />
iface tap0 inet manual<br />
  up ifconfig $IFACE 0.0.0.0 up<br />
  down ifconfig $IFACE down<br />
  tunctl_user alan</p>
<p># VirtualBox NAT bridge<br />
auto vnet0<br />
iface vnet0 inet static<br />
   address 172.20.20.1<br />
   netmask 255.255.255.0<br />
   #bridge_ports none<br />
   bridge_ports tap0<br />
   bridge_maxwait 0<br />
   bridge_fd 1<br />
   bridge_stp off 1<br />
   up ip link set vnet0 qlen 1000<br />
   up iptables -t nat -I POSTROUTING -s 172.20.20.0/24 -j MASQUERADE<br />
   down iptables -t nat -D POSTROUTING -s 172.20.20.0/24 -j MASQUERADE<br />
</code></p>
<p>I hope this helps others.</p>
<p>Alan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Porter</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-74600</link>
		<dc:creator>Alan Porter</dc:creator>
		<pubDate>Tue, 19 Jul 2011 23:28:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-74600</guid>
		<description>I have set up two machines using Ubuntu 10.10 like this, except I left out the tap interface entirely.  Instead, I told the host to bring up a bridged network called &#039;vnet0&#039; (instead of br0), and I told virtualbox to bridge directly to vnet0.  This works nicely whether my host&#039;s &quot;real&quot; network connections (eth0 or wlan0) are up or not.  I usually NAT the vnet0 traffic out through eth0 or wlan0 (using 1 line in a shorewall &#039;masq&#039; file).

I am curious why you needed a tap interface on your bridge.  What purpose does it serve?

The plot thickens.  I am now trying to duplicate this setup on a Linux Mint Debian Edition box, and something is blocking some of my packets.  For example, my winxp guest sends a DHCPDISCOVER to the vnet0 interface to ask for an IP address.  My DHCP (running on the host) server sends a DHCPOFFER back onto vnet0, but the winxp guest never sees it.  I am still debugging this.  If you have ideas, I&#039;d love to hear them.

Thanks for sharing your experience... I will experiment with the tun setup that you describe, and see if it helps.

Alan Porter</description>
		<content:encoded><![CDATA[<p>I have set up two machines using Ubuntu 10.10 like this, except I left out the tap interface entirely.  Instead, I told the host to bring up a bridged network called &#8216;vnet0&#8242; (instead of br0), and I told virtualbox to bridge directly to vnet0.  This works nicely whether my host&#8217;s &#8220;real&#8221; network connections (eth0 or wlan0) are up or not.  I usually NAT the vnet0 traffic out through eth0 or wlan0 (using 1 line in a shorewall &#8216;masq&#8217; file).</p>
<p>I am curious why you needed a tap interface on your bridge.  What purpose does it serve?</p>
<p>The plot thickens.  I am now trying to duplicate this setup on a Linux Mint Debian Edition box, and something is blocking some of my packets.  For example, my winxp guest sends a DHCPDISCOVER to the vnet0 interface to ask for an IP address.  My DHCP (running on the host) server sends a DHCPOFFER back onto vnet0, but the winxp guest never sees it.  I am still debugging this.  If you have ideas, I&#8217;d love to hear them.</p>
<p>Thanks for sharing your experience&#8230; I will experiment with the tun setup that you describe, and see if it helps.</p>
<p>Alan Porter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pintu</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-69715</link>
		<dc:creator>pintu</dc:creator>
		<pubDate>Sat, 28 May 2011 09:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-69715</guid>
		<description>Thanks for a good article

Now i am able to configure my host to guest networking..&amp; able to access guest os from host .</description>
		<content:encoded><![CDATA[<p>Thanks for a good article</p>
<p>Now i am able to configure my host to guest networking..&amp; able to access guest os from host .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-60395</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Thu, 03 Mar 2011 12:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-60395</guid>
		<description>I&#039;ve never figured out how to automate the br0 and tap0 interface setup on the host. I think a simple bash script run as root on bootup would do it, but I haven&#039;t looked into it. I&#039;m not sure what virbr0 is, don&#039;t think I&#039;ve ever seen it on my setup.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never figured out how to automate the br0 and tap0 interface setup on the host. I think a simple bash script run as root on bootup would do it, but I haven&#8217;t looked into it. I&#8217;m not sure what virbr0 is, don&#8217;t think I&#8217;ve ever seen it on my setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Bradford</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-60274</link>
		<dc:creator>Tom Bradford</dc:creator>
		<pubDate>Wed, 02 Mar 2011 01:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-60274</guid>
		<description>Hmmm.  Only part sorted, I&#039;m afraid.  The next time I booted the host all the interfaces created on the host in accordance with your instructions had vanished and I had to set them up manually again, at which the guest booted up and the hostonly network established itself.

How do I make the br0 and tap0 interfaces persistent on a Ubuntu Server 10.04 host?

And, as an aside, what is the virbr0 interface Ubuntu  creates by default for, if not for this?</description>
		<content:encoded><![CDATA[<p>Hmmm.  Only part sorted, I&#8217;m afraid.  The next time I booted the host all the interfaces created on the host in accordance with your instructions had vanished and I had to set them up manually again, at which the guest booted up and the hostonly network established itself.</p>
<p>How do I make the br0 and tap0 interfaces persistent on a Ubuntu Server 10.04 host?</p>
<p>And, as an aside, what is the virbr0 interface Ubuntu  creates by default for, if not for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-60158</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Tue, 01 Mar 2011 00:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-60158</guid>
		<description>Glad the article was helpful and you got your problem sorted. :-)</description>
		<content:encoded><![CDATA[<p>Glad the article was helpful and you got your problem sorted. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Bradford</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-60154</link>
		<dc:creator>Tom Bradford</dc:creator>
		<pubDate>Mon, 28 Feb 2011 22:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-60154</guid>
		<description>Glad Google led me to this when I&#039;d been beating my head against the wall after several days of trying to set up a hostonly network between a Ubuntu 10.04 server host and a Linux-based routerOS base.

A major part of the problem for me was that the VirtualBox manual clearly says:

&quot;when host-only networking is used, VirtualBox creates a new software interface on
the host which then appears next to your existing network interfaces.&quot;

Equally clearly VirtualBox doesn&#039;t create the interface on the host - the user has to do it, as per the above.  Having mistakenly assumed that VB had created the virbr0 interface that appears in Ubuntu&#039;s ifconfig I spent hours  trying to connect to it!

Another little wrinkle that tripped me up - when creating the hostonlyadapter it has to carry the same number as the nic it is being associated with, ie nic3  hostonlyadapter3 even if it is the first or only hostonlyadapter.</description>
		<content:encoded><![CDATA[<p>Glad Google led me to this when I&#8217;d been beating my head against the wall after several days of trying to set up a hostonly network between a Ubuntu 10.04 server host and a Linux-based routerOS base.</p>
<p>A major part of the problem for me was that the VirtualBox manual clearly says:</p>
<p>&#8220;when host-only networking is used, VirtualBox creates a new software interface on<br />
the host which then appears next to your existing network interfaces.&#8221;</p>
<p>Equally clearly VirtualBox doesn&#8217;t create the interface on the host &#8211; the user has to do it, as per the above.  Having mistakenly assumed that VB had created the virbr0 interface that appears in Ubuntu&#8217;s ifconfig I spent hours  trying to connect to it!</p>
<p>Another little wrinkle that tripped me up &#8211; when creating the hostonlyadapter it has to carry the same number as the nic it is being associated with, ie nic3  hostonlyadapter3 even if it is the first or only hostonlyadapter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-57736</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Tue, 01 Feb 2011 14:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-57736</guid>
		<description>No idea, you might find a new network adapter pops up in Windows XP and you can simply set the network address for it. Don&#039;t know.</description>
		<content:encoded><![CDATA[<p>No idea, you might find a new network adapter pops up in Windows XP and you can simply set the network address for it. Don&#8217;t know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adrian</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-57710</link>
		<dc:creator>adrian</dc:creator>
		<pubDate>Tue, 01 Feb 2011 06:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-57710</guid>
		<description>How do you do this with Ubuntu host and WinXP guest?</description>
		<content:encoded><![CDATA[<p>How do you do this with Ubuntu host and WinXP guest?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Week in Review &#8211; 2010-15</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-51499</link>
		<dc:creator>Week in Review &#8211; 2010-15</dc:creator>
		<pubDate>Sun, 07 Nov 2010 02:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-51499</guid>
		<description>[...] the guest &#8211; not too useful if your guest is a server. Here are some useful references:  a) http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/ b) http://paparadit.blogspot.com/2007/08/virtualbox-windows-xp-guest-in-windows.html [...]</description>
		<content:encoded><![CDATA[<p>[...] the guest &#8211; not too useful if your guest is a server. Here are some useful references:  a) http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/ b) http://paparadit.blogspot.com/2007/08/virtualbox-windows-xp-guest-in-windows.html [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-48603</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Tue, 10 Aug 2010 04:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-48603</guid>
		<description>That approach only works if you have a live network connection on the host. I have a development server on my laptop so I like to be able to work whether or not I have a wifi or ethernet connection. Also, as I switch connections, I&#039;d have to change the bridged settings depending on which network card I&#039;m using. It is a simpler option when the host has a continuous network connection.</description>
		<content:encoded><![CDATA[<p>That approach only works if you have a live network connection on the host. I have a development server on my laptop so I like to be able to work whether or not I have a wifi or ethernet connection. Also, as I switch connections, I&#8217;d have to change the bridged settings depending on which network card I&#8217;m using. It is a simpler option when the host has a continuous network connection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Slaughter</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-48601</link>
		<dc:creator>Harry Slaughter</dc:creator>
		<pubDate>Tue, 10 Aug 2010 04:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-48601</guid>
		<description>You can also simply use the &quot;Bridged Adapter&quot; instead of or in addition to the default NAT adapter. 

The guest should then be able to fetch an IP from the hosts network and you can talk to the guest using that IP. 

Worked easey peasey for me (Winblows host, Ubuntu10 guest)</description>
		<content:encoded><![CDATA[<p>You can also simply use the &#8220;Bridged Adapter&#8221; instead of or in addition to the default NAT adapter. </p>
<p>The guest should then be able to fetch an IP from the hosts network and you can talk to the guest using that IP. </p>
<p>Worked easey peasey for me (Winblows host, Ubuntu10 guest)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-48521</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Fri, 06 Aug 2010 00:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-48521</guid>
		<description>I&#039;m not sure which commands you&#039;re asking about. The first part is on the host, the second the on the guest. The last two code blocks are on the guest, everything else is on the host.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure which commands you&#8217;re asking about. The first part is on the host, the second the on the guest. The last two code blocks are on the guest, everything else is on the host.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-48518</link>
		<dc:creator>Samuel</dc:creator>
		<pubDate>Thu, 05 Aug 2010 22:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-48518</guid>
		<description>Callum

Thanks for your contribution. I have a slight problem which is also replicated on the virtualbox documentation; on which machine do I type the above commands- ie the guest or the host? Please help.</description>
		<content:encoded><![CDATA[<p>Callum</p>
<p>Thanks for your contribution. I have a slight problem which is also replicated on the virtualbox documentation; on which machine do I type the above commands- ie the guest or the host? Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-48383</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Sat, 31 Jul 2010 18:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-48383</guid>
		<description>Apologies for the delayed reply, your message slipped into oblivion in my inbox. I recently set up Virtualbox on 10.04 and it works ok for me. As I read your error message, it seems like your tap0 interface doesn&#039;t exist. Check the virtual machine settings, maybe you have network adapters mapped to the machine which no longer exist?</description>
		<content:encoded><![CDATA[<p>Apologies for the delayed reply, your message slipped into oblivion in my inbox. I recently set up Virtualbox on 10.04 and it works ok for me. As I read your error message, it seems like your tap0 interface doesn&#8217;t exist. Check the virtual machine settings, maybe you have network adapters mapped to the machine which no longer exist?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-46977</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Mon, 07 Jun 2010 16:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-46977</guid>
		<description>I have not gotten it working already.  I am still using the exact steps from your guide, but I put them into scripts that I execute prior to launching the VirtualBox software.  It works perfectly, but I&#039;ll try what you posted here, when I get home, and let you know how I fare with it.

Thanks for the follow-up</description>
		<content:encoded><![CDATA[<p>I have not gotten it working already.  I am still using the exact steps from your guide, but I put them into scripts that I execute prior to launching the VirtualBox software.  It works perfectly, but I&#8217;ll try what you posted here, when I get home, and let you know how I fare with it.</p>
<p>Thanks for the follow-up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-46924</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Sat, 05 Jun 2010 03:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-46924</guid>
		<description>I finally got virtualbox up and running again, but I&#039;m still running 8.04 as the guest. The changes are persistent and last across sessions. Here&#039;s what I have in /etc/network/interfaces:
&lt;code&gt;# Host only network
auto eth1
iface eth1 inet static
address 10.9.0.2
netmask 255.255.255.0
network 10.9.0.0
broadcast 10.9.0.255&lt;/code&gt;

Do have the auto eth1 part? I realise I missed that from my howto. Or did you find a solution already?</description>
		<content:encoded><![CDATA[<p>I finally got virtualbox up and running again, but I&#8217;m still running 8.04 as the guest. The changes are persistent and last across sessions. Here&#8217;s what I have in /etc/network/interfaces:<br />
<code># Host only network<br />
auto eth1<br />
iface eth1 inet static<br />
address 10.9.0.2<br />
netmask 255.255.255.0<br />
network 10.9.0.0<br />
broadcast 10.9.0.255</code></p>
<p>Do have the auto eth1 part? I realise I missed that from my howto. Or did you find a solution already?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomas Jancik</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-46481</link>
		<dc:creator>Tomas Jancik</dc:creator>
		<pubDate>Tue, 18 May 2010 21:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-46481</guid>
		<description>I recently updated to Ubutnu 10.04 becausae of it&#039;s LTS, but since that time VBox does not start when I setup the bridge network. I have to disable eth1 to boot virtual system...

I took a screenshot of the error message
http://files.tomasjancik.net/Screenshot.png 
I tried to modprobe the modules, but still it didnt work...

can you help?</description>
		<content:encoded><![CDATA[<p>I recently updated to Ubutnu 10.04 becausae of it&#8217;s LTS, but since that time VBox does not start when I setup the bridge network. I have to disable eth1 to boot virtual system&#8230;</p>
<p>I took a screenshot of the error message<br />
<a href="http://files.tomasjancik.net/Screenshot.png" rel="nofollow">http://files.tomasjancik.net/Screenshot.png</a><br />
I tried to modprobe the modules, but still it didnt work&#8230;</p>
<p>can you help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-45953</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Tue, 27 Apr 2010 23:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-45953</guid>
		<description>It&#039;s been a while since I set this up myself. I honestly can&#039;t remember if or how I automated the brctl and tunctl stuff. I probably stuck it in a script somewhere, I&#039;m not sure. You could look into running scripts automatically on startup and then put it in a script, I think that&#039;ll work, but I&#039;m not sure. Best of luck with it. Feel free to post back here if you find a way to get it working.</description>
		<content:encoded><![CDATA[<p>It&#8217;s been a while since I set this up myself. I honestly can&#8217;t remember if or how I automated the brctl and tunctl stuff. I probably stuck it in a script somewhere, I&#8217;m not sure. You could look into running scripts automatically on startup and then put it in a script, I think that&#8217;ll work, but I&#8217;m not sure. Best of luck with it. Feel free to post back here if you find a way to get it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-45924</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 27 Apr 2010 20:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-45924</guid>
		<description>Thanks Callum!

Your guide was concise and worked perfectly.  You described how to make the changes persistent by defining the interface in the guest&#039;s interfaces file in /etc/network.  I did that and when I rebooted my guest OS, eth1 was not present when I did an ifconfig.  I then did ifconfig eth1 up, but it did not have an ip address defined.  I am running ubuntu server 9.10 as the guest and ubuntu desktop 9.10 as the host.  I verified that my /etc/network/interfaces addition was the same as what you posted, but the changes still do not persist between GUEST restarts.  (I attached eth1 to tap0 like you suggested)

I can create a script to do...
&lt;q cite=&quot;sudo ip link set up dev eth1
sudo ip addr add 10.9.0.2/24 dev eth1&quot;&gt;
... easily enough, but it would be nice to persist it.


Also, is there a need to change any config on the host to make the creation of the bridge and the tap persistent?

Thanks again for the great guide.

Kevin</description>
		<content:encoded><![CDATA[<p>Thanks Callum!</p>
<p>Your guide was concise and worked perfectly.  You described how to make the changes persistent by defining the interface in the guest&#8217;s interfaces file in /etc/network.  I did that and when I rebooted my guest OS, eth1 was not present when I did an ifconfig.  I then did ifconfig eth1 up, but it did not have an ip address defined.  I am running ubuntu server 9.10 as the guest and ubuntu desktop 9.10 as the host.  I verified that my /etc/network/interfaces addition was the same as what you posted, but the changes still do not persist between GUEST restarts.  (I attached eth1 to tap0 like you suggested)</p>
<p>I can create a script to do&#8230;<br />
<q cite="sudo ip link set up dev eth1<br />
sudo ip addr add 10.9.0.2/24 dev eth1"><br />
&#8230; easily enough, but it would be nice to persist it.</p>
<p>Also, is there a need to change any config on the host to make the creation of the bridge and the tap persistent?</p>
<p>Thanks again for the great guide.</p>
<p>Kevin</q></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: New Linux User</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-45922</link>
		<dc:creator>New Linux User</dc:creator>
		<pubDate>Tue, 27 Apr 2010 20:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-45922</guid>
		<description>Amazingly easy instructions, thx a bunch!!!!</description>
		<content:encoded><![CDATA[<p>Amazingly easy instructions, thx a bunch!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomas Jancik</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-45413</link>
		<dc:creator>Tomas Jancik</dc:creator>
		<pubDate>Wed, 14 Apr 2010 15:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-45413</guid>
		<description>exactly what I&#039;m looking for... I&#039;ll try it later... thx very much</description>
		<content:encoded><![CDATA[<p>exactly what I&#8217;m looking for&#8230; I&#8217;ll try it later&#8230; thx very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abidibo</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-43464</link>
		<dc:creator>abidibo</dc:creator>
		<pubDate>Mon, 08 Feb 2010 12:46:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-43464</guid>
		<description>Good Job, thanks</description>
		<content:encoded><![CDATA[<p>Good Job, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-39647</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Wed, 28 Oct 2009 23:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-39647</guid>
		<description>Wonderful news sensei. If you need any Ubuntu or linux related help, my lines are always open for you my friend. :-)</description>
		<content:encoded><![CDATA[<p>Wonderful news sensei. If you need any Ubuntu or linux related help, my lines are always open for you my friend. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pepe</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/comment-page-1/#comment-39632</link>
		<dc:creator>Pepe</dc:creator>
		<pubDate>Wed, 28 Oct 2009 21:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693#comment-39632</guid>
		<description>Hello Sensei... I&#039;m not sure when, but I will try Ubuntu soon. I found OSCAR which is an opensource hospital information solution and runs on Ubuntu.
See you soon in my Linux and opensource adventures</description>
		<content:encoded><![CDATA[<p>Hello Sensei&#8230; I&#8217;m not sure when, but I will try Ubuntu soon. I found OSCAR which is an opensource hospital information solution and runs on Ubuntu.<br />
See you soon in my Linux and opensource adventures</p>
]]></content:encoded>
	</item>
</channel>
</rss>

