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

Add a way to select which console to attach to #286

Closed
yrro opened this issue Jul 29, 2021 · 3 comments · Fixed by #403
Closed

Add a way to select which console to attach to #286

yrro opened this issue Jul 29, 2021 · 3 comments · Fixed by #403
Labels
enhancement New feature or request

Comments

@yrro
Copy link
Contributor

yrro commented Jul 29, 2021

I've got VMs that look like this:

    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <console type='pty'>
      <source path='/dev/pts/1'/>
      <target type='virtio' port='1'/>
      <alias name='console1'/>
    </console>

Cockpit and virsh console vmname connect to the first console.

virsh console vmname --device console1 connects to the second console. It would be nice if there was a menu that allowed me to pick the second console in cockpit-machines too.

@KKoukiou KKoukiou added the enhancement New feature or request label Jul 29, 2021
@KKoukiou KKoukiou linked a pull request Sep 29, 2021 that will close this issue
@KKoukiou
Copy link
Collaborator

@yrro I am on the way to implement a solution for that, but OOI what's the usecase of that, having multiple PTY consoles per VM?

@yrro
Copy link
Contributor Author

yrro commented Sep 29, 2021

It's not exactly a vital enhancement, but I find screen updates on the virtio-serial port are a bit less laggy.

But GRUB and other bootloaders can't use virtio-serial ports, so I ended up configuring an emulated serial console for disaster recovery, and a virtio-serial port for 'normal' use.

KKoukiou added a commit to KKoukiou/cockpit-machines that referenced this issue Nov 9, 2021
KKoukiou added a commit to KKoukiou/cockpit-machines that referenced this issue Nov 9, 2021
KKoukiou added a commit to KKoukiou/cockpit-machines that referenced this issue Nov 9, 2021
KKoukiou added a commit to KKoukiou/cockpit-machines that referenced this issue Nov 10, 2021
KKoukiou added a commit to KKoukiou/cockpit-machines that referenced this issue Nov 10, 2021
KKoukiou added a commit that referenced this issue Nov 10, 2021
@KKoukiou
Copy link
Collaborator

@yrro for your interest this feature request has been implemented and released in cockpit-machines 256 https://cockpit-project.org/blog/cockpit-257.html

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

Successfully merging a pull request may close this issue.

2 participants