• 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
  • 相关阅读:
    读《淘宝数据魔方技术架构解析》有感
    架构之谈
    读《蚂蚁金服11.11:支付宝和蚂蚁花呗的技术架构及实践》有感
    第八周周总结
    hadoop安装和配置
    第七周周总结
    [BZOJ]2836: 魔法树
    [BZOJ]4540: [Hnoi2016]序列
    [BZOJ]1511: [POI2006]OKR-Periods of Words
    [BZOJ]1116: [POI2008]CLO
  • 原文地址:https://www.cnblogs.com/dream397/p/13752919.html
Copyright © 2020-2023  润新知