From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 12 Jun 2014 00:29:22 -0700 From: Nick Owens To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20140612072922.GD14836@iota.offblast.org> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xA/XKXTdy9G3iaIz" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Subject: Re: [9fans] [GSOC] port forwarding Topicbox-Message-UUID: fa624392-ead8-11e9-9d60-3106f5b1d025 --xA/XKXTdy9G3iaIz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable yan, you need to set up some kind of bridge. there's a few options. in my setup, i use libvirt. with libvirt, i configured one vm with two NICs, one for the 'internet' and one for a private network between my cpu/auth/fs and a pxe booted vm for testing. i put ether0 on /net (private lan) and ether1 on /net.alt. in this way, i can pxe boot a vm =66rom the first one, and it has internet access by importing /net.alt. in this way, i can change code, recompile on vm 1, and then boot vm 2 over pxe to test, so i don't lose any state in vm 1 through reboots or crashes. http://www.linux-kvm.org/page/Networking describes various ways to configure networking in kvm. libvirt removes some of the manual work here required for configuring the bridges and interfaces of the vms. it's not very coherent but http://9.offblast.org/9front/guide/PXE_boot talks a little bit about my setup, except in the doc i say that i used /net for the NAT side and /net.alt for the private side. now i use the opposite. good luck. On Thu, Jun 12, 2014 at 12:52:33AM -0400, yan cui wrote: > Hi all, >=20 > I run into a situation that may need to setup the port forwarding rul= e, > but not quite sure. Hope you guys can provide some suggestions. Thanks in > advance! >=20 > Basically, I have a virtual machine (KVM) working as plan9's fs+auth > server. > The auth+fs server listens the port 564 and uses NAT (network address > translation) to connect to the Internet. >=20 > The virtual machine runs on a Linux box. On the same Linux machine, > I use qemu to execute an enhanced plan9 cpu server (with new features > included). The qemu instance needs to boot from the auth+fs server. > My question is, to make the boot successful, do I need to set any port > forwarding rules? If so, how to do that? >=20 >=20 > --=20 > Think big; Dream impossible; Make it happen. --xA/XKXTdy9G3iaIz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTmVbRAAoJEAlFY6k1Rs3183sQAKfkql2ZRRXluOPOrgwzEnVL pFgDBNmvnIyuM7ScmdLMydSgRhNIv8FKl+u4qJwnVF0wJ8S3m+DWR62H87vJ3SSf JPkaGfmywCTVMkL5jzVIKkYpBreUiqBZA9y8OiLzHWcc4xKz56XUYQgWVkWzscBy oq/gGykStBM+3m5bQykzEqVkEZM81Io/4vXjxCBhPgiXU76ZtCZOcTtr4YvEto3G r44F/WKdKnIg0yVYi/pJ9qGqW9cjHgwYcNCbYzJ29r7deMLhkDmx8lr6Xxi0xeTS YSAu2NsR7XhAJB6VcWJXUm4K4CtBhaZzm/WpY9khBqt3C/S6A3a2xVnZC1x9BaMt Gb4SARGNIeV7kx8AJCMd+W57gMaQm+pSOhQ1fLIquv424d4CgkZMW91TnbQ1vnGt 3Ntq+dLelUEu5FC5oooZXXOnZslfpRtgfiYxctr/TS2Bc8U5dSFl59f4QCkS2DKY n+6MmLMagu3wDDm9UzwAXq7SUJhqIM6MVYj9jQSXaSnWyAQMghopWyWhokDgB+SQ x1Du1k4NCQgu8kHHaefetgJ66VxHdchWwnLfU4UjvPqVmwWmPbIk40hQ1v4epuaj a0XufPL2rgzPBmQFGc0Yu0J1v0K0DiXQ15iSMG1u/8gAZXAIyF4d48r4Mp04JaFb kVpXxpub8XfcHZnWY0tA =ZZdi -----END PGP SIGNATURE----- --xA/XKXTdy9G3iaIz--