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

qm subpackage - qm_mount_bind_tty7 (XServer or Wayland) #590

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

dougsland
Copy link
Collaborator

/dev/tty7 is typically the virtual terminal associated with the graphical user interface (GUI) on Linux systems. It is where the X server or the Wayland display server usually runs, handling the graphical display, input, and windowing environment. When you start a graphical session (such as GNOME, KDE, etc.), it usually runs on this virtual console. This patch mount bind /dev/tty7 to QM container and also to the nested containers.

Just run: make qm_dropin_mount_bind_tty7

@dougsland
Copy link
Collaborator Author

@aesteve-rh fav. topic for sure. ;-)

@dougsland
Copy link
Collaborator Author

dougsland commented Oct 3, 2024

$ git clone https://github.com/containers/qm.git
$ cd qm
$ make qm_dropin_mount_bind_tty7
$ cd rpmbuild/RPMS/noarch/
$ sudo  dnf install qm*
Fedora 40 - x86_64 - Updates                                                                     59 kB/s |  29 kB     00:00
Fedora 40 - x86_64 - Updates                                                                    1.6 MB/s | 1.8 MB     00:01
Fedora 40 - x86_64 - Test Updates                                                                80 kB/s |  15 kB     00:00
Dependencies resolved.
================================================================================================================================
 Package                             Architecture            Version                        Repository                     Size
================================================================================================================================
Installing:
 qm                                  noarch                  1.1-1.fc40                     @commandline                   55 k
 qm_mount_bind_tty7                  noarch                  1.1-1.fc40                     @commandline                  7.5 k

Transaction Summary
================================================================================================================================
Install  2 Packages

Total size: 63 k
Installed size: 100 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                        1/1
  Installing       : qm-1.1-1.fc40.noarch                                                                                   1/2
  Running scriptlet: qm-1.1-1.fc40.noarch                                                                                   1/2
  Installing       : qm_mount_bind_tty7-1.1-1.fc40.noarch                                                                   2/2
  Running scriptlet: qm_mount_bind_tty7-1.1-1.fc40.noarch                                                                   2/2

Installed:
  qm-1.1-1.fc40.noarch                                   qm_mount_bind_tty7-1.1-1.fc40.noarch

Complete!

$ sudo podman exec -it qm bash
bash-5.2# ls /dev/tty7
/dev/tty7
bash-5.2#

Now testing under nested container:
=================================
bash-5.2# podman run -it fedora
Resolved "fedora" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull registry.fedoraproject.org/fedora:latest...
Getting image source signatures
Copying blob e21a6234d667 done   |
Copying config f2c5e23817 done   |
Writing manifest to image destination
[root@ac42a432911a /]# ls /dev/tty7
/dev/tty7
[root@ac42a432911a /]#

@dougsland
Copy link
Collaborator Author

CI/CD issue not related to the patch, we need to figure out what's going on in a following patch.

        ++ systemctl is-enabled qm
        + QM_STATUS=generated
        + '[' generated == generated ']'
        ++ systemctl is-active qm
        + '[' inactive == active ']'
        + test -d /var/qm -a -d /etc/qm
        + info_message 'QM Enabled and not Active'
        + '[' -z 'QM Enabled and not Active' ']'
        + BLUE='\033[94m'
        + ENDCOLOR='\033[0m'
        + echo -e '[ \033[94mINFO\033[0m  ] QM Enabled and not Active'
        + info_message ==============================
        + '[' -z ============================== ']'
        + BLUE='\033[94m'
        + ENDCOLOR='\033[0m'
        + echo -e '[ \033[94mINFO\033[0m  ] =============================='
        + exit 1
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/dev/tty7 is typically the virtual terminal associated
with the graphical user interface (GUI) on Linux systems.
It is where the X server or the Wayland display server usually runs,
handling the graphical display, input, and windowing environment.
When you start a graphical session (such as GNOME, KDE, etc.),
it usually runs on this virtual console. This patch mount bind
/dev/tty7 to QM container and also to the nested containers.

Just run: make qm_dropin_mount_bind_tty7

Signed-off-by: Douglas Schilling Landgraf <[email protected]>
Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
@dougsland dougsland merged commit 2ab9dbe into main Oct 3, 2024
5 of 10 checks passed
@dougsland dougsland deleted the bindtty branch October 3, 2024 12:40
@Yarboa
Copy link
Collaborator

Yarboa commented Oct 14, 2024

/packit test

@Yarboa
Copy link
Collaborator

Yarboa commented Oct 14, 2024

/packit build test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants