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
stty
command not executed
#90
Comments
Hi, thanks for reporting all of this. You can definitely use About stty both virtme-init and virtme-ng-init should call the same command, weird that you see different behaviors, I'm wondering if there's an issue with the path? Can you check where is the About
Do you have |
'virtme' is no longer maintained, we had to fork it to fix issues [1]. The new 'virtme-ng' brings fixes, new features, and performances improvement, especially for the disk IO [2]. Note that three workarounds are currently needed: - The new init in rust cannot be used [3]. - The .config needs to be removed [4]. - The whole rootfs is mounted in rw instead of only the workdir to be able to used virtiofs (faster) instead of 9p. But that's OK, our scripts are launched from a docker where only the workdir is mounted. Maybe even easier like that. There are new dependences, but it is still light. 'udev' has been added to avoid a warning, but I don't think we need it. Link: https://github.com/matttbe/virtme [1] Link: https://lwn.net/Articles/951313/ [2] Link: arighi/virtme-ng#90 [3] Link: https://github.com/arighi/virtme-ng/pulls/91 [4] Closes: multipath-tcp/mptcp_net-next#472 Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Thank you for your quick reply!
I had scripts using the old
From the docker, I have:
I guess it is correct, no? Please also note that if I run
(or it is disturbed somehow because
Good point, no I don't:
No worry then! |
Ah ok, if you have scripts that are using virtme-run it makes sense to keep using that, I want to maintain everything 100% backward compatible, so virtme-run will keep working as before (if it doesn't then it's a bug).
Yep, that seems correct. I'll investigate more.
It shouldn't be a problem, I'll investigate a bit.
Maybe we should just create /run if it doesn't exist? or redirect it to a different path? I'll think about it. |
And it's pretty cool to see that other projects are moving to virtme-ng, thanks for sharing this! 😄 |
Make sure to redirect stdout/stderr to the right console before applying the proper terminal settings via stty. Link: arighi/virtme-ng#90 Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Update the virtme-ng-init submodule to include the following fixes: - virtme-ng-init: properly configure terminal line settings - init: set the HOME env var if root This allows to fix issue #90. Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
@arighi yes, it fixes my issue in both the container and on my system! Thank you! |
Hello,
First, thank you for having continued the development of virtme. The new version is great, and the migration to it is not too difficult because the
virtme-*
commands are still there! (I hope it is OK to use them directly).I'm using vng 1.22 installed from pip, in a Docker with Ubuntu 23.10 as a base.
I used
virtme-configkernel
to generate the config. I built the kernel myself (because I want to do that in.virtme/build
dir, and build other stuff).Then I launched it: (I replaced the current dir with
${PWD}
to make it more readable)But the serial is difficult to use: max 80 chars, and then it goes back to the same line. It looks like the init program didn't do its job (but
initialization done
was printed):also, while at it, it looks like
XDG_RUNTIME_DIR
exists, but the directory doesn't exist:If I launch
virtme-run
with--no-virtme-ng-init
, it is better:Am I wrong launching
virtme-run
?The text was updated successfully, but these errors were encountered: