{"id":15003519,"url":"https://github.com/tur11ng/linux-kernel-devcontainer","last_synced_at":"2025-10-30T11:30:26.210Z","repository":{"id":254643409,"uuid":"847007118","full_name":"tur11ng/linux-kernel-devcontainer","owner":"tur11ng","description":"A Devcontainer for VSCode dedicated for Linux kernel development and running inside a qemu instance and debugging from the ease of the VSCode debugger. Ideal for kernel newbies.","archived":false,"fork":false,"pushed_at":"2024-12-14T22:18:16.000Z","size":19,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T08:02:41.235Z","etag":null,"topics":["devcontainer","linux","linux-kernel","rust","vscode"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tur11ng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-24T15:27:26.000Z","updated_at":"2024-12-15T12:45:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"932bec02-4135-455b-806a-9790b88221f2","html_url":"https://github.com/tur11ng/linux-kernel-devcontainer","commit_stats":null,"previous_names":["tur11ng/linux-kernel-devcontainer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tur11ng%2Flinux-kernel-devcontainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tur11ng%2Flinux-kernel-devcontainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tur11ng%2Flinux-kernel-devcontainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tur11ng%2Flinux-kernel-devcontainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tur11ng","download_url":"https://codeload.github.com/tur11ng/linux-kernel-devcontainer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238955682,"owners_count":19558452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devcontainer","linux","linux-kernel","rust","vscode"],"created_at":"2024-09-24T18:58:46.280Z","updated_at":"2025-10-30T11:30:26.185Z","avatar_url":"https://github.com/tur11ng.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux kernel Devcontainer\n\nA Devcontainer dedicated for Linux kernel development and debugging, including all the required distro packages and [virtme-ng](https://github.com/arighi/virtme-ng) for seamlessly running and debugging the kernel. All of these done with the ease of the VSCode user  interface. It is ideal for kernel newbies.\n\n\n## Usage\n```\n# Clone project\ngit clone https://github.com/tur11ng/linux-kernel-devcontainer.git\ncd linux-kernel-devcontainer\n\n# Clone kernel\ngit clone https://github.com/torvalds/linux.git --depth=1\ncd linux\n\n# Default configure kernel\nmake defconfig # or Task : Default configure kernel\n\n# Configure kernel\nmake defconfig # or Task : Configure kernel\n\n# Setup C/C++ development\nmake LLVM=1 compile_commands.json # or Task : Prepare C/C++\n\n# Setup Rust development\n# Enable rust for linux, for more information see : https://docs.kernel.org/rust/quick-start.html#configuration\nmake LLVM=1 rust-analyzer # or Task : Prepare Rust\n\n# Build kernel\nmake LLVM=1 -j$(nproc) # or Task : Build kernel\n\n# Run kernel\nvng -r arch/x86/boot/bzImage --memory=1G --disable-microvm --verbose # or Task : Run kernel\n\n# Debug kernel\n# Enable debug symbols. For more information see : https://www.kernel.org/doc/html/v4.14/dev-tools/gdb-kernel-debugging.html\n# After you have enabled debug symbols, compile the kernel again like above and continue with the following commands\nvng -r arch/x86/boot/bzImage --memory=1G --disable-microvm --verbose --debug\nvng -r arch/x86/boot/bzImage --memory=1G --disable-microvm --verbose --gdb\"\n# or Run and Debug -\u003e Debug kernel (it will build with the kernel with debug symbols, run the kernel in debug mode and attach the debugger)\n\n# For more information on available Tasks, check out .vscode/tasks.json or Ctrl+Shift+P -\u003e Tasks: Run Task.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftur11ng%2Flinux-kernel-devcontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftur11ng%2Flinux-kernel-devcontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftur11ng%2Flinux-kernel-devcontainer/lists"}