Skip to content

KVM denied permissions breaking tree and pre-submit #170529

Closed

Description

@vashworth

This user doesn't have permissions to use KVM

D0612 07:56:12.736733   31001 main-common.c:1415] CPU Acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
The KVM line in /etc/group is: [kvm:x:993:]

If the current user has KVM permissions,
the KVM line in /etc/group should end with ":" followed by your username.

If we see LINE_NOT_FOUND, the kvm gr
D0612 07:56:12.736741   31001 main-common.c:1428] handleCpuAcceleration: feature check for hvf
C 07:58:12.704  120.080s Main  Timed out. Dumping threads.
C 07:58:12.704  120.081s Main  ********************************************************************************
C 07:58:12.704  120.081s Main  Stack dump for thread 'TimeoutThread-1-for-MainThread'
C 07:58:12.704  120.081s Main  ********************************************************************************
C 07:58:12.705  120.082s Main  File: "/home/chrome-bot/.cache/vpython-root.1000/store/cpython+tkj8tpr2n0oj8m0t270p0m71s0/contents/lib/python3.8/threading.py", line 890, in _bootstrap
C 07:58:12.705  120.082s Main    self._bootstrap_inner()
C 07:58:12.705  120.082s Main  File: "/home/chrome-bot/.cache/vpython-root.1000/store/cpython+tkj8tpr2n0oj8m0t270p0m71s0/contents/lib/python3.8/threading.py", line 932, in _bootstrap_inner
C 07:58:12.705  120.082s Main    self.run()
C 07:58:12.705  120.082s Main  File: "/b/s/w/ir/cache/avd/src/third_party/catapult/devil/devil/utils/reraiser_thread.py", line 123, in run
C 07:58:12.705  120.082s Main    self._ret = self._func(*self._args, **self._kwargs)
C 07:58:12.705  120.082s Main  File: "/b/s/w/ir/cache/avd/src/third_party/catapult/devil/devil/utils/timeout_retry.py", line 156, in <lambda>
C 07:58:12.705  120.082s Main    lambda: func(*args, **kwargs), name=thread_name)
C 07:58:12.705  120.082s Main  File: "/b/s/w/ir/cache/avd/src/build/android/pylib/local/emulator/avd.py", line 1180, in listen_for_serial
C 07:58:12.705  120.082s Main    with contextlib.closing(s.accept()[0]) as conn:
C 07:58:12.705  120.082s Main  File: "/home/chrome-bot/.cache/vpython-root.1000/store/cpython+tkj8tpr2n0oj8m0t270p0m71s0/contents/lib/python3.8/socket.py", line 292, in accept
C 07:58:12.705  120.082s Main    fd, addr = self._accept()
C 07:58:12.705  120.082s Main  ********************************************************************************

https://ci.chromium.org/ui/p/flutter/builders/try/Linux_android_emu%20android_engine_opengles_tests/10332/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Linux_android_emu%20android_defines_test/5643/overview

Activity

  1. added
    team-infraOwned by Infrastructure team
    team-androidOwned by Android platform team
    P0Critical issues such as a build break or regression
    on Jun 12, 2025
  2. vashworth commented on Jun 12, 2025

    @vashworth
    ContributorAuthor

    Not sure which team it's supposed to go to (android or infra) soooo I assigned both 😬

  3. vashworth commented on Jun 12, 2025

    @vashworth
    ContributorAuthor

    It does not appear to be tied to a specific commit or device

  4. self-assigned this
    on Jun 12, 2025
  5. matanlurey commented on Jun 12, 2025

    @matanlurey
    Contributor

    Some advice from the Chromium folks:

    you need to roll your image forward

    also that avd is checking that the user is in the kvm group but that isnt a valid test here since the kvm device is mode 666 in our environment meaning any user can use it

    i did a workaround and specifically added chrome-bot to kvm for you to satisfy avd.py

    that image probably built but needs to be promoted from dev to prod

    usually by an autoroller or possibly by humans

    https://ci.chromium.org/ui/p/infra-internal/builders/prod/ccompute-dart-noble64/b8712416810236632737/infra

    https://logs.chromium.org/logs/infra-internal/buildbucket/cr-buildbucket/8712416810236632737/+/u/create_image/stdout you can see the kvm changes

    I2025-06-10 22:31:20:309] Notice: /Stage[main]/Chrome_infra::Setup::Kvm/Exec[setup::kvm::group_kvm_membership_chrome-bot]/returns: executed successfully

    https://ci.chromium.org/ui/p/infra-internal/builders/prod/ccompute-dart-image-autoroller

    https://source.corp.google.com/h/chromium/infra/infra_superproject/+/main:data/config/images/dart/noble/

    dev is being updated but prod isnt

  6. matanlurey commented on Jun 12, 2025

    @matanlurey
    Contributor

    I'm proposing manually promoting to prod, but unfortunately need to wait until someone with OWNERS can approve it:

    https://chrome-internal-review.googlesource.com/c/infradata/config/+/8345177

  7. jtmcdole commented on Jun 13, 2025

    @jtmcdole
    Member

    I'm proposing manually promoting to prod, but unfortunately need to wait until someone with OWNERS can approve it:

    This lead to #170588

  8. jmagman commented on Jun 13, 2025

    @jmagman
    Member

    linux_android_emulator_tests were moved to bring-up to reopen the tree due to this issue #170607.

    This build should be moved out of bringup when the kvm issue is resolved.

  9. added a commit that references this issue on Jun 13, 2025
  10. jtmcdole commented on Jun 13, 2025

    @jtmcdole
    Member

    linux_android_emulator_tests were moved to bring-up to reopen the tree due to this issue #170607.

    This build should be moved out of bringup when the kvm issue is resolved.

    Correct; we hope that's on Monday when a new image is built and rolled out. I believe the "chrome-bot" account that our tests run under was removed from some groups by the chrome infra folks for security reasons. If that's the case; the avd.py script needs to see that "other" can access the KVM with read/write permissions and call it a day.

  11. 3 remaining items

  12. matanlurey commented on Jun 17, 2025

    @matanlurey
    Contributor

    It looks like dart-noble-25061500-76ad3674849 passed today:
    https://ci.chromium.org/ui/p/dart-internal/builders/ci/dart-sdk-linux-noble-experimental/235/overview

    I am guessing that means we'll start using the new KDE-fixed image soonish/this week?

  13. matanlurey commented on Jun 17, 2025

    @matanlurey
    Contributor

    Every bot in the try pool (as far as I can see) is now using this image:

    https://chromium-swarm.appspot.com/botlist?c=id&c=task&c=image&c=os&c=status&d=asc&f=pool%3Aluci.flutter.try&f=os%3ALinux&k=os&s=id

    I am reducing to P1 to keep monitoring and I'll give another update sometime next week.

  14. added
    P1High-priority issues at the top of the work list
    and removed
    P0Critical issues such as a build break or regression
    on Jun 17, 2025
  15. matanlurey commented on Jun 23, 2025

    @matanlurey
    Contributor

    I am marking this closed - I haven't seen a recurrence since the new image rolled out.

  16. github-actions commented on Jul 7, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  17. locked as resolved and limited conversation to collaborators on Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listinfra: chromiumteam-infraOwned by Infrastructure teamtriaged-infraTriaged by Infrastructure team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions