Page 1 of 1

ubuntu guest networking problem

Posted: 23. May 2014, 09:30
by ShawnX
Hi,

I'm running a ubutnu (12.04) guest under MacOS Maverick. I'm connecting to the guest via ssh in a Mac Terminal window. Oftenly the command line stops responding or responds really slowly. Sometimes it even responds in strange ways like pressing <ENTER> key results in the command line showing the current working DIR. While if I enter commands directly into the VM window everything works normally - no lagging at all.

I've googled and tried many things. I've suspected that it was that the general VM performance wasn't good but it turned out not the case. I've tried all the NIC options in virtualbox network configuration.

I don't know if this matters but the guest was copied from windows 7 - originally it was installed and had been running there for a while.

Anyways here are the specs if it helps:

Guest: ubuntu 12.04 server 32bit, Memory 768MB, 1 CPU, Enable PAE/NX, VT-x/AMD-V, Bridged Adapter en0:Ethernt (my wired NIC), Guest Additonals installed
Host: MacOS Maverick, 8G memory
VirtualBox: 4.3.12 with extention pack installed

Guest Settings:

Code: Select all

VBoxManage showvminfo dev

Name:            dev
Groups:          /
Guest OS:        Ubuntu (32 bit)
UUID:            090e14e5-1ccf-4e59-9fd9-dce9f97c66fc
Config file:     /Users/flamingtop/VirtualBox VMs/dev/dev.vbox
Snapshot folder: /Users/flamingtop/VirtualBox VMs/dev/Snapshots
Log folder:      /Users/flamingtop/VirtualBox VMs/dev/Logs
Hardware UUID:   090e14e5-1ccf-4e59-9fd9-dce9f97c66fc
Memory size:     768MB
Page Fusion:     off
VRAM size:       16MB
CPU exec cap:    80%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             on
Long Mode:       off
Synthetic CPU:   off
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): HardDisk
Boot Device (2): DVD
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
Time offset:     0ms
RTC:             UTC
Hardw. virt.ext: off
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
VT-x unr. exec.: on
State:           running (since 2014-05-26T01:45:53.037000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration: 
Autostart Enabled: off
Autostart Delay: 0
Default Frontend: 
Storage Controller Name (0):            IDE
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      2
Storage Controller Bootable (1):        on
IDE (1, 0): Empty
SATA (0, 0): /Users/flamingtop/VirtualBox VMs/dev/dev.vdi (UUID: e16ec47c-a780-43a6-8ba3-e804e3d37bf2)
NIC 1:           MAC: 08002733408D, Attachment: Bridged Interface 'en0: Ethernet', Cable connected: on, Trace: off (file: none), Type: Am79C970A, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:           MAC: 0800276ED357, Attachment: Internal Network 'intnet', Cable connected: on, Trace: off (file: none), Type: 82543GC, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           disabled
Clipboard Mode:  Bidirectional
Drag'n'drop Mode: disabled
Session type:    GUI/Qt
Video mode:      640x480x32 at 0,0
VRDE:            enabled (Address 0.0.0.0, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
VRDE port:       3389
Video redirection: disabled
VRDE property: TCP/Ports  = "3389"
VRDE property: TCP/Address = <not set>
VRDE property: VideoChannel/Enabled = <not set>
VRDE property: VideoChannel/Quality = <not set>
VRDE property: VideoChannel/DownscaleProtection = <not set>
VRDE property: Client/DisableDisplay = <not set>
VRDE property: Client/DisableInput = <not set>
VRDE property: Client/DisableAudio = <not set>
VRDE property: Client/DisableUSB = <not set>
VRDE property: Client/DisableClipboard = <not set>
VRDE property: Client/DisableUpstreamAudio = <not set>
VRDE property: Client/DisableRDPDR = <not set>
VRDE property: H3DRedirect/Enabled = <not set>
VRDE property: Security/Method = <not set>
VRDE property: Security/ServerCertificate = <not set>
VRDE property: Security/ServerPrivateKey = <not set>
VRDE property: Security/CACertificate = <not set>
VRDE property: Audio/RateCorrectionMode = <not set>
VRDE property: Audio/LogPath = <not set>
USB:             enabled
EHCI:            disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

VRDE Connection:    not active
Clients so far:     0

Video capturing:    not active
Capture screens:    0
Capture file:       /Users/flamingtop/VirtualBox VMs/dev/dev.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB
OS type:                             Linux26
Additions run level:                 2
Additions version:                   4.3.10 r93012


Guest Facilities:

Facility "VirtualBox Base Driver": active/running (last update: 2014/05/26 01:46:43 UTC)
Facility "VirtualBox System Service": active/running (last update: 2014/05/26 01:47:10 UTC)
Facility "Seamless Mode": not active (last update: 2014/05/26 01:46:43 UTC)
Facility "Graphics Mode": not active (last update: 2014/05/26 01:46:43 UTC)


Thanks in advance,
Shawn

Re: ubuntu guest networking problem

Posted: 23. May 2014, 14:44
by noteirak
Please provide the VM log file as a attached zip file and the guest settings - see viewtopic.php?f=24&t=48476

Re: ubuntu guest networking problem

Posted: 26. May 2014, 04:16
by ShawnX
noteirak wrote:Please provide the VM log file as a attached zip file and the guest settings - see viewtopic.php?f=24&t=48476
Attached zipped log file and posted guest settings inline.

Re: ubuntu guest networking problem

Posted: 29. May 2014, 22:57
by noteirak
00:00:41.576943 AIOMgr: Host limits number of active IO requests to 16. Expect a performance impact.
[...]
00:13:22.305633 TM: Giving up catch-up attempt at a 61 604 901 789 ns lag; new total: 61 604 901 789 ns
00:14:41.383713 TM: Giving up catch-up attempt at a 69 024 158 559 ns lag; new total: 130 629 060 348 ns
00:17:31.797746 TM: Giving up catch-up attempt at a 66 943 774 047 ns lag; new total: 197 572 834 395 ns
00:18:40.869219 TM: Giving up catch-up attempt at a 64 156 186 152 ns lag; new total: 261 729 020 547 ns
00:19:45.180176 TM: Giving up catch-up attempt at a 62 483 216 566 ns lag; new total: 324 212 237 113 ns
00:20:49.383572 TM: Giving up catch-up attempt at a 60 376 391 080 ns lag; new total: 384 588 628 193 ns
00:21:56.723842 TM: Giving up catch-up attempt at a 66 739 896 467 ns lag; new total: 451 328 524 660 ns
Seems like some config in your host is being a bottle-neck for the VM, and therefore slows it down (a lot).
I don't know how you can solve this, but at least you know this is due to some limitations. Maybe someone else will know more & answer.

Re: ubuntu guest networking problem

Posted: 30. May 2014, 03:19
by ShawnX
Thanks.

A bit googling led me to this post https://joeshaw.org/2011/09/30/terrible ... -mac-os-x/ I enabled Host IO Cache for the guest and booted it up. I no longer see previous messages in the VB Log.

However the networking problem is still there when I ssh from host to guest. The connection seems to stall regularly and when it happens the "Network" icon at the bottom-right of the guest VB window flashes with a red dot. I'm not sure what that indicates and how to troubleshoot that.

I've attached the updated VBox.log.
VBox.log.zip
(12.34 KiB) Downloaded 7 times
This post seems relevant viewtopic.php?f=8&t=57024

Shawn

Re: ubuntu guest networking problem

Posted: 30. May 2014, 03:35
by Perryg

Code: Select all

PCNet#0: The link is back up again after the restore
PCnet is flaky on everything except Windows XP and a few older OSes. Switch to using VirtIO and see if it improves.

Re: ubuntu guest networking problem

Posted: 30. May 2014, 07:29
by ShawnX
Perryg wrote:

Code: Select all

PCNet#0: The link is back up again after the restore
PCnet is flaky on everything except Windows XP and a few older OSes. Switch to using VirtIO and see if it improves.
Tried, problem remains.

Thanks.

Re: ubuntu guest networking problem

Posted: 30. May 2014, 07:47
by ShawnX
Output of ifconfig
eth4 Link encap:Ethernet HWaddr 08:00:27:7d:17:bd
inet addr:192.168.21.116 Bcast:192.168.21.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe7d:17bd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22632 errors:2 dropped:0 overruns:0 frame:0
TX packets:14097 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4979021 (4.9 MB) TX bytes:9054020 (9.0 MB)
Interrupt:10 Base address:0xd020
Note the "errors:2" part, every time the problem occurs it seems the number increases.

Re: ubuntu guest networking problem

Posted: 30. May 2014, 14:56
by Perryg
It looks like the setup is being over burdened. Not much else I can tell you from here and also because I don't have/use a Mac. You might raise a ticket at bugtracker if no one else has a suggestion.

PS leave the network adapter set to VirtIO. It is the best and fastest especially for a Linux guest.

Re: ubuntu guest networking problem

Posted: 31. May 2014, 02:30
by ShawnX
Thanks.