<?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>Aanjhan RANGANATHAN&#039;s blog &#187; rtems</title>
	<atom:link href="http://www.tuxmaniac.com/blog/tag/rtems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tuxmaniac.com</link>
	<description>Technology, Science, Education, Travel, Photography, Books and life . . .</description>
	<lastBuildDate>Tue, 11 Oct 2011 13:09:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>SSH from Host VM to Guest VM</title>
		<link>http://www.tuxmaniac.com/blog/2010/01/22/ssh-from-host-vm-to-guest-vm/</link>
		<comments>http://www.tuxmaniac.com/blog/2010/01/22/ssh-from-host-vm-to-guest-vm/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 01:14:27 +0000</pubDate>
		<dc:creator>aanjhan</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[rtems]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualisation]]></category>

		<guid isPermaLink="false">http://www.tuxmaniac.com/?p=254</guid>
		<description><![CDATA[I use Fedora for RTEMS development and Ubuntu for my regular academic, leisure tasks. Fedora 12 is a Qemu image which I run using the linux kvm module. It never struck me until recently to just ssh into the guest machine (Fedora 12) from the host (Ubuntu 9.10) and do my RTEMS development work. I [...]]]></description>
			<content:encoded><![CDATA[<p>I use Fedora for <a href="http://www.rtems.com">RTEMS</a> development and Ubuntu for my regular academic, leisure tasks. Fedora 12 is a Qemu image which I run using the linux kvm module. It never struck me until recently to just ssh into the guest machine (Fedora 12) from the host (Ubuntu 9.10) and do my RTEMS development work. I had always started the VM and worked inside it. This made my other applications on my host (Ubuntu 9.10) crawl. By default, both <a href="http://www.linux-kvm.org/page/Main_Page">KVM</a> as well as <a href="http://www.virtualbox.org/">Virtual Box</a> have guest to host communication enabled. On the contrary, the host system cannot communicate with your guests. This can be done by making the guest (your Virtual Machines) to listen to one of the host system&#8217;s ports.</p>
<p>In KVM this is achieved by adding the &#8220;redir&#8221; argument to the command while starting the virtual machine;</p>
<blockquote><p>kvm -hda fedora.img -hdb swap.img -boot c -m &lt;memory allocation in megabytes&gt; -redir tcp:[host-port]::[guest-port]</p></blockquote>
<p>Here we would like to make the guest port 22 (default ssh port) listen on some host port, say 2222.</p>
<blockquote><p>kvm -hda fedora.img -hdb swap.img -boot c -m 384 -redir tcp:2222::22</p></blockquote>
<p>If you are using Virtual Box then follow <a href="http://mydebian.blogdns.org/?p=148">this tutorial</a>.</p>
<p>Now your guest machine can be accessed via ssh from your host system as you would do for any remote server. E.g.,</p>
<blockquote><p>ssh -l rtems -p 2222 localhost</p></blockquote>
<p>In case you need X forwarding, use the -X flag or the -XC flag for X forwarding with compression enabled.</p>
<p>Emacs with tramp mode on my (host) Ubuntu machine is all I now need. A perfect Fedora 12 &#8220;remote&#8221; development server is setup. I can now do away with all the jazz of GNOME/KDE on the virtual image <img src='/admin/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxmaniac.com/blog/2010/01/22/ssh-from-host-vm-to-guest-vm/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

