Can't install Debian Stretch in VirtualBox

News and discussion about development of the Debian OS itself

Can't install Debian Stretch in VirtualBox

Postby loukingjr » 2015-06-06 09:36

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.
loukingjr
 
Posts: 339
Joined: 2010-11-19 05:50

Re: Can't install Debian Stretch in VirtualBox

Postby morks » 2015-06-09 13:03

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.
morks
 
Posts: 3
Joined: 2015-06-09 08:12
Location: Austria

Re: Can't install Debian Stretch in VirtualBox

Postby kalle123 » 2015-06-09 13:48

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
User avatar
kalle123
 
Posts: 198
Joined: 2015-03-21 11:17
Location: Rhineland - Germany

Re: Can't install Debian Stretch in VirtualBox

Postby morks » 2015-06-10 13:22

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)
morks
 
Posts: 3
Joined: 2015-06-09 08:12
Location: Austria

Re: Can't install Debian Stretch in VirtualBox

Postby stevepusser » 2015-06-10 19:43

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?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8792
Joined: 2009-10-06 05:53

Re: Can't install Debian Stretch in VirtualBox

Postby Richard » 2015-06-11 01:33

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.
User avatar
Richard
 
Posts: 60
Joined: 2006-08-28 19:03
Location: Venezuela

Re: Can't install Debian Stretch in VirtualBox

Postby kalle123 » 2015-06-11 06:09

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.


:?:
User avatar
kalle123
 
Posts: 198
Joined: 2015-03-21 11:17
Location: Rhineland - Germany

Re: Can't install Debian Stretch in VirtualBox

Postby morks » 2015-06-11 08:00

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...
morks
 
Posts: 3
Joined: 2015-06-09 08:12
Location: Austria

Re: Can't install Debian Stretch in VirtualBox

Postby ismaeltxu » 2016-02-02 06:59

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?
ismaeltxu
 
Posts: 4
Joined: 2014-06-10 22:23

Re: Can't install Debian Stretch in VirtualBox

Postby stevepusser » 2016-02-02 19:44

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)
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8792
Joined: 2009-10-06 05:53

Re: Can't install Debian Stretch in VirtualBox

Postby prahladyeri » 2016-02-18 00:53

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.
prahladyeri
 
Posts: 42
Joined: 2012-07-11 20:38
Location: India


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable