From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20140612072922.GD14836@iota.offblast.org> References: <20140612072922.GD14836@iota.offblast.org> Date: Thu, 12 Jun 2014 08:53:40 +0100 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d043c7e1ef5e6f804fb9edb37 Subject: Re: [9fans] [GSOC] port forwarding Topicbox-Message-UUID: fa65e56a-ead8-11e9-9d60-3106f5b1d025 --f46d043c7e1ef5e6f804fb9edb37 Content-Type: text/plain; charset=UTF-8 > > The qemu instance needs to boot from the auth+fs server. Note that qemu instance loads from an elf file, so it doesn't need to PXE boot, which might make it a little simpler. "Boot from" here means "root from ...". On 12 June 2014 08:29, Nick Owens wrote: > 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 > from 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, > > > > I run into a situation that may need to setup the port forwarding > rule, > > but not quite sure. Hope you guys can provide some suggestions. Thanks in > > advance! > > > > 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. > > > > 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? > > > > > > -- > > Think big; Dream impossible; Make it happen. > --f46d043c7e1ef5e6f804fb9edb37 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The qemu instance needs to boot from th= e auth+fs server.

Note that qemu instance loads from an elf file, so it d= oesn't need to PXE boot, which might make it a little simpler.
"Boot from" here means "root from ...".


On 12 J= une 2014 08:29, Nick Owens <mischief@9.offblast.org> w= rote:
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
from 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<= br> 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,
>
> =C2=A0 =C2=A0 I run into a situation that may need to setup the port f= orwarding rule,
> but not quite sure. Hope you guys can provide some suggestions. Thanks= in
> advance!
>
> Basically, I have a virtual machine (KVM) working as plan9's fs+au= th
> server.
> The auth+fs server listens the port 564 and uses NAT (network address<= br> > translation) to connect to the Internet.
>
> 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<= br> > 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?
>
>
> --
> Think big; Dream impossible; Make it happen.

--f46d043c7e1ef5e6f804fb9edb37--