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

Ubuntu VM fails to start applications on first attempt #8205

Closed
marmarek opened this issue May 12, 2023 · 17 comments · Fixed by QubesOS/qubes-core-agent-linux#426
Closed

Ubuntu VM fails to start applications on first attempt #8205

marmarek opened this issue May 12, 2023 · 17 comments · Fixed by QubesOS/qubes-core-agent-linux#426
Assignees
Labels
affects-4.1 This issue affects Qubes OS 4.1. C: core C: Debian/Ubuntu 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. r4.1-bookworm-stable r4.1-bullseye-stable r4.1-buster-stable r4.1-fc37-stable r4.1-fc38-stable r4.2-vm-bookworm-stable r4.2-vm-bullseye-stable r4.2-vm-centos-stream8-stable r4.2-vm-fc36-stable r4.2-vm-fc37-stable r4.2-vm-fc38-cur-test T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@marmarek
Copy link
Member

How to file a helpful issue

Qubes OS release

R4.2

Brief summary

When starting an application in a Ubuntu jammy VM that wasn't running already, the VM is started, but the application is not. Starting an application in already running VM works fine.

Steps to reproduce

  1. Ensure you have a Ubuntu jammy-based VM that is not running.
  2. Call qvm-run VMNAME gnome-terminal

Expected behavior

VM starts and gnome-terminal opens up.

Actual behavior

VM starts, but no application is started. qvm-run hangs. It seems to hang on the qubes.WaitForSession call.
On the process tree, under qubes.WaitForSession I see:

systemctl [email protected] --user --wait --quiet is-system-running
@marmarek marmarek added T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. C: Debian/Ubuntu P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. labels May 12, 2023
@marmarek marmarek added this to the Release 4.2 milestone May 12, 2023
@GWeck
Copy link

GWeck commented May 12, 2023

I observed a similar behavior with jammy on Qubes R4.1, and also for debian bookworm on R4.1. Might have the same cause????

@marmarek
Copy link
Member Author

I observed a similar behavior with jammy on Qubes R4.1, and also for debian bookworm on R4.1. Might have the same cause????

Very likely.

@fepitre
Copy link
Member

fepitre commented May 12, 2023

Tested fix QubesOS/qubes-core-agent-linux#426 on R4.2 on:

  • Debian 11
  • Debian 12 XFCE
  • Fedora 37
  • Ubuntu Jammy
  • Fedora 38 XFCE

@andrewdavidwong andrewdavidwong added diagnosed Technical diagnosis has been performed (see issue comments). pr submitted A pull request has been submitted for this issue. and removed needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. labels May 12, 2023
@qubesos-bot
Copy link

Automated announcement from builder-github

The package core-agent-linux has been pushed to the r4.2 testing repository for the Debian template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing bullseye-testing (or appropriate equivalent for your template version), then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package core-agent-linux has been pushed to the r4.2 testing repository for the Debian template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing bookworm-testing (or appropriate equivalent for your template version), then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package core-agent-linux has been pushed to the r4.2 testing repository for the CentOS centos-stream8 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.2-current-testing

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The component core-agent-linux (including package core-agent-linux) has been pushed to the r4.2 testing repository for the Fedora template.
To test this update, please install it with the following command:

sudo dnf update --enablerepo=qubes-vm-r4.2-current-testing

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The component core-agent-linux (including package core-agent-linux) has been pushed to the r4.2 testing repository for the Fedora template.
To test this update, please install it with the following command:

sudo dnf update --enablerepo=qubes-vm-r4.2-current-testing

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The component core-agent-linux (including package core-agent-linux) has been pushed to the r4.2 testing repository for the Fedora template.
To test this update, please install it with the following command:

sudo dnf update --enablerepo=qubes-vm-r4.2-current-testing

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package core-agent-linux has been pushed to the r4.2 stable repository for the CentOS centos-stream8 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The component core-agent-linux (including package core-agent-linux) has been pushed to the r4.2 stable repository for the Fedora template.
To install this update, please use the standard update command:

sudo dnf update

Changes included in this update

@maltesl
Copy link

maltesl commented Jun 26, 2023

I can confirm that this issue is also present on R4.1 with Debian bookworm, and that QubesOS/qubes-core-agent-linux@41e6458 fixes it. However it seems like that patch was only applied to the R4.2 branch. Can it also be applied to R4.1?

@marmarek marmarek added the backport pending On closed issues, indicates fix released for newer version will be backported to older version. label Jun 27, 2023
@andrewdavidwong andrewdavidwong added the affects-4.1 This issue affects Qubes OS 4.1. label Aug 8, 2023
marmarek pushed a commit to QubesOS/qubes-core-agent-linux that referenced this issue Aug 24, 2023
@qubesos-bot
Copy link

Automated announcement from builder-github

The package qubes-core-agent_4.1.45-1 has been pushed to the r4.1 testing repository for the Debian template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing buster-testing (or appropriate equivalent for your template version), then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package qubes-core-agent_4.1.45-1+deb10u1 has been pushed to the r4.1 stable repository for the Debian template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@marmarek marmarek removed the backport pending On closed issues, indicates fix released for newer version will be backported to older version. label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.1 This issue affects Qubes OS 4.1. C: core C: Debian/Ubuntu 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. r4.1-bookworm-stable r4.1-bullseye-stable r4.1-buster-stable r4.1-fc37-stable r4.1-fc38-stable r4.2-vm-bookworm-stable r4.2-vm-bullseye-stable r4.2-vm-centos-stream8-stable r4.2-vm-fc36-stable r4.2-vm-fc37-stable r4.2-vm-fc38-cur-test 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.

6 participants