9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] qemu and networking
@ 2014-01-07 22:16 Yoann Padioleau
  2014-01-07 22:22 ` mveety
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Yoann Padioleau @ 2014-01-07 22:16 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

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_qemu/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.



[-- Attachment #2: Type: text/html, Size: 1022 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-07 22:16 [9fans] qemu and networking Yoann Padioleau
@ 2014-01-07 22:22 ` mveety
  2014-01-07 22:25 ` plannine
  2014-01-07 22:44 ` Bakul Shah
  2 siblings, 0 replies; 10+ messages in thread
From: mveety @ 2014-01-07 22:22 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-07 22:16 [9fans] qemu and networking Yoann Padioleau
  2014-01-07 22:22 ` mveety
@ 2014-01-07 22:25 ` plannine
  2014-01-07 22:44 ` Bakul Shah
  2 siblings, 0 replies; 10+ messages in thread
From: plannine @ 2014-01-07 22:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-07 22:16 [9fans] qemu and networking Yoann Padioleau
  2014-01-07 22:22 ` mveety
  2014-01-07 22:25 ` plannine
@ 2014-01-07 22:44 ` Bakul Shah
  2014-01-08  8:11   ` Bence Fábián
  2 siblings, 1 reply; 10+ messages in thread
From: Bakul Shah @ 2014-01-07 22:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Tue, 07 Jan 2014 22:16:02 GMT Yoann Padioleau <pad@fb.com> 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.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-07 22:44 ` Bakul Shah
@ 2014-01-08  8:11   ` Bence Fábián
  2014-01-09 15:32     ` Nicolas Bercher
  0 siblings, 1 reply; 10+ messages in thread
From: Bence Fábián @ 2014-01-08  8:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 2059 bytes --]

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 <bakul@bitblocks.com>

> On Tue, 07 Jan 2014 22:16:02 GMT Yoann Padioleau <pad@fb.com> 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.
>
>

[-- Attachment #2: Type: text/html, Size: 2800 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-08  8:11   ` Bence Fábián
@ 2014-01-09 15:32     ` Nicolas Bercher
  2014-01-09 16:10       ` Bence Fábián
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Bercher @ 2014-01-09 15:32 UTC (permalink / raw)
  To: 9fans

On 08/01/2014 09:11, Bence Fábián 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



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-09 15:32     ` Nicolas Bercher
@ 2014-01-09 16:10       ` Bence Fábián
  2014-01-09 16:12         ` Bence Fábián
  2014-01-09 17:11         ` Nicolas Bercher
  0 siblings, 2 replies; 10+ messages in thread
From: Bence Fábián @ 2014-01-09 16:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

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ábián 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
>
>

[-- Attachment #2: Type: text/html, Size: 1184 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-09 16:10       ` Bence Fábián
@ 2014-01-09 16:12         ` Bence Fábián
  2014-01-09 17:11         ` Nicolas Bercher
  1 sibling, 0 replies; 10+ messages in thread
From: Bence Fábián @ 2014-01-09 16:12 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

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ábián <begnoc@gmail.com>

> 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ábián 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
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 1654 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-09 16:10       ` Bence Fábián
  2014-01-09 16:12         ` Bence Fábián
@ 2014-01-09 17:11         ` Nicolas Bercher
  2014-01-09 17:42           ` Bence Fábián
  1 sibling, 1 reply; 10+ messages in thread
From: Nicolas Bercher @ 2014-01-09 17:11 UTC (permalink / raw)
  To: 9fans

On 09/01/2014 17:10, Bence Fábián 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



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] qemu and networking
  2014-01-09 17:11         ` Nicolas Bercher
@ 2014-01-09 17:42           ` Bence Fábián
  0 siblings, 0 replies; 10+ messages in thread
From: Bence Fábián @ 2014-01-09 17:42 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

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 <nbercher@yahoo.fr>

> On 09/01/2014 17:10, Bence Fábián 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
>
>

[-- Attachment #2: Type: text/html, Size: 1194 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-09 17:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-07 22:16 [9fans] qemu and networking Yoann Padioleau
2014-01-07 22:22 ` mveety
2014-01-07 22:25 ` plannine
2014-01-07 22:44 ` Bakul Shah
2014-01-08  8:11   ` Bence Fábián
2014-01-09 15:32     ` Nicolas Bercher
2014-01-09 16:10       ` Bence Fábián
2014-01-09 16:12         ` Bence Fábián
2014-01-09 17:11         ` Nicolas Bercher
2014-01-09 17:42           ` Bence Fábián

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).