zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    minixml3.1库的使用
    linux coredump及函数栈空间大小分析
    linx 设备名字来由 sd sr sg st
    gcc 遇到过的语法问题
    I帧、B帧、P帧、NALU类型
    linux grub 使用
    结构体sockadrr、sockaddr_in、in_addr的定义
    linux c log 日志接口
    关于32位/64位版本头文件的重要
    汇编指令缩写
  • 原文地址:https://www.cnblogs.com/dream397/p/13752919.html
Copyright © 2011-2022 走看看