Skip to content

Comments

Add interactive launch mode.#48

Merged
slp merged 2 commits intoAsahiLinux:mainfrom
WhatAmISupposedToPutHere:interactive
Dec 3, 2024
Merged

Add interactive launch mode.#48
slp merged 2 commits intoAsahiLinux:mainfrom
WhatAmISupposedToPutHere:interactive

Conversation

@WhatAmISupposedToPutHere
Copy link
Collaborator

After launching a process via the server, krun immediately closes and the
launched process' std{in,out,err} go nowhere. Add a --interactive flag that
allocates a pseudo-terminal, routes it to the host and connects to it.

Somewhat like '-it' in docker/podman exec.

@teohhanhui
Copy link
Collaborator

@WhatAmISupposedToPutHere Judging from the commit history, does this PR depend on #47? That's still in draft status anyway.

@WhatAmISupposedToPutHere
Copy link
Collaborator Author

Technically yes, but i am not super sure why that one is marked as draft.

@slp
Copy link
Collaborator

slp commented Nov 28, 2024

I think we should get this one merged for the next release. Can you please rebase it?

Unconditionally forward a range of ports to sockets named
`$XDG_RUNTIME_DIR/krun/socket/port-$PORT`. This allows applications to
dynamically bind to sockets at those paths and have them forwarded to
the guest as vsock ports, after the krun VM is already running.

The port range is currently hardcoded as 50000..50200.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
After launching a process via the server, krun immediately closes and the
launched process' std{in,out,err} go nowhere. Add a --interactive flag that
allocates a pseudo-terminal, routes it to the host and connects to it.

Somewhat like '-it' in docker/podman exec.

Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
Copy link
Collaborator

@slp slp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested, thanks!

@slp slp merged commit a04c1ba into AsahiLinux:main Dec 3, 2024
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.

4 participants