GithubHelp home page GithubHelp logo

ovm-core's Introduction

比常规 Linux 发行版快那么一点的 Linux 可启动镜像

使用 Qemu 启动镜像:

sudo \
        PATH=/home/ihexon/qemu_bins/bin/:$PATH \
        qemu-system-aarch64 -nographic -enable-kvm -cpu max -smp 4 -m 2G \
        -machine "virt,gic-version=host" \
        -kernel  vmlinuz-virt \
        -initrd  initramfs-virt  \
        -append  "root=UUID=c6c11cf4-a873-4172-ae9b-6e700fc96bcd ro modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4" \
        -hda     alpine_disk.qcow2 \
        -netdev "user,id=net0,restrict=n,hostfwd=tcp:127.0.0.1:10024-:22" -device virtio-net-pci,netdev=net0 \
        -device "virtio-balloon-pci,id=balloon0" \
        -device "vhost-vsock-pci,guest-cid=455"

在 rk3588 SoC上测试,除去 Qemu 和依赖库本身载入内存的时间,真正 Kernel 从启动该到 Podman 启动耗时 2s 左右。

TODO:

  • 从 rk3399 SoC 真机启动
  • 理论上镜像还能更小

ovm-core's People

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.