Ubuntu 14.04 Server slow load

Discussions about using Linux guests in VirtualBox.
Post Reply
ag7878
Posts: 3
Joined: 17. Oct 2017, 09:57

Ubuntu 14.04 Server slow load

Post by ag7878 »

I'm using Ubuntu 16.04.3 as a host and have several linux servers as gusts. Recently, after I upgraded VB to 5.1.28, the guest running Ubuntu server 14.04 loads very slowly. Other guests run ok.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Ubuntu 14.04 Server slow load

Post by socratis »

  • Follow a "start the VM from cold-boot" / "observe error" / "shutdown the VM" cycle.
  • With the VM shut down completely (not paused or saved), right-click on the VM in the VirtualBox Manager and select "Show Log".
  • Save only the first "VBox.log", ZIP it and attach it to your response (see the "Upload attachment" tab below the reply form).
Remember that simple rule:
  • Total CPUs for your guests Host CPUs + 1.
  • Total RAM+vRAM+overhead for your guests Host available RAM + some.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
ag7878
Posts: 3
Joined: 17. Oct 2017, 09:57

Re: Ubuntu 14.04 Server slow load

Post by ag7878 »

Thanks. Attached is the log file.
Attachments
ubuntu server-2017-10-17-09-34-00.log.zip
(24.21 KiB) Downloaded 11 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Ubuntu 14.04 Server slow load

Post by socratis »

00:00:00.572693 Host RAM: 7507MB (7.3GB) total, 4397MB (4.2GB) available
00:00:00.750205 RamSize <integer> = 0x0000000040000000 (1 073 741 824, 1 024 MB)
You can certainly afford 2048 MB of RAM for your guest. 1024 MB is the conservative default, but you can afford double that on your system. That will definitely give your guest more room to breathe...
00:00:00.750391 ICH9 <integer> = 0x0000000000000001 (1)
Any particular reason you're using an experimental feature for which you're warned not to enable?
00:04:11.807010 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed}
                aComponent={ConsoleWrap} aText={Could not mount the media/drive
                '/usr/share/virtualbox/VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED)},
                preserve=false aResultDetail=0
Please eject the VBoxGuestAdditions.iso from this and any other VM that might have it mounted. Take a look at the menu: File » Virtual Media Manager... » Optical disks, and see which VM has the GAs loaded and release them from that VM. It a really good idea to follow the pattern Insert GAs CD » Install GAs » Eject GAs CD, otherwise you're going to run into trouble, like above.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
ag7878
Posts: 3
Joined: 17. Oct 2017, 09:57

Re: Ubuntu 14.04 Server slow load

Post by ag7878 »

I released the guest edition CD. I changed the chipset to PIIX3. I increased the RAM. Still it takes this guest to load almost 5 times slower than other guests. For example, I compared the settings of a guest running server 16.04 and both VMs settings are identicle. the 16.04 server loads much faster. I've attached the current (new) log.
Attachments
ubuntu server-2017-10-18-12-24-11.log.zip
(22.99 KiB) Downloaded 9 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 14.04 Server slow load

Post by Perryg »

Long boot times usually means the OS is waiting for something that is supposed to happen to actually happen.

Code: Select all

00:00:14.903756 GUI: UIFrameBufferPrivate::performResize: Size=800x600, Directly using source bitmap content
00:01:06.767677 VMMDev: Guest Log: VBoxService 5.1.30 r118389 (verbosity: 0) linux.amd64 (Oct 16 2017 11:53:28) release log

00:01:06.774634 VMMDev: Guest Log: 00:00:00.007120 automount vbsvcAutoMountWorker: Shared folder 'www' was mounted to '/media/sf_www'
00:01:43.273961 GUI: Request to close active machine-window.
While this log does not show a lot ( see above ) the previous one does. It showed a long wait time for the guest additions to load because it was waiting for something. Later in that log it shows a shared folder that took forever to load. The share was an auto load ( which I totally despise ) and these sometimes take a while if the guest OS can not find what it wants in a timely manor.

Conclusion: If I were troubleshooting this I would disable the shared folder and see if boot time improves, and if it does then I would find out why.

Note: typically by the time the log shows the VBoxService info the guest has booted. My servers achieve this in about 14 seconds and the VBoxService starts around 60s, so this log seems close to normal to me.
Post Reply