Comments (9)
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.
@harijayms yes I know how to enable ttyS0 in GRUB, but for the kernel config, which flags should be enabled?
from azserialconsole.
@enihcam - did you get this solved? Let me know if you still have questions.
from azserialconsole.
@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.
@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.
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.
@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.
@asinn826 That's helpful. Thank you.
Maybe you can document this in public doc?
from azserialconsole.
@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)
- Repeating char at the end of line before line break HOT 1
- BREAKING CHANGE: Serial Console service URLs have changed
- Azure Serial Console V2
- Serial Console IPs for DoD/USGov regions? HOT 1
- ANNOUNCEMENT: Serial Console V1 Deprecation
- Looking for YOUR feedback! HOT 5
- Serial-console fails for systems in eastus HOT 3
- Suggestion: Windows - Full shell experience. HOT 1
- This repo is missing a LICENSE file
- This repo is missing important files HOT 1
- Systemctl status or any systemctl command that uses pager does not use the whole serial console size of the window HOT 1
- Does enabling the Serial Console functionality for Windows Server from the Azure portal restart VM? HOT 1
- Enable serial console when using managed boot diagnostic storage account HOT 3
- Linux VM Serial Console Error HOT 1
- Documentation related to management of storage account for custom storage boot diagnostics HOT 2
- Serial console does not connect on new 2vcpu Dsv5 machine type HOT 3
- KNOWN ISSUE: Azure Serial Console connectivity issues with certain Azure v5 series Virtual Machines HOT 9
- Any way to disable the timeout on serial consoles? HOT 4
- serial console issue. HOT 1
- Doc missing for Serial Console url whitelist HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azserialconsole.