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
Serial Port Access from Host #3
Comments
@giezi The way this is setup currently in only forwards stdin/out on Linux Lines 297 to 302 in 387e7f2
The other alternative would be to provide a separate tty, but I'd have to look into that. Let me know what you think. |
Hi @s-u Thank you for your fast answer. Sure, I understand, but we would like to place an "agent" in the macOS guest VM which is connecting to /dev/cu.virtio serial device. We have already modified the code so that OSX VMs also get a serial adapter :) But how can we access it from the host-system? Where does macosvm map the serial adapter from the VM? Best regards and thans again |
The code I referenced above registers the serial adapter connects it to the host-side file handles - as you can see the one above links it to stdin/out of the |
Hi @s-u Alright, thank you for your explanation! It would be ideal if it could be redirected to a normal TTY so that you could connect on the host OS using "screen /dev/tty.macosvm-vmname" for example, would this be possible? Many thanks, Reto |
Yes, that can be done, I'll look into it. |
@giezi I have made a few changes:
|
@s-u Amazing - it works perfectly :) Thank you SO MUCH!!! |
This is now in the release, so I'll close this, even though the setup of having to wait is still suboptimal. I have not seen a better solution just yet, but if anyone has a good idea, please feel free to open an issue. I'm not using this feature myself (since I just |
Thank you very much for the great application. I have seen that it has support for serial adapters in the code for Linux Guests. I have now released this code for macOS as well. In macOS I see /dev/cu.virtio device which is great. How can I access the serial adapter of the VM from the host OS (/dev/tty?)? Thanks a lot!
The text was updated successfully, but these errors were encountered: