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

Lukasz Walewski lwalewski at s-can.at
Fri Sep 8 16:54:26 CEST 2017


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?

Best,
Lukasz



>-----Ursprüngliche Nachricht-----
>Von: elbe-devel [mailto:elbe-devel-bounces at linutronix.de] Im Auftrag von
>Erdrich, Frank
>Gesendet: Montag, 3. Juli 2017 09:28
>An: ElbeDevel_at_Linuxtronix
>Betreff: Re: [elbe-devel] elbe initvm attach -> login does not work
>after upgrading from 1.1 to 1.2 stable
>
>Hello,
>
>the actual qemu has a bug that induces that error.
>A quick fix is to edit the Makefile in the initvm folder and change the
>Machine-Type from pc to pc-i440fx-2.6. pc itself defaults to pc-i440fx-
>2.7 which introduced the error.
>
>See also https://bugs.launchpad.net/qemu/+bug/1636217
>
>
>Best Regards
>Frank Erdrich
>Software Engineer
>emtrion GmbH
>Kreativpark - Alter Schlachthof 45
>76131 Karlsruhe
>GERMANY
>Phone +49 721 62725-0
>Fax +49 721 62725-19
>E-mail Frank.Erdrich at emtrion.de
>http://www.emtrion.de
>
>-----Ursprüngliche Nachricht-----
>Von: elbe-devel [mailto:elbe-devel-bounces at linutronix.de] Im Auftrag von
>Lukasz Walewski
>Gesendet: Montag, 3. Juli 2017 09:15
>An: ElbeDevel_at_Linuxtronix
>Betreff: [elbe-devel] elbe initvm attach -> login does not work after
>upgrading from 1.1 to 1.2 stable
>
>Hi,
>
>After upgrading elbe from ver 1.1 to 1.2 from the stable distribution
>(appeared after this weekend):
>
>deb http://debian.linutronix.de/elbe jessie main
>
>on Debian 8.8 (jessie) my existing initvm does not show the login prompt
>anymore when I attach to it using "elbe initvm attach":
>
>$ elbe initvm attach
>kvm -M pc \
>        -device virtio-rng-pci \
>        -drive file=buildenv.img,if=virtio,bus=1,unit=0 \
>        -no-reboot \
>        -net nic,vlan=1,model=virtio,macaddr="66:3b:78:e3:30:ea" \
>        -net user,vlan=1 \
>        -redir tcp:7587::7588 \
>        -m 1024 \
>        -usb \
>        -nographic \
>        -smp `nproc`
>
>[login: not present]
>
>The fresh install of the 1.9.24 version from the testing distribution:
>
>deb http://debian.linutronix.de/elbe-testing stretch main
>
>on Debian 9.0 (stretch) behaves the same way. How can I connect to the
>initvm using recent versions of elbe?
>
>Best regards,
>Lukasz
>
>
>----------------------------------------
>
>scan Messtechnik GmbH
>Brigittagasse 22-24
>A-1200 Wien/Vienna
>tel. +43 1 219 73 93 - 0
>fax +43 1 219 73 93 - 12
>http://www.s-can.at
>office at s-can.at
>
>Geschaeftsfuehrer/President: DI Andreas Weingartner
>Firmenbuchnummer/Incorporation No: FN178880i Gerichtsstand/Court of
>Jurisdiction: Wien/Vienna
>
>----------------------------------------
>
>s::can - intelligent, optical, online
>
>i::scan - compact, precise and affordable!
>UV254::NTU::FTU::TOC::DOC::COD::BOD::Colour ...and many more to come!
>http://www.i-scan.at
>----------------------------------------
>"YES WE SCAN !"
>
>_______________________________________________
>elbe-devel mailing list
>elbe-devel at linutronix.de
>https://lists.linutronix.de/mailman/listinfo/elbe-devel
>
>emtrion GmbH
>Kreativpark - Alter Schlachthof 45
>76131 Karlsruhe
>GERMANY
>http://www.emtrion.de
>_______________________________________
>
>Amtsgericht Mannheim
>HRB 110 300
>Geschäftsführer: Dieter Baur, Ramona Maurer
>_______________________________________
>
>_______________________________________________
>elbe-devel mailing list
>elbe-devel at linutronix.de
>https://lists.linutronix.de/mailman/listinfo/elbe-devel


----------------------------------------

scan Messtechnik GmbH
Brigittagasse 22-24
A-1200 Wien/Vienna
tel. +43 1 219 73 93 - 0
fax +43 1 219 73 93 - 12
http://www.s-can.at
office at s-can.at

Geschaeftsfuehrer/President: DI Andreas Weingartner
Firmenbuchnummer/Incorporation No: FN178880i
Gerichtsstand/Court of Jurisdiction: Wien/Vienna

----------------------------------------

s::can - intelligent, optical, online

i::scan - compact, precise and affordable!
UV254::NTU::FTU::TOC::DOC::COD::BOD::Colour ...and many more to come!
http://www.i-scan.at
----------------------------------------
"YES WE SCAN !"



More information about the elbe-devel mailing list