incorrect ping in OS X guests in QEMU

About Qemu-system-ppc, a PPC Mac emulator for Windows, macOS and Linux that can run Mac OS 9.0 up to Mac OS X 10.5

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
sharik
Space Cadet
Posts: 1
Joined: Wed Jul 06, 2022 6:37 pm

incorrect ping in OS X guests in QEMU

Post by sharik »

Hi all,

I have two VMs, both in emulation mode, with PPC 10.4 and x86_64 10.7 (I have a M1 mac). They were installed with disk images from macintoshgarden and the internet archive. With both of them I see a strange issue when pinging 8.8.8.8:

Tiger output:
tigers-power-mac-g4-agp-graphics:~ tiger$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=-272336118723.987 ms
wrong data byte #8 should be 0x8 but was 0xc0
cp:73 1 75 27 8 8 8 8
c0 a8 1 6a 0 0 f5 9e 0 eb 0 0 62 c5 f0 b6
0 d ca e9 8 9 a b c d e f 10 11 12 13
14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23
dp:62 c5 f0 b6 0 d ca e9
8 9 a b c d e f 10 11 12 13 14 15 16 17
18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27
28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=-272336117754.257 ms (DUP!)
wrong data byte #8 should be 0x8 but was 0xc0
cp:73 1 75 27 8 8 8 8
c0 a8 1 6a 0 0 f0 f4 0 eb 0 1 62 c5 f0 b7
0 d cf 91 8 9 a b c d e f 10 11 12 13
14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23
dp:62 c5 f0 b7 0 d cf 91
8 9 a b c d e f 10 11 12 13 14 15 16 17
18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27
28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=-272336116738.089 ms (DUP!)
wrong data byte #8 should be 0x8 but was 0xc0
cp:73 1 75 27 8 8 8 8
c0 a8 1 6a 0 0 ef d 0 eb 0 2 62 c5 f0 b8
0 d d1 76 8 9 a b c d e f 10 11 12 13
14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23
dp:62 c5 f0 b8 0 d d1 76
8 9 a b c d e f 10 11 12 13 14 15 16 17
18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27
28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37
^C
--- 8.8.8.8 ping statistics ---

Lion output:
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=-272335822324.651 ms
wrong data byte #8 should be 0x8 but was 0xc0
cp:73 1 75 27 8 8 8 8
c0 a8 1 6a 0 0 7c f4 bf 0 0 0 62 c5 f1 df
0 5 84 5d 8 9 a b c d e f 10 11 12 13
14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23
dp:62 c5 f1 df 0 5 84 5d
8 9 a b c d e f 10 11 12 13 14 15 16 17
18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27
28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=-272335821320.646 ms (DUP!)
wrong data byte #8 should be 0x8 but was 0xc0
cp:73 1 75 27 8 8 8 8
c0 a8 1 6a 0 0 4e 23 bf 0 0 1 62 c5 f1 e0
0 5 b3 2c 8 9 a b c d e f 10 11 12 13
14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23
dp:62 c5 f1 e0 0 5 b3 2c
8 9 a b c d e f 10 11 12 13 14 15 16 17
18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27
28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37
Request timeout for icmp_seq 1
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=-272335820328.967 ms (DUP!)
wrong data byte #8 should be 0x8 but was 0xc0
cp:73 1 75 27 8 8 8 8
c0 a8 1 6a 0 0 44 d4 bf 0 0 2 62 c5 f1 e1
0 5 bc 79 8 9 a b c d e f 10 11 12 13
14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23
dp:62 c5 f1 e1 0 5 bc 79
8 9 a b c d e f 10 11 12 13 14 15 16 17
18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27
28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37
^C
--- 8.8.8.8 ping statistics ---
I do not see similar issues in a PPC OS 9 VM I have and a x86_64 Debian VM, with the same version of QEMU (7.0.0_1, installed with brew). Do you know what it could be? It seems an architecture-independent issue between OS X and QEMU network device..
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: incorrect ping in OS X guests in QEMU

Post by Cat_7 »

Hi,

I have no idea what might be causing that.
Are you using the vmnet networking solution, or slirp?

In general these kind of questions stand a better chance of getting an answer when asked at the qemu user or development mailing lists.

Best,
Cat_7
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: incorrect ping in OS X guests in QEMU

Post by adespoton »

Out of curiosity, is the time and timezone set correctly in your installations?
Post Reply