• kata container + qemu


     https://www.jianshu.com/p/80c11180ef96

    root@ubuntu:~/kata# /usr/bin/qemu-system-aarch64 --version
    QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.32)
    Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
    root@ubuntu:~/kata# 
    root@ubuntu:~/kata/qemu# eval ./configure "$(cat kata.cfg)"
    Using './build' as the directory for build output
    ERROR: unknown option --disable-vxhs
    Try '/root/kata/qemu/configure --help' for more information
    root@ubuntu:~/kata/qemu# 

     删掉

    root@ubuntu:~/kata/qemu# eval ./configure "$(cat kata.cfg)"
    Using './build' as the directory for build output
    
    ERROR: User requested feature rados block device
           configure was not able to find it.
           Install librbd/ceph devel
    
    root@ubuntu:~/kata/qemu#  apt-get install -y librbd-dev
    root@ubuntu:~/kata/qemu# make -j56
    changing dir to build for make ""...
    make[1]: Entering directory '/root/kata/qemu/build'
    make[1]: Makefile: No such file or directory
    make[1]: *** No rule to make target 'Makefile'.  Stop.
    make[1]: Leaving directory '/root/kata/qemu/build'
    GNUmakefile:10: recipe for target 'all' failed
    make: *** [all] Error 2
    root@ubuntu:~/kata/qemu# cd build/
    root@ubuntu:~/kata/qemu/build# ls
    auto-created-by-configure  config.log  config-temp  Makefile
    root@ubuntu:~/kata/qemu/build# eval ../configure "$(cat kata.cfg)"
    cat: kata.cfg: No such file or directory
    ^C
    root@ubuntu:~/kata/qemu/build# eval ../configure "$(cat ../kata.cfg)"
    ../qobject/block-qdict.c: In function ‘qdict_array_split’:
    ../qobject/block-qdict.c:259:9: error: ‘subqdict’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
             qlist_append_obj(*dst, subqobj ?: QOBJECT(subqdict));
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    make CFLAGS="... -Wno-error" -j 64

    版本选择

    git checkout  remotes/origin/stable-4.0
    编译没问题了
    root@ubuntu:~/kata/qemu# ${GOPATH}/src/github.com/kata-containers/packaging/scripts/configure-hypervisor.sh qemu > kata.cfg
    root@ubuntu:~/kata/qemu# mkdir build
    root@ubuntu:~/kata/qemu# cd build/
    root@ubuntu:~/kata/qemu/build# ls
    root@ubuntu:~/kata/qemu/build# eval ../configure "$(cat ../kata.cfg)"
    root@ubuntu:~/kata/qemu/build# qemu-system-arm --version
    QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.32)
    Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
    root@ubuntu:~/kata/qemu/build# qemu-system-arm -M help
    Supported machines are:
    akita                Sharp SL-C1000 (Akita) PDA (PXA270)
    ast2500-evb          Aspeed AST2500 EVB (ARM1176)
    borzoi               Sharp SL-C3100 (Borzoi) PDA (PXA270)
    canon-a1100          Canon PowerShot A1100 IS
  • 相关阅读:
    主键索引和非主键索引解析
    DNS劫持、污染的原理
    B-树,B+树与B*树的优缺点比较
    CollectionUtils工具类
    maven换源
    哪些字段可以加索引?
    callable和runnable的区别
    类加载器实例化时的顺序
    28BYJ-48步进电机
    《计算机网络》读书笔记之应用层
  • 原文地址:https://www.cnblogs.com/dream397/p/13752919.html
Copyright © 2020-2023  润新知