ubuntu12.04 can't startup after installed some lib

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
nicekwell
Posts: 10
Joined: 15. Nov 2015, 04:44

ubuntu12.04 can't startup after installed some lib

Post by nicekwell »

I installed virtualbox 5.0.10 on mac OS X. And my job is develop android phone. So I need to use linux and install some libs. Linux version is ubuntu12.04.
But every time after I install some MTK libs. The virtual machine can't startup. But on physical machine is ok.
Attachment "2-install_MTK_lib.sh" is what I installed on linux.
Attachment "VBox.log" is virtual machine boot log. It has stuck when boot.
Can somebody help to solve this problem? Thanks!
(PS: sorry for my English level)
Attachments
2-install_MTK_lib.sh.zip
(381 Bytes) Downloaded 8 times
VBox.log.zip
(24.48 KiB) Downloaded 9 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: ubuntu12.04 can't startup after installed some lib

Post by loukingjr »

00:00:01.081971 NumCPUs <integer> = 0x0000000000000008 (8)
reduce the CPUs to 2.
00:00:01.033894 Host RAM: 16384MB total, 12334MB available
00:00:01.081975 RamSize <integer> = 0x0000000200000000 (8 589 934 592, 8 GB)
reduce the RAM to 4GB or less.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
nicekwell
Posts: 10
Joined: 15. Nov 2015, 04:44

Re: ubuntu12.04 can't startup after installed some lib

Post by nicekwell »

loukingjr wrote:
00:00:01.081971 NumCPUs <integer> = 0x0000000000000008 (8)
reduce the CPUs to 2.
00:00:01.033894 Host RAM: 16384MB total, 12334MB available
00:00:01.081975 RamSize <integer> = 0x0000000200000000 (8 589 934 592, 8 GB)
reduce the RAM to 4GB or less.
It doesn't work. I reduced CPU count and memory. But still stuck.
And, it's ok before I installed 2-install_MTK_lib.sh.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: ubuntu12.04 can't startup after installed some lib

Post by loukingjr »

But every time after I install some MTK libs. The virtual machine can't startup. But on physical machine is ok.
What physical machine? A different PC running Ubuntu 12.04?

I don't know if it matters but you are installing 32bit libs in a 64bit guest.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
nicekwell
Posts: 10
Joined: 15. Nov 2015, 04:44

Re: ubuntu12.04 can't startup after installed some lib

Post by nicekwell »

loukingjr wrote:
But every time after I install some MTK libs. The virtual machine can't startup. But on physical machine is ok.
What physical machine? A different PC running Ubuntu 12.04?

I don't know if it matters but you are installing 32bit libs in a 64bit guest.
Thank you ! I use same ubuntu12.04 system image to install OS.
It has no problem on computer in my company. And also on my personal computer.
But it will stuck on virtualbox after I installed 2-install_MTK_lib.sh.

I think "installing 32bit libs in a 64bit guest" is ok. Because all computers and servers in my company do this (as MTK official).
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: ubuntu12.04 can't startup after installed some lib

Post by loukingjr »

It has no problem on computer in my company. And also on my personal computer.
I guess you mean both computers are running Ubuntu 12.04 and both work after running "2-install_MTK_lib.sh"?

I have no idea what the MTK libraries do btw. However, your problem seems like a guest config problem and not something to do with VirtualBox.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: ubuntu12.04 can't startup after installed some lib

Post by Perryg »

I can say that installing your script ( which is just an apt-get install of various packages ) will fail on Ubuntu 12.04 as there is a missing dependency. The -y probably hides this from you but if you force the install without the proper package it will fail to load.

So is this all you did/do on a clean install or did you fail to tell us all the steps?
nicekwell
Posts: 10
Joined: 15. Nov 2015, 04:44

Re: ubuntu12.04 can't startup after installed some lib

Post by nicekwell »

Perryg wrote:I can say that installing your script ( which is just an apt-get install of various packages ) will fail on Ubuntu 12.04 as there is a missing dependency. The -y probably hides this from you but if you force the install without the proper package it will fail to load.

So is this all you did/do on a clean install or did you fail to tell us all the steps?
Thank for carefully test. It's true that it will fail to install 2-install_MTK_lib.sh. Because missing a dependent lib (I can't remember the name. It will show in error message). It will be success to install 2-install_MTK_lib.sh after install the missing lib.
I haven't tell that because I think it's doesn't matter. My purpose is to install those libs (include all dependency). And then it stucked.
nicekwell
Posts: 10
Joined: 15. Nov 2015, 04:44

Re: ubuntu12.04 can't startup after installed some lib

Post by nicekwell »

loukingjr wrote:
It has no problem on computer in my company. And also on my personal computer.
I guess you mean both computers are running Ubuntu 12.04 and both work after running "2-install_MTK_lib.sh"?

I have no idea what the MTK libraries do btw. However, your problem seems like a guest config problem and not something to do with VirtualBox.
Yes! you are right.
On real computer is ok.
On virtual computer will fail after installed 2-install_MTK_lib.sh.
Thank you very much for your help!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: ubuntu12.04 can't startup after installed some lib

Post by Perryg »

IIRC it was missing a mesa package and some gtk package. If you try to use this configuration using the unity desktop it probably will not work with a virtual machine and all you will get is a black screen. You should have better luck with xfce or some other DT that does not require OpenGL or Compiz.
nicekwell
Posts: 10
Joined: 15. Nov 2015, 04:44

Re: ubuntu12.04 can't startup after installed some lib

Post by nicekwell »

hi all
I have found the solution. The screen is black, but still can login by ssh. Login by ssh and do this:
sudo apt-get install xserver-xorg-lts-quantal
sudo dpkg-reconfigure xserver-xorg-lts-quantal
sudo reboot
Post Reply