Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can't install Debian Stretch in VirtualBox

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
loukingjr
Posts: 339
Joined: 2010-11-19 05:50

Can't install Debian Stretch in VirtualBox

#1 Post by loukingjr »

Someone suggested I try changing a copy of Debian 8 Stable VB guest to testing. I changed the repos to testing, updated everything then the guest would no longer boot. Just end up with a black screen with a cursor. I then downloaded the Debian Stretch daily build, installed it and after a restart ended up with the same result. Any ideas why 'Stretch' won't run as a guest in VitualBox?

TIA.
Those that can, do. Those that can't, tell us how to.

morks
Posts: 3
Joined: 2015-06-09 08:12
Location: Austria

Re: Can't install Debian Stretch in VirtualBox

#2 Post by morks »

Hi,

I ran into the same problem (installing debian strech in virtual box / host: win7) today, but was able to resolve it by installing a couple of additional packages in the guest system.

- start the virtual machine
- once you're seeing the blank screeen with the (flashing) underscore (_) change to a terminal by using CTRL + ALT + F2 (or one of the other F keys) (a terminal login should be displayed after using this combination) (alternatively one may boot the recovery mode which does not start any X11 instance but provides a terminal)
- install (in the guest system) dkms
- install (in the guest system) the linux header package for the installed kernel (e.g. linux-headers-3.16.0-4-686-pae) - if not yet installed
- install (in the guest system) virtualbox-guest-dkms
- restart the guest system

Afterwards you should see the login screen
Last edited by morks on 2015-06-11 08:08, edited 4 times in total.

User avatar
kalle123
Posts: 346
Joined: 2015-03-21 11:17
Location: Rhineland - Germany
Has thanked: 4 times
Been thanked: 11 times

Re: Can't install Debian Stretch in VirtualBox

#3 Post by kalle123 »

morks wrote:Hi,

I ran into the same problem today, but was able to resolve it by installing a couple of additional packages.

- install dkms
- install the linux header package for your kernel (e.g. linux-headers-3.16.0-4-686-pae) - if not yet installed
- install virtualbox-guest-dkms
- restart

Afterwards you should see the login screen
What host? You installed those 3 packages in host or guest?

br

morks
Posts: 3
Joined: 2015-06-09 08:12
Location: Austria

Re: Can't install Debian Stretch in VirtualBox

#4 Post by morks »

kalle123 wrote:
What host? You installed those 3 packages in host or guest?

br
host: Win7
install these packages in the guest system (Debian Stretch)

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Can't install Debian Stretch in VirtualBox

#5 Post by stevepusser »

If you had the same problem, a blank screen with a flashing cursor, how did you manage to install anything? Did you manage to switch to another virtual terminal and get a login screen on the CLI?
MX Linux packager and developer

User avatar
Richard
Posts: 65
Joined: 2006-08-28 19:03
Location: Venezuela

Re: Can't install Debian Stretch in VirtualBox

#6 Post by Richard »

morks wrote:I ran into the same problem (installing debian strech in virtual box / host: win7) today, but was able to resolve it by installing a couple of additional packages in the guest system.
- install dkms
- install the linux header package for your kernel (e.g. linux-headers-3.16.0-4-686-pae) - if not yet installed
- install virtualbox-guest-dkms
- restart
Afterwards you should see the login screen
I think he means to say that he installed dkms, headers, vbox-guest-dkms, and virtualbox-guest-dkms into the host;
since, all this has to be installed in the host for use by the guest.
MX18: Lenovo T430: Intel Ivy Bridge i5-3320M, 8 GB RAM, 4.19.0-1-amd64, 119 GB SSD

User avatar
kalle123
Posts: 346
Joined: 2015-03-21 11:17
Location: Rhineland - Germany
Has thanked: 4 times
Been thanked: 11 times

Re: Can't install Debian Stretch in VirtualBox

#7 Post by kalle123 »

morks wrote: host: Win7
install these packages in the guest system (Debian Stretch)
Richard wrote: I think he means to say that he installed dkms, headers, vbox-guest-dkms, and virtualbox-guest-dkms into the host;
since, all this has to be installed in the host for use by the guest.
:?:

morks
Posts: 3
Joined: 2015-06-09 08:12
Location: Austria

Re: Can't install Debian Stretch in VirtualBox

#8 Post by morks »

stevepusser wrote:If you had the same problem, a blank screen with a flashing cursor, how did you manage to install anything? Did you manage to switch to another virtual terminal and get a login screen on the CLI?
once the blank screen with the flashing cursor (in my case it was an underscore) is displayed I was able to change to a terminal by pressing CTRL + ALT + F2. Alternatively one can also boot into the recovery mode.
Richard wrote: I think he means to say that he installed dkms, headers, vbox-guest-dkms, and virtualbox-guest-dkms into the host;
since, all this has to be installed in the host for use by the guest.
Nope, all the packages from my second post needs to be installed in the guest system (as my host is a Win7 machine, deb packages cannot be installed there).

btw. I try to keep the steps in the second post up to date...

ismaeltxu
Posts: 4
Joined: 2014-06-10 22:23

Re: Can't install Debian Stretch in VirtualBox

#9 Post by ismaeltxu »

I've alse installed Stretch in Oracle VM VirtualBox 5.0.8 and the screen in blinking asking for login.

When I put the login name and password (is not easy: it's blinking) goes to terminal, not to graphical interface.

When I try

#apt-get install dkms

the answer is can't access to repo

What can I try?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Can't install Debian Stretch in VirtualBox

#10 Post by stevepusser »

What desktop environment did you pick at install? GNOME 3 is the default, and it requires 3D accelerated graphics in the guest, which A) have to be enabled in the machine's settings, and B) require the guest additions be compiled and installed in the guest after the install. Even then, the 3D is limited.

What happens if you pick a less demanding desktop, such as xfce4 or lxde?

About the repo error, you can try "apt-get update", to build a package database. If that throws errors, you may not have a net connection in the guest, or something is wrong with /etc/apt/sources.list (see its contents with cat /etc/apt/sources.list)
MX Linux packager and developer

prahladyeri
Posts: 42
Joined: 2012-07-11 20:38
Location: India

Re: Can't install Debian Stretch in VirtualBox

#11 Post by prahladyeri »

What worked for me was switching from gdm to lightdm. The gdm of stretch (at least on testing) seems to have some disagreement with virtualbox. Hold down the shift key right from the bios screen, then boot into recovery mode, then install lightdm using apt-get, and finally choose lightdm in the configuration screen that follows.

Post Reply