From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoann Padioleau To: "9fans@9fans.net" <9fans@9fans.net> Date: Tue, 7 Jan 2014 22:16:02 +0000 Message-ID: Content-Type: multipart/alternative; boundary="_000_AC0326C89A934A72933294C2372CC415fbcom_" MIME-Version: 1.0 Subject: [9fans] qemu and networking Topicbox-Message-UUID: b061cbbe-ead8-11e9-9d60-3106f5b1d025 --_000_AC0326C89A934A72933294C2372CC415fbcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I've installed plan9 on a plan9.raw.img file via qemu and I'm able to boot = on it. How can I transfer files between plan9 and my host (I'm under macos)? I've followed http://plan9.bell-labs.com/wiki/plan9/installing_plan_9_on_qe= mu/index.html and run qemu -hda Plan9.qcow2.img -net nic -net user but from plan9 when I do rc> ip/ping 10.0.2.2 nothing happens. --_000_AC0326C89A934A72933294C2372CC415fbcom_ Content-Type: text/html; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable Hi,

I've installed plan9 on a plan9.raw.img file via qemu and I'm able to = boot on it.
How can I transfer files between plan9 and my host (I'm under macos)?<= /div>
I've followed http://plan9.bell-labs.com/wiki/plan9/i= nstalling_plan_9_on_qemu/index.html 
and run 

qemu -hda Plan9.qcow2.img -ne=
t nic -net user

but from plan9 when I do

 rc> ip/ping 10.0.2.2 nothing happens.


--_000_AC0326C89A934A72933294C2372CC415fbcom_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5e504e0b64ffe1dbf33f2cae44ae3fb5@mveety.com> Date: Tue, 7 Jan 2014 17:22:47 -0500 From: mveety@mveety.com To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b0663604-ead8-11e9-9d60-3106f5b1d025 I've only ever gotten networking working on OS X using the tun/tap driver. It's a bit of a pain in the ass but works quite well. -- Veety From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 7 Jan 2014 17:25:14 -0500 From: plannine@sigint.cs.purdue.edu To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20140107222514.GD23955@sigint.cs.purdue.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b06a4fa0-ead8-11e9-9d60-3106f5b1d025 On Tue, Jan 07, 2014 at 10:16:02PM +0000, Yoann Padioleau wrote: > qemu -hda Plan9.qcow2.img -net nic -net user > > but from plan9 when I do > > rc> ip/ping 10.0.2.2 nothing happens. The user-mode (SLIRP) network stack in QEMU doesn't support ICMP. http://wiki.qemu.org/Documentation/Networking#User_Networking_.28SLIRP.29 From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Tue, 07 Jan 2014 22:16:02 GMT." References: Date: Tue, 7 Jan 2014 14:44:19 -0800 From: Bakul Shah Message-Id: <20140107224419.13C6BB827@mail.bitblocks.com> Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b06f032e-ead8-11e9-9d60-3106f5b1d025 On Tue, 07 Jan 2014 22:16:02 GMT Yoann Padioleau wrote: > I've installed plan9 on a plan9.raw.img file via qemu and I'm able to boot = > on it. > How can I transfer files between plan9 and my host (I'm under macos)? > I've followed http://plan9.bell-labs.com/wiki/plan9/installing_plan_9_on_qe= > mu/index.html > and run > > > qemu -hda Plan9.qcow2.img -net nic -net user > > but from plan9 when I do > > rc> ip/ping 10.0.2.2 nothing happens. You can reuse your qcow image with virtualbox where this is relatively easy to fix. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20140107224419.13C6BB827@mail.bitblocks.com> References: <20140107224419.13C6BB827@mail.bitblocks.com> Date: Wed, 8 Jan 2014 09:11:07 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e013a1f16fb597204ef710878 Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b08006f6-ead8-11e9-9d60-3106f5b1d025 --089e013a1f16fb597204ef710878 Content-Type: text/plain; charset=UTF-8 I use QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard I don't give any networking options at the command line and it works for me. I use 9front but I don't think it matters. term% pci | grep net 0.3.0: net 02.00.00 8086/100e 11 0:febc0000 131072 1:0000c041 64 term% cat '#l0/ether0/ifstats' Good Packets Received: 161 0 Good Packets Transmitted: 94 0 Total Octets Received: 163085 0 Total Octets Transmitted: 9118 0 Total Packets Received: 161 0 Total Packets Transmitted: 94 0 lintr: 0 1 rintr: 96 96 tintr: 0 0 ixcs: 0 0 0 rdtr: 0 Ctrlext: 00000000 eeprom: 5452 1200 5634 0000 FFFF 0000 0000 0000 3000 1000 6403 100E 8086 100E 8086 3040 0008 2000 7E14 0048 1000 00D8 0000 2700 6CC9 3150 0722 040B 0984 0000 C000 0706 1008 0000 0F04 7FFF 4D01 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 0100 4000 121C FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 79AD phy: 9140 794D 0141 0C20 01E1 01E0 FFFFFFFF FFFFFFFF FFFFFFFF 0F00 3C00 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 0B62 AC00 FFFFFFFF FFFFFFFF 0170 0000 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF term% ndb/query sys $sysname ip=10.0.2.15 ipmask=255.255.255.0 ipgw=10.0.2.2 sys=cake dns=10.0.2.3 sys=cake ether=525400123456 term% 2014/1/7 Bakul Shah > On Tue, 07 Jan 2014 22:16:02 GMT Yoann Padioleau wrote: > > I've installed plan9 on a plan9.raw.img file via qemu and I'm able to > boot = > > on it. > > How can I transfer files between plan9 and my host (I'm under macos)? > > I've followed > http://plan9.bell-labs.com/wiki/plan9/installing_plan_9_on_qe= > > mu/index.html > > and run > > > > > > qemu -hda Plan9.qcow2.img -net nic -net user > > > > but from plan9 when I do > > > > rc> ip/ping 10.0.2.2 nothing happens. > > You can reuse your qcow image with virtualbox where this is > relatively easy to fix. > > --089e013a1f16fb597204ef710878 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I use
QEMU emulator version 1.6.0, Copyright (c) 2003-2= 008 Fabrice Bellard
I don't give any networking options at the comma= nd line and it works
for me. I use 9front but I don't think it matte= rs.

term% pci | grep net
0.3.0:=C2=A0=C2=A0=C2=A0 net=C2=A0 02.00.00 808= 6/100e=C2=A0 11 0:febc0000 131072 1:0000c041 64
term% cat '#l0/ether= 0/ifstats'
Good Packets Received: 161 0
Good Packets Transmitted:= 94 0
Total Octets Received: 163085 0
Total Octets Transmitted: 9118 0
Total Packets Received: 161 0
Total = Packets Transmitted: 94 0
lintr: 0 1
rintr: 96 96
tintr: 0 0
ix= cs: 0 0 0
rdtr: 0
Ctrlext: 00000000
eeprom: 5452 1200 5634 0000 FF= FF 0000 0000 0000
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 3000 1000 6403 100E 8086 100E 80= 86 3040
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0008 2000 7E14 0048 1= 000 00D8 0000 2700
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 6CC9 3150 = 0722 040B 0984 0000 C000 0706
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 1008 0000 0F04 7FFF 4D01 FFFF FFFF FFFF
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0100 4000 121C FFFF FFFF FFFF FF= FF FFFF
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 FFFF FFFF FFFF FFFF F= FFF FFFF FFFF 79AD
phy:=C2=A0=C2=A0=C2=A0 9140 794D 0141 0C20 01E1 01E0 = FFFFFFFF FFFFFFFF
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 FFFFFFFF 0F= 00 3C00 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0B62 AC00 FFFFFFFF FFFFFFFF 0170= 0000 FFFFFFFF FFFFFFFF
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 FFFFF= FFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
term%= ndb/query sys $sysname
ip=3D10.0.2.15 ipmask=3D255.255.255.0 ipgw=3D10.= 0.2.2 sys=3Dcake dns=3D10.0.2.3
sys=3Dcake ether=3D525400123456
term%



2014/1/7 Bakul Shah <bakul@bi= tblocks.com>
On Tue, 07 Jan 2014 22:16:02 GMT Yoann Padio= leau <pad@fb.com> wrote:
> I've installed plan9 on a plan9.raw.img file via qemu and I'm = able to boot =3D
> on it.
> How can I transfer files between plan9 and my host (I'm under maco= s)?
> I've followed http://plan9.bell-labs.com= /wiki/plan9/installing_plan_9_on_qe=3D
> mu/index.html
> and run
>
>
> qemu -hda Plan9.qcow2.img -net nic -net user
>
> but from plan9 when I do
>
> =C2=A0rc> ip/ping 10.0.2.2 nothing happens.

You can reuse your qcow image with virtualbox where this is
relatively easy to fix.


--089e013a1f16fb597204ef710878-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <52CEC113.2040909@yahoo.fr> Date: Thu, 9 Jan 2014 16:32:35 +0100 From: Nicolas Bercher User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.0 MIME-Version: 1.0 To: 9fans@9fans.net References: <20140107224419.13C6BB827@mail.bitblocks.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b0fcf6d4-ead8-11e9-9d60-3106f5b1d025 On 08/01/2014 09:11, Bence F=C3=A1bi=C3=A1n wrote: > I use > QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard > I don't give any networking options at the command line and it works > for me. I use 9front but I don't think it matters. I think Yoann asked how to connect to Plan9 from MacOS, right? You have to use tun/tap and maybe drawterm to connect to Plan 9 from MacOS, and then, for example, copy files via /mnt/term/. Nicolas From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <52CEC113.2040909@yahoo.fr> References: <20140107224419.13C6BB827@mail.bitblocks.com> <52CEC113.2040909@yahoo.fr> Date: Thu, 9 Jan 2014 17:10:38 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=90e6ba1efda0ade28d04ef8bd9d9 Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b16c179e-ead8-11e9-9d60-3106f5b1d025 --90e6ba1efda0ade28d04ef8bd9d9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In his mail he was trying to reach the host from the guest. But the other way around he would need tun/tap. That's correct. 2014/1/9 Nicolas Bercher > On 08/01/2014 09:11, Bence F=C3=A1bi=C3=A1n wrote: > >> I use >> QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard >> I don't give any networking options at the command line and it works >> for me. I use 9front but I don't think it matters. >> > > I think Yoann asked how to connect to Plan9 from MacOS, right? > You have to use tun/tap and maybe drawterm to connect to Plan 9 > from MacOS, and then, for example, copy files via /mnt/term/. > > Nicolas > > --90e6ba1efda0ade28d04ef8bd9d9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In his mail he was trying to reach the host from the guest= .
But the other way around he would need tun/tap. That's correct.


2014/1= /9 Nicolas Bercher <nbercher@yahoo.fr>
On 08/01/2014 09:11, Bence= F=C3=A1bi=C3=A1n wrote:
I use
QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard
I don't give any networking options at the command line and it works for me. I use 9front but I don't think it matters.

I think Yoann asked how to connect to Plan9 from MacOS, right?
You have to use tun/tap and maybe drawterm to connect to Plan 9
from MacOS, and then, for example, copy files via /mnt/term/.

Nicolas


--90e6ba1efda0ade28d04ef8bd9d9-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20140107224419.13C6BB827@mail.bitblocks.com> <52CEC113.2040909@yahoo.fr> Date: Thu, 9 Jan 2014 17:12:39 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=90e6ba614a76e403a604ef8be048 Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b17a79e2-ead8-11e9-9d60-3106f5b1d025 --90e6ba614a76e403a604ef8be048 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Oh btw I'm on linux not os x. But didn't think that makes a difference for guest network. 2014/1/9 Bence F=C3=A1bi=C3=A1n > In his mail he was trying to reach the host from the guest. > But the other way around he would need tun/tap. That's correct. > > > 2014/1/9 Nicolas Bercher > >> On 08/01/2014 09:11, Bence F=C3=A1bi=C3=A1n wrote: >> >>> I use >>> QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard >>> I don't give any networking options at the command line and it works >>> for me. I use 9front but I don't think it matters. >>> >> >> I think Yoann asked how to connect to Plan9 from MacOS, right? >> You have to use tun/tap and maybe drawterm to connect to Plan 9 >> from MacOS, and then, for example, copy files via /mnt/term/. >> >> Nicolas >> >> > --90e6ba614a76e403a604ef8be048 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Oh btw I'm on linux not os x. But didn't think tha= t makes a difference for guest network.


2014/1/9 Bence F=C3=A1bi=C3=A1n <begnoc= @gmail.com>
In his mail he was trying t= o reach the host from the guest.
But the other way around he would need = tun/tap. That's correct.

2014/1/9 Nicolas Bercher <nbercher@yahoo.= fr>
On 08/01/2014 09:11, Bence F=C3=A1bi=C3= =A1n wrote:
I use
QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard
I don't give any networking options at the command line and it works for me. I use 9front but I don't think it matters.

I think Yoann asked how to connect to Plan9 from MacOS, right?
You have to use tun/tap and maybe drawterm to connect to Plan 9
from MacOS, and then, for example, copy files via /mnt/term/.

Nicolas



--90e6ba614a76e403a604ef8be048-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <52CED85B.6000509@yahoo.fr> Date: Thu, 9 Jan 2014 18:11:55 +0100 From: Nicolas Bercher User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.0 MIME-Version: 1.0 To: 9fans@9fans.net References: <20140107224419.13C6BB827@mail.bitblocks.com> <52CEC113.2040909@yahoo.fr> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b18d2646-ead8-11e9-9d60-3106f5b1d025 On 09/01/2014 17:10, Bence F=C3=A1bi=C3=A1n wrote: > In his mail he was trying to reach the host from the guest. > But the other way around he would need tun/tap. That's correct. On 07/01/2014 23:16, Yoann Padioleau wrote: > How can I transfer files between plan9 and my host (I'm under macos)? Not sure the files transfer direction was mentioned at all: English is far from being my native language but *between* vs. *from...to* sound different to me. ;-) Nicolas From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <52CED85B.6000509@yahoo.fr> References: <20140107224419.13C6BB827@mail.bitblocks.com> <52CEC113.2040909@yahoo.fr> <52CED85B.6000509@yahoo.fr> Date: Thu, 9 Jan 2014 18:42:45 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=bcaec5299ff927866304ef8d2392 Subject: Re: [9fans] qemu and networking Topicbox-Message-UUID: b191ab4e-ead8-11e9-9d60-3106f5b1d025 --bcaec5299ff927866304ef8d2392 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable ip/ping is a plan 9 command 10.0.2.2 is the ip of the (simulated) gateway from the guest 2014/1/9 Nicolas Bercher > On 09/01/2014 17:10, Bence F=C3=A1bi=C3=A1n wrote: > >> In his mail he was trying to reach the host from the guest. >> But the other way around he would need tun/tap. That's correct. >> > > On 07/01/2014 23:16, Yoann Padioleau wrote: > > How can I transfer files between plan9 and my host (I'm under macos)? > > Not sure the files transfer direction was mentioned at all: > English is far from being my native language but *between* vs. > *from...to* sound different to me. ;-) > > Nicolas > > --bcaec5299ff927866304ef8d2392 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
ip/ping is a plan 9 command
10.0.2.2 is the ip of the (= simulated) gateway from the guest
--bcaec5299ff927866304ef8d2392--