Can't login to VM after upgrade to fedora 26

172 views
Skip to first unread message

nicholas roveda

unread,
Oct 13, 2017, 1:37:29 AM10/13/17
to qubes-users
I've upgraded a fedora-25 template in R4.0 rc1/current-testing to fedora-26 and now the VM stops at login(tty1).
It doesn't let me login as 'user', but only as root and after few seconds being root, the VM shutdowns.

Upgrade commands:
`sudo dnf clean all`
`sudo dnf --best --allowerasing --releasever=26 distro-sync`

Is there any way to fix the Template?
And what about the trimming, since `qvm-trim-template` is gone?

Marek Marczykowski-Górecki

unread,
Oct 13, 2017, 9:57:19 AM10/13/17
to nicholas roveda, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, Oct 12, 2017 at 10:37:29PM -0700, nicholas roveda wrote:
> I've upgraded a fedora-25 template in R4.0 rc1/current-testing to fedora-26 and now the VM stops at login(tty1).
> It doesn't let me login as 'user', but only as root and after few seconds being root, the VM shutdowns.
>
> Upgrade commands:
> `sudo dnf clean all`
> `sudo dnf --best --allowerasing --releasever=26 distro-sync`

Do you remember what packages got removed? I guess you removed
qubes-core-agent during the process. Do you have enabled current-testing
repository permanently (enabled=1 in /etc/yum.repos.d/...)? If not,
the above command lack --enablerepo=qubes*current-testing

In any case, there is also prebuilt fedora-26 template available, you
can install it with qubes-dom0-update qubes-template-fedora-26.

You can see list of templates here:
https://yum.qubes-os.org/r4.0/templates-itl/rpm/
https://yum.qubes-os.org/r4.0/templates-community/rpm/

> Is there any way to fix the Template?
> And what about the trimming, since `qvm-trim-template` is gone?

It isn't needed anymore, thanks to LVM thin provisioning.
You may want to call `fstrim -v /` in the template after updating.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJZ3zTnAAoJENuP0xzK19cs5TEH/i1rfyv1tWf3YnyIM0eRz/Lk
VU8iIo8yQI3azIuIB3nW56whMY1ZERDkBMnxwnR1wSopr9iU2GB0cU2jjMvrJS8U
s3c8ydJR8eP9ZYyETavhup555EC38WQi6Iet4rdTHDBcM2ugdlBY5BjWsg52BFrP
enQMpFRTj5wQRdiE0/4eeCOPQ/vz3fGMqeFCmUxvHbyJ2aaKXlIWxTDsu8CmUvdA
seLCk1L8TqNF1cXN021k9jYe9A5Iz60zRjTdqB4vlZ19afySVNg17x6l4ndS/r/q
nUUOXd9PvKFqH58+yJGTQL5vNkRyufzUW6vbkLr+xcww2hRmbOEQQ/f1R3zsm6w=
=/Ket
-----END PGP SIGNATURE-----

Andrew Morgan

unread,
Nov 15, 2017, 5:10:46 PM11/15/17
to qubes...@googlegroups.com
On 10/13/2017 06:57 AM, Marek Marczykowski-Górecki wrote:
> On Thu, Oct 12, 2017 at 10:37:29PM -0700, nicholas roveda wrote:
>> I've upgraded a fedora-25 template in R4.0 rc1/current-testing to fedora-26 and now the VM stops at login(tty1).
>> It doesn't let me login as 'user', but only as root and after few seconds being root, the VM shutdowns.
>
>> Upgrade commands:
>> `sudo dnf clean all`
>> `sudo dnf --best --allowerasing --releasever=26 distro-sync`
>
> Do you remember what packages got removed? I guess you removed
> qubes-core-agent during the process. Do you have enabled current-testing
> repository permanently (enabled=1 in /etc/yum.repos.d/...)? If not,
> the above command lack --enablerepo=qubes*current-testing
>
> In any case, there is also prebuilt fedora-26 template available, you
> can install it with qubes-dom0-update qubes-template-fedora-26.
>
> You can see list of templates here:
> https://yum.qubes-os.org/r4.0/templates-itl/rpm/
> https://yum.qubes-os.org/r4.0/templates-community/rpm/
>
>> Is there any way to fix the Template?
>> And what about the trimming, since `qvm-trim-template` is gone?
>
> It isn't needed anymore, thanks to LVM thin provisioning.
> You may want to call `fstrim -v /` in the template after updating.
>
>

To follow up to this, I'm also trying to upgrade from Fedora 25 to 26,
but on Qubes R3.2.

Using:
`sudo dnf --releasever=26 --setopt=cachedir=/mnt/removeable distro-sync
--allowerasing --best --enablerepo=qubes*current-testing`

Everything looks good besides the Removing section:

Removing:
kernel-core x86_64 4.13.5-100.fc25
@updates
55 M
kernel-debug-devel x86_64 4.13.5-100.fc25
@updates
44 M
kernel-devel x86_64
1000:4.4.31-11.pvops.qubes
@qubes-vm-r3.2-current 38 M
libkdcraw x86_64 15.08.3-3.fc24
@fedora
402 k
mysql-workbench-community x86_64 6.3.8-1.fc23
@@commandline
182 M
qubes-gui-vm x86_64 3.2.18-1.fc25
@qubes-vm-r3.2-current
140 k
yum-utils noarch 1.1.31-511.fc25
@fedora
334 k

Removing qubes-gui-vm looks like something I don't want to do... Also
what about the old kernels? Do they matter at all since kernels are
typically provided by dom0 anyways?

Thanks,
Andrew Morgan

signature.asc

Daniel Moerner

unread,
Nov 16, 2017, 9:51:33 AM11/16/17
to qubes-users
Hi,

qubes-gui-vm needs to be rebuilt against the newer version of pulseaudio. This should be fixed as of commit 4cf2d11 in qubes-gui-agent-linux, but it looks like it still needs to be built and pushed to the repositories.

Fixing this is important because --allowerasing is needed for some updates from Fedora 25 to Fedora 26 because of this upstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1467060.

Best,
Daniel

Reply all
Reply to author
Forward
0 new messages