<?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>BenV&#039;s notes &#187; networking</title>
	<atom:link href="http://notes.benv.junerules.com/tag/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.benv.junerules.com</link>
	<description>Rants and notes</description>
	<lastBuildDate>Sun, 29 Aug 2010 14:36:05 +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>New server, day 2. DomU and networking.</title>
		<link>http://notes.benv.junerules.com/all/software/new-server-day-2-domu-and-networking/</link>
		<comments>http://notes.benv.junerules.com/all/software/new-server-day-2-domu-and-networking/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 14:54:01 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[domU]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xm]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=293</guid>
		<description><![CDATA[Another day, another time for fun! Since we got Xen up and running yesterday, it&#8217;s now time for actually having some fun with it. The goals are: Getting xend started automagically when booting without destroying my network connection Getting a domU up and running with a network connection Getting an internal network between the domUs [...]]]></description>
			<content:encoded><![CDATA[<p>Another day, another time for fun!</p>
<p>Since we got Xen up and running yesterday, it&#8217;s now time for actually having some fun with it.<br />
The goals are:</p>
<ol>
<li>Getting xend started automagically when booting without destroying my network connection</li>
<li>Getting a domU up and running with a network connection</li>
<li>Getting an internal network between the domUs and dom0, shielded from the big bad internet.</li>
</ol>
<p><span id="more-293"></span></p>
<p>First things first, yesterday we got xen installed and all, but that&#8217;s about as far as we got before the bed was required. Xend almost got it right when it put a startup script in <span style="color:#FF00FF">/etc/rc.d/init.d</span> called &#8216;xend&#8217;, but alas, slackware will ignore that file. Personally I simply add the thing to <span style="color:#00FFFF">/etc/rc.d/rc.local</span>:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Starting xend...&quot;</span><br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>xend start</div></div>
<p>This fixes issue #1, but only the first part.</p>
<p>Before you reboot you might want to alter some xend settings. The file to molest for this is <span style="color:#FFFF00">/etc/xend/xend-config.sxp</span>. Mine looks a bit like this:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>xenbro:~<span style="color: #666666; font-style: italic;"># grep -ve '#' -e '^$' /etc/xen/xend-config.sxp</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>logfile <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>xend.log<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>loglevel DEBUG<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>xen-api-server <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>unix<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>xend-unix-xmlrpc-server <span style="color: #c20cb9; font-weight: bold;">yes</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>xend-relocation-server <span style="color: #c20cb9; font-weight: bold;">yes</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>xend-unix-path <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>xend<span style="color: #000000; font-weight: bold;">/</span>xend-socket<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>xend-address localhost<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>xend-relocation-hosts-allow <span style="color: #ff0000;">'^localhost$ ^localhost\\.localdomain$'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>network-script <span style="color: #ff0000;">'bridge-wrapper-benv netdev=eth0 bridge=xenbr0'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>vif-script vif-bridge<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>dom0-min-mem <span style="color: #000000;">196</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>enable-dom0-ballooning <span style="color: #c20cb9; font-weight: bold;">yes</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>dom0-cpus <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>vncpasswd <span style="color: #ff0000;">''</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<p>Almost everything is set to the default value. However, you will want to pay attention to the <span style="color:#FFFF00">network-script</span> part at the very least. As you can see I changed this to a little wrapper script.<br />
I won&#8217;t go into detail about all the possible Xen networking stuff, see the mailing list and the Xen docs for that, but what we want is the external network bridged to all domU&#8217;s, so they can have their own network space there and their external IP address and whatever they want to do without having to mess around in the dom0. To get this working you could stick to the default <code class="codecolorer text vibrant"><span class="text">(network-script network-bridge)</span></code>. Back in the Xen 3.0.3 days this molested my default gateway because their bridge script sucked (it failed to parse some stuff if I remember correctly), but when I tested it today it simply worked.</p>
<p>We want to have an internal network though, so we have to create our own bridge wrapper script.The only thing this script wrapper does is<br />
1. call the network bridge script as the default would do.<br />
2. create a second xen bridge.<br />
Here we go:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>network-bridge <span style="color: #ff0000;">&quot;$@&quot;</span><br />
<br />
<span style="color: #007800;">bridge</span>=xenbr1<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<br />
<span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> Creating internal bridge <span style="color: #800000;">${bridge}</span>....<br />
&nbsp; &nbsp;brctl addbr <span style="color: #800000;">${bridge}</span><br />
&nbsp; &nbsp;brctl stp <span style="color: #800000;">${bridge}</span> off<br />
&nbsp; &nbsp;brctl setfd <span style="color: #800000;">${bridge}</span> <span style="color: #000000;">0</span><br />
&nbsp; &nbsp;ip <span style="color: #c20cb9; font-weight: bold;">link</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #800000;">${bridge}</span> up &nbsp;<br />
<br />
&nbsp; &nbsp;<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #800000;">${bridge}</span> up &nbsp;10.0.0.1 netmask 255.255.255.0<br />
<span style="color: #000000; font-weight: bold;">fi</span></div></div>
<p>As you can see I also add an internal IP address to the bridge. You can make this bridge setup script as complex or as neat as you want, but I can&#8217;t be bothered to spend more time on it. It works for me &#8482; <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now that all that is in place, let&#8217;s try out the creation of a domU. For testing purposes I steal my images from what used to be jailtime.org, these days it&#8217;s called <a href="http://stacklet.com/">Stacklet</a>. Too bad they don&#8217;t have a 64 bit slackware domU yet, but I guess I&#8217;ll create that myself a little later. Also, to keep stuff in a place where I can track it, I usually create a /xen directory where I store my host configurations and images.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>xenbro:~<span style="color: #666666; font-style: italic;"># mkdir -p &nbsp;/xen/hosts/slackware12.2</span><br />
root<span style="color: #000000; font-weight: bold;">@</span>xenbro:~<span style="color: #666666; font-style: italic;"># cd /xen/hosts/slackware12.2</span><br />
root<span style="color: #000000; font-weight: bold;">@</span>xenbro:<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>hosts<span style="color: #000000; font-weight: bold;">/</span>slackware12.2<span style="color: #666666; font-style: italic;"># wget http://stacklet.com/sites/default/files/slackware/slackware.12-2.x86.20090509.img.tar.bz2</span><br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span> ... <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
root<span style="color: #000000; font-weight: bold;">@</span>xenbro:<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>hosts<span style="color: #000000; font-weight: bold;">/</span>slackware12.2<span style="color: #666666; font-style: italic;"># tar jxvf slackware.12-2.x86.20090509.img.tar.bz2</span><br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">*</span>kaboom<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
<p>Edit the slackware.12-2.x86.xen3.cfg file and fix the location of the image file and the kernel. I simply used the same kernel that I use to boot my dom0 for now. Now let&#8217;s try it! Try</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">xm create <span style="color: #660033;">-c</span> slackware.12-<span style="color: #000000;">2</span>.x86.xen3.cfg</div></div>
<p>and it should enter the console of the now booting domU. To get out of the console hit <span style="color:#FFFF00">CTRL-[</span>.</p>
<p>Over here I got a bunch of kernel warnings like these:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ------------<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> here <span style="color: #7a0874; font-weight: bold;">&#93;</span>------------ <br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> WARNING: at drivers<span style="color: #000000; font-weight: bold;">/</span>firmware<span style="color: #000000; font-weight: bold;">/</span>dmi_scan.c:<span style="color: #000000;">425</span> dmi_matches+0x81<span style="color: #000000; font-weight: bold;">/</span>0x90<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> dmi check: not initialized yet. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Modules linked <span style="color: #000000; font-weight: bold;">in</span>: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Pid: <span style="color: #000000;">0</span>, <span style="color: #c20cb9; font-weight: bold;">comm</span>: swapper Not tainted 2.6.29.6-BenV <span style="color: #666666; font-style: italic;">#3</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> Call Trace: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff802352aa<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> warn_slowpath+0xea<span style="color: #000000; font-weight: bold;">/</span>0x160<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff8078bfd4<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> printk+0x4e<span style="color: #000000; font-weight: bold;">/</span>0x56 &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff80a9b625<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> phys_pud_init+0x150<span style="color: #000000; font-weight: bold;">/</span>0x42b<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff80a77418<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> reserve_early+0x13<span style="color: #000000; font-weight: bold;">/</span>0x28 &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff80771929<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> init_memory_mapping+0x559<span style="color: #000000; font-weight: bold;">/</span>0xd40<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff8063e671<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> dmi_matches+0x81<span style="color: #000000; font-weight: bold;">/</span>0x90 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff8063e6f0<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> dmi_check_system+0x20<span style="color: #000000; font-weight: bold;">/</span>0x60<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff80a7554a<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> setup_arch+0x2aa<span style="color: #000000; font-weight: bold;">/</span>0xf19 &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff80a6e7ac<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> start_kernel+0x81<span style="color: #000000; font-weight: bold;">/</span>0x483<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">&lt;</span>ffffffff80a6e1bd<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> x86_64_start_kernel+0xa9<span style="color: #000000; font-weight: bold;">/</span>0xbf<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">0.000000</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ---<span style="color: #7a0874; font-weight: bold;">&#91;</span> end trace 4eaa2a86a8e2da22 <span style="color: #7a0874; font-weight: bold;">&#93;</span>---</div></div>
<p>While these are a nuisance in dmesg, they seem to be fairly harmless. Somewhere on the Xen mailing list someone claims that you can disable CONFIG_DMI in the kernel to get rid of these, which I tend to believe but can&#8217;t be bothered. If I&#8217;m going to build a new kernel for my domU, I will take the latest vanilla kernel and add Xen domU support in that. It&#8217;s a mainline kernel option these days, you can see my post about it here: <a href="http://notes.benv.junerules.com/software/xen-and-booting-domu-using-a-vanilla-kernel/">Xen and booting domU using a vanilla kernel</a><br />
Login on the domU using root/password, note that your networking actually works, but you still have to enter an IP for eth1 if you want the internal network.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>darkstar:~<span style="color: #666666; font-style: italic;"># ifconfig eth1 10.0.0.2/24</span><br />
root<span style="color: #000000; font-weight: bold;">@</span>darkstar:~<span style="color: #666666; font-style: italic;"># ping 10.0.0.1</span><br />
PING 10.0.0.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>10.0.0.1<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">56</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">84</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> bytes of data.<br />
<span style="color: #000000;">64</span> bytes from 10.0.0.1: <span style="color: #007800;">icmp_seq</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">ttl</span>=<span style="color: #000000;">64</span> <span style="color: #007800;">time</span>=<span style="color: #000000;">0.770</span> ms<br />
<span style="color: #000000;">64</span> bytes from 10.0.0.1: <span style="color: #007800;">icmp_seq</span>=<span style="color: #000000;">2</span> <span style="color: #007800;">ttl</span>=<span style="color: #000000;">64</span> <span style="color: #007800;">time</span>=<span style="color: #000000;">0.192</span> ms<br />
<span style="color: #000000;">64</span> bytes from 10.0.0.1: <span style="color: #007800;">icmp_seq</span>=<span style="color: #000000;">3</span> <span style="color: #007800;">ttl</span>=<span style="color: #000000;">64</span> <span style="color: #007800;">time</span>=<span style="color: #000000;">0.187</span> ms</div></div>
<p>Woohoo, it works! <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For an overview of the currently running domains you can use</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>xenbro:~<span style="color: #666666; font-style: italic;"># xm list</span><br />
Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ID &nbsp; Mem VCPUs &nbsp; &nbsp; &nbsp;State &nbsp; Time<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Domain-<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">0</span> &nbsp;<span style="color: #000000;">7447</span> &nbsp; &nbsp; <span style="color: #000000;">4</span> &nbsp; &nbsp; r----- &nbsp; &nbsp; <span style="color: #000000;">16.0</span><br />
test1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> &nbsp; <span style="color: #000000;">512</span> &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp; &nbsp; <span style="color: #660033;">-b----</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">5.9</span></div></div>
<p>The <span style="color:#00FFFF">xm</span> command has a ton of useful things, so check out the manpage/help for it.</p>
<p>For my real domU I will be using LVM partitions and install slackware 64 on it, but that&#8217;s fairly trivial to figure out once you&#8217;re this far. So have fun with your Xen install ^^</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/new-server-day-2-domu-and-networking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
