[elbe-devel] elbe initvm attach -> login does not work after upgrading from 1.1 to 1.2 stable

Manuel Traut manuel.traut at linutronix.de
Mon Nov 6 16:47:31 CET 2017


Hi Lukasz,

On Fri, Sep 08, 2017 at 02:54:26PM +0000, Lukasz Walewski wrote:
> Hi,
> 
> I think Frank meant Debian 9.0 (stretch) here. Under Debian 8.9 (jessie) the fix does not work. I upgraded my jessie VMware VM today, which included Elbe upgrade to version 2.1 (from http://debian.linutronix.de/elbe jessie main). Creating a fresh initvm results in an error:
> 
> $ elbe --version
> elbe v2.1 debian 8.9
> 
> $ elbe initvm create
> [...]
> touch .stamps/stamp-create-buildenv-img
> /usr/bin/kvm
> qemu-system-x86_64: -M pc-i440fx-2.6: Unsupported machine type
> Use -machine help to list supported machines!
> 
> The supported machine types are the following:
> 
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID:Debian
> Description:Debian GNU/Linux 8.9 (jessie)
> Release:8.9
> Codename:jessie
> 
> $ /usr/bin/kvm -machine help
> Supported machines are:
> pc-0.13              Standard PC (i440FX + PIIX, 1996)
> pc-i440fx-2.0        Standard PC (i440FX + PIIX, 1996)
> pc-1.0               Standard PC (i440FX + PIIX, 1996)
> pc                   Standard PC (i440FX + PIIX, 1996) (alias of pc-i440fx-2.1)
> pc-i440fx-2.1        Standard PC (i440FX + PIIX, 1996) (default)
> pc-q35-1.7           Standard PC (Q35 + ICH9, 2009)
> pc-1.1               Standard PC (i440FX + PIIX, 1996)
> pc-0.14              Standard PC (i440FX + PIIX, 1996)
> pc-q35-2.0           Standard PC (Q35 + ICH9, 2009)
> pc-i440fx-1.4        Standard PC (i440FX + PIIX, 1996)
> pc-i440fx-1.5        Standard PC (i440FX + PIIX, 1996)
> pc-0.15              Standard PC (i440FX + PIIX, 1996)
> xenfv                Xen Fully-virtualized PC
> pc-q35-1.4           Standard PC (Q35 + ICH9, 2009)
> isapc                ISA-only PC
> pc-1.2               Standard PC (i440FX + PIIX, 1996)
> pc-0.10              Standard PC (i440FX + PIIX, 1996)
> pc-0.11              Standard PC (i440FX + PIIX, 1996)
> q35                  Standard PC (Q35 + ICH9, 2009) (alias of pc-q35-2.1)
> pc-q35-2.1           Standard PC (Q35 + ICH9, 2009)
> pc-i440fx-1.7        Standard PC (i440FX + PIIX, 1996)
> pc-i440fx-1.6        Standard PC (i440FX + PIIX, 1996)
> none                 empty machine
> xenpv                Xen Para-virtualized PC
> pc-q35-1.5           Standard PC (Q35 + ICH9, 2009)
> pc-q35-1.6           Standard PC (Q35 + ICH9, 2009)
> pc-0.12              Standard PC (i440FX + PIIX, 1996)
> pc-1.3               Standard PC (i440FX + PIIX, 1996)
> 
> So obviously the pc-i440fx-2.6 is not available in jessie, however, it is requested by the Makefile if running under VMware:
> 
> $ cat initvm/Makefile
> MEMSIZE?=1024
> SMP?=`nproc`
> INTERPRETER?=/usr/bin/kvm
> 
> # this is a workaround for
> # http://lists.linutronix.de/pipermail/elbe-devel/2017-July/000541.html
> VIRT=$(shell test -x /usr/bin/systemd-detect-virt && /usr/bin/systemd-detect-virt)
> ifeq ($(VIRT), vmware)
> MACHINE?=pc-i440fx-2.6
> else
> MACHINE?=pc
> endif
> 
> Wasn't this workaround meant for stretch and not for jessie?

probably yes. I don't have a test setup for this.
Can you add a check for

'lsb_release -c' == stretch

to the Makefile.mako. And provide a patch for this?

Thanks,

  Manuel



More information about the elbe-devel mailing list