Virtualbox 4 hangs when trying to install ubuntu guest on ubuntu host system

2

I'm trying to install ubuntu server using virtualbox 4.0.4 in a ubuntu 10.10 host OS. I have the iso image on my hard drive which I used to perform the install. I edited the settings and added this image at the storage section, selected it as a primary master, so I could boot from it and start the install process.

But now, each time I start the installation, at the very beginning or if I'm lucky, after I click on the install link at the welcome screen, the process hangs and all the computer is blocked. This happened 3 times already.

I even tried to perform the installation using an old CD I had with the 9.10 server version, thinking that the iso image might be the issue, but the problem still persists.

I dont know what could cause this problem. My computer is a dell laptop with AMD processor (I dont know if this is important). Any help is very appreciated.

misterjinx

Posted 2011-02-27T16:26:19.747

Reputation: 287

Do you mean your computer is completely blocked, not just virtual machine? If computer still somehow works (you could try to login with ssh, install openssh-server first), please attach output of dmesg. – Olli – 2011-02-27T17:51:40.573

Yes, the computer freezes completely and I have to manually reboot. Sometimes, after I click on the link to start the installation, right after it changes the window size (first time it's a 16:9 size and then changes it to something like 4:3 I guess), the computer restarts itself :| – misterjinx – 2011-02-27T17:56:10.953

Did you manage to resolve the issue? I'm facing the same problem right now with 11.10 server (guest) on 11.04 (host). – bitmask – 2012-01-12T08:05:18.337

no, sorry, i haven't resolved the issue with virtualbox. i finally ended up using vmware, which worked flawless. – misterjinx – 2012-01-12T08:25:54.050

Apparently, running a 32-bit guest works, while all 64-bit versions fail. Interestingly enough, the desktop installers inform me of a kernel panic, whereas the non-graphical versions simply show a black screen. – bitmask – 2012-01-12T08:34:50.783

Answers

1

A few things to check which might be helpful (the VT option resolved a freezing problem on one machine for me in the not-so-distant-past):

  1. In your BIOS settings, make sure that the VT feature is enabled

  2. Check that your system BIOS is up to date (many people believe that the BIOS doesn't make any difference, but if it includes micro-updates to the CPU then it is important, and the BIOS updates sometimes include some very important ones)

  3. Disable the 2D and 3D graphics acceleration options in the VirtualBox settings for the Virtual Machine you're trying to install Ubuntu into

  4. If using 64-bit Ubuntu, try the 32-bit version instead (if it works, then this may provide a clue as to where to look next in addition to getting things working for now)

Randolf Richardson

Posted 2011-02-27T16:26:19.747

Reputation: 14 002

1Thanks for your answer. I'll try this and I'll come back with an answer :) – misterjinx – 2011-02-28T07:58:09.753

2So, I checked for VT option - is enabled. I updated my BIOS. 2D/3D graphics acceleration were already disabled. I tried using a 32bit version and is still not working. After some seconds the computer still freezes and sometimes it restarts automatically. I'm thinking cu try with an older version of VirtualBox to see if this might be the cause :-<. Thanks anyway! – misterjinx – 2011-02-28T18:57:32.307

1Just give it a shot using an older version of Virtualbox (3.2.8) and I'm having the same problem. I'm very disappointed :( – misterjinx – 2011-02-28T19:16:13.993

Okay, so you've ruled out software (unless your Operating System is b0rked, but this is very uncommon with Linux/Unix environments due to the absence of a bloated Registry), so at this point I'd look at hardware problems as being the most likely culprit. (In my experience, I find that VirtualBox is a stable, reliable application that doesn't cause any of the dozens of computers I have it installed on to freeze or have any problems.) – Randolf Richardson – 2011-08-13T22:10:47.087

Also look at overheating as a possible cause -- are all your fans working, and keeping the air flowing through your computer to keep the major components cool (hard drive, CPU, motherboard, etc.)? – Randolf Richardson – 2011-08-13T22:12:03.077

1

I had a similar issue although my computer did not freeze, only the virtual one. After a few tries, I choose the expert install, and I finally got an error back:

This kernel requires an X86-64 CPU, but only detected an i686 CPU.

Unable to boot - please use a kernel appropriate for your CPU.

Although I do run Ubuntu 64bit as host.

DevMonk

Posted 2011-02-27T16:26:19.747

Reputation: 11

-1

The CD should be mounted as secondary master and not primary master. Your hard drive image should be primary master.

If virtualbox (and it's the same with most computers) can't find anything on the hard drive image it will attempt the CDROM image as the next option. Alternatively you can press (I think) F12 at startup to select the boot device.

Majenko

Posted 2011-02-27T16:26:19.747

Reputation: 29 007

When I try to install from the CD, the settings are like you say, but I still have the same problem. Sometimes, the computer restarts itself... – misterjinx – 2011-02-27T17:04:27.233

What? There is no reason to have CD drive as secondary master. It's completely fine to have it as primary master, primary slave or secondary slave. If there is PATA in use. – Olli – 2011-02-27T17:21:37.200

@Olli That's what I thought. Do you have any ideas on my issue ? – misterjinx – 2011-02-27T17:33:29.357

@misterjinx: no, if I'll figure out something, I'll add separate answer (except if it's closely related to older answer). – Olli – 2011-02-27T17:50:52.163