Giter VIP home page Giter VIP logo

Comments (9)

cloudbooster avatar cloudbooster commented on July 28, 2024

Thanks @enihcam for the feedback. ensure that you have serial console enabled https://docs.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-generic#general-linux-system-requirements in GRUB based on the distro ensure that getty is running in ttyS0 for login.

from azserialconsole.

enihcam avatar enihcam commented on July 28, 2024

@harijayms yes I know how to enable ttyS0 in GRUB, but for the kernel config, which flags should be enabled?

from azserialconsole.

asinn826 avatar asinn826 commented on July 28, 2024

@enihcam - did you get this solved? Let me know if you still have questions.

from azserialconsole.

enihcam avatar enihcam commented on July 28, 2024

@asinn826 Thanks for reply. To enable this feature, I need minimum required config flags for compiling a custom linux kernel. Can you put it into the doc? You can assume all required flags are disabled by default.

More info about kernel config:
https://linuxconfig.org/custom-kernels-in-ubuntu-debian-how-when-and-why

from azserialconsole.

asinn826 avatar asinn826 commented on July 28, 2024

@enihcam The way I'm interpreting your question is that you're trying to compile a custom kernel ultimately for image upload and usage in Azure, and you need to know how to configure it such that serial console works with your image. Correct me if I'm wrong.

What stage are you at in the process? I assume from the comments above you are aware that you can either pass options to the kernel 1) when building the kernel, 2) starting the kernel (via a bootloader), or 3) at runtime.

If you wanted to pass options to the kernel to enable serial console at runtime, you can do it via the bootloader (e.g. GRUB) and pass in the parameters console=ttyS0,115200n8 earlyprintk=ttyS0,115200 rootdelay=300. My understanding is that passing in kernel options at runtime (i.e. when the bootloader starts the kernel) is the recommended way of doing this.

Is that not feasible for you, and you would prefer to pass the options in at build time? Areyou able to share any more information about your situation? That would help me understand better.

from azserialconsole.

enihcam avatar enihcam commented on July 28, 2024

config.txt
You are right, my Azure VM runs my custom (minimized for web service) kernel. Here I attached the kernel config. Please let me know which flags should be enabled for using azure serial console. Thanks.

from azserialconsole.

asinn826 avatar asinn826 commented on July 28, 2024

@enihcam - I was digging around an Ubuntu VM on Azure, it looks like the config file is located at /boot/config-*. There are a lot of serial-related flags, some of which are:
CONFIG_MAGIC_SYSRQ_SERIAL=y
CONFIG_SERIAL_8250=y

Ultimately it might be worthwhile taking a look at the whole list of serial-related flags in the config file and seeing which ones are most relevant to your image. A min set of flags could be the 2 I pasted above, but I am not 100% sure.

from azserialconsole.

enihcam avatar enihcam commented on July 28, 2024

@asinn826 That's helpful. Thank you.
Maybe you can document this in public doc?

from azserialconsole.

asinn826 avatar asinn826 commented on July 28, 2024

@enihcam glad to hear that helped! Adding to the docs is a good idea, I'll put it in there. Closing for now but feel free to reopen this if any more questions.

from azserialconsole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.