Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fedora-38-xfce fails to start with in-vm kernel and HVM virt_mode #8540

Open
marmarek opened this issue Sep 21, 2023 · 1 comment · May be fixed by QubesOS/qubes-core-agent-linux#457
Open
Labels
affects-4.2 This issue affects Qubes OS 4.2. C: Fedora diagnosed Technical diagnosis has been performed (see issue comments). P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. pr submitted A pull request has been submitted for this issue. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@marmarek
Copy link
Member

Observation

openQA test in scenario qubesos-4.2-update-x86_64-system_tests_pvgrub_salt_storage@64bit fails in
TC_41_HVMGrub_fedora-38-xfce

# test_000_standalone_vm
# error: 

# timestamp 2023-09-19T07:04:30.840577
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/qubes/vm/qubesvm.py", line 1723, in start_qrexec_daemon
    await self.start_daemon(
  File "/usr/lib/python3.11/site-packages/qubes/vm/qubesvm.py", line 1696, in start_daemon
    raise subprocess.CalledProcessError(p.returncode, command,
subprocess.CalledProcessError: Command '['runuser', '-u', 'user', '--', '/usr/sbin/qrexec-daemon', '-q', '22', 'test-inst-vm1', 'user']' returned non-zero exit status 3.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/qubes/tests/integ/grub.py", line 109, in test_000_standalone_vm
    self.loop.run_until_complete(self.testvm1.start())
  File "/usr/lib64/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/qubes/vm/qubesvm.py", line 1253, in start
    await self.start_qrexec_daemon()
  File "/usr/lib/python3.11/site-packages/qubes/vm/qubesvm.py", line 1728, in start_qrexec_daemon
    raise qubes.exc.QubesVMError(
qubes.exc.QubesVMError: Cannot connect to qrexec agent for 120 seconds, see /var/log/xen/console/guest-test-inst-vm1.log for details

Similar test using PVH boot mode passes.

Reproducible

Fails since (at least) Build 2023081504-4.2

Expected result

Last good: 2023080804-4.2 (or more recent)

Further details

Always latest result in this scenario: latest

I suspect it's related to initramfs size - it's 61MB compressed. The difference between PVH and HVM can probably be explained with more memory used for some devices (videoram) and bookkeeping on Xen side - which is subtracted from VM memory.

Similar issue was happening in Debian: #8277

@marmarek marmarek added T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. C: Fedora affects-4.2 This issue affects Qubes OS 4.2. labels Sep 21, 2023
@marmarek
Copy link
Member Author

It does not affect fedora-37 on R4.1. I haven't checked fedora-38 on R4.1, so I'm not sure yet whether it's about R4.1 vs R4.2, or fedora-37 vs fedora-38.

marmarek added a commit to marmarek/qubes-core-agent-linux that referenced this issue Sep 21, 2023
@andrewdavidwong andrewdavidwong added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. diagnosed Technical diagnosis has been performed (see issue comments). pr submitted A pull request has been submitted for this issue. labels Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.2 This issue affects Qubes OS 4.2. C: Fedora diagnosed Technical diagnosis has been performed (see issue comments). P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. pr submitted A pull request has been submitted for this issue. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants