[elbe-devel] mount problem when creating initvm (was: elbe initvm attach -> login does not work after upgrading from 1.1 to 1.2 stable)

Lukasz Walewski lwalewski at s-can.at
Wed Dec 13 10:25:57 CET 2017


>-----Ursprüngliche Nachricht-----
>Von: Manuel Traut [mailto:manuel.traut at linutronix.de]
>Gesendet: Mittwoch, 13. Dezember 2017 06:21
>An: Lukasz Walewski
>Cc: elbe-devel at linutronix.de
>Betreff: Re: [elbe-devel] elbe initvm attach -> login does not work
>
>> However, the whole "initvm create" fails on the partitioning stage,
>which is probably unrelated to the selection of the VM type:
>>
>> ...
>> Starting up the partitioner  ... 13%... 22%... 31%... 40%... 50%...
>63%... 72%... 81%... 90%... 100%
>> Guided partitioning  ... 20%... 40%... 60%... 80%
>> Partitions formatting  ... 33%
>> Partition disks
>> ---------------
>>
>> The attempt to mount a file system with type ext3 in Virtual disk 1,
>partition
>> #1 (vda1) at / failed.
>>
>> You may resume partitioning from the partitioning menu.
>> Do you want to resume partitioning?
>>   1: Yes [*]  2: No
>> Prompt: '?' for help, default=1>
>>
>> Any hints how to fix this?
>
>The problem is in the debian installer, if you answer the question with
>No and go to a shell:
>
>~ # insmod /lib/modules/3.16.0-4-amd64/kernel/fs/ext4/ext4.ko
>insmod: ERROR: could not insert module /lib/modules/3.16.0-4-
>amd64/kernel/fs/ext4/ext4.ko: Unknown symbol in module

Hmm... interesting... The installer tries to mount /dev/vda1 as ext3, but ext3 fs type support doesn't seem to be there - at least not as a module:

~ # ls -l /lib/modules/3.16.0-4-amd64/kernel/fs
drwxr-xr-x    2 root     root             0 Dec 12 19:41 btrfs
drwxr-xr-x    2 root     root             0 Dec 12 19:41 ext4
drwxr-xr-x    2 root     root             0 Dec 12 19:41 fat
drwxr-xr-x    2 root     root             0 Dec 12 19:41 isofs
drwxr-xr-x    2 root     root             0 Dec 12 19:41 jbd2
drwxr-xr-x    2 root     root             0 Dec 12 19:41 jfs
-rw-r--r--    1 root     root         20576 Dec  4 03:36 mbcache.ko
drwxr-xr-x    2 root     root             0 Dec 12 19:41 nls
drwxr-xr-x    2 root     root             0 Dec 12 19:41 xfs

~ # find /lib/modules/3.16.0-4-amd64 -name "ext4*"
/lib/modules/3.16.0-4-amd64/kernel/fs/ext4
/lib/modules/3.16.0-4-amd64/kernel/fs/ext4/ext4.ko
~ # find /lib/modules/3.16.0-4-amd64 -name "ext3*"
~ #

Why are you trying to use the ext4.ko? - Does it contain also the ext3 implementation?

>The installer is provided by the 'elbe-bootstrap' package. Probably
>Debian uses a new kernel in Debian 8.10 released on 9th of December.

That sounds plausible. I created my current initvm on 28.11.2017 (judging from the mtimes). When I tried to recreate it yesterday on exactly same machine and without having it apt-upgraded (i.e. nothing should have changed at my end), I got the above mount error.

>So the old Kernel provided by elbe-bootstrap is not able to load the 'newer' kernel
>modules downloaded from the configured primary mirror.

Yes, it seems to be exactly the case (excerpt from dmesg upon inserting the ext4.ko):

[47586.975741] ext4: Unknown symbol jbd2_complete_transaction (err 0)
[47586.975762] ext4: Unknown symbol mb_cache_create (err 0)
[47586.975793] ext4: Unknown symbol jbd2_journal_forget (err 0)
[47586.975798] ext4: Unknown symbol jbd2_journal_stop (err 0)
[47586.975806] ext4: Unknown symbol jbd2_journal_restart (err 0)
[47586.975821] ext4: Unknown symbol jbd2_journal_load (err 0)
[47586.975825] ext4: Unknown symbol jbd2_journal_check_available_features (err 0)
[47586.975833] ext4: Unknown symbol jbd2_journal_set_features (err 0)
[47586.975839] ext4: Unknown symbol mb_cache_shrink (err 0)
[47586.975841] ext4: disagrees about version of symbol perf_trace_buf_prepare
and so on...

Moreover, the kernel has problems recognizing the partition table (at boot time):

[   80.019580]  vda: unknown partition table

Maybe having the elbe-bootstrap package updated would (temporarily) solve the problem?

Best,
Lukasz


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

[http://www.s-can.at/disclaimer/scan_industrial.jpg]

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

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



More information about the elbe-devel mailing list