摘要:include/config# ls 64bit auto.conf build cpusets.h dql.h fair generic inet.h kasan memfd network paravirt.h preempt rwsem slub.h swiotlb.h trace virti
阅读全文
摘要:root@pc-01:~# docker ps | grep busybox 807e1730775a busybox "sh" 5 hours ago Up 5 hours optimistic_hermann root@pcl-01:~# docker inspect 807e1730775a
阅读全文
摘要:创建 user namespace 我们可以通过 unshare 命令的 --user 选项来创建新的 user namespace: $ unshare -user -r /bin/bash 通过 -r 参数,我们把新的 user namespace 中的 root 用户映射到了外面的 nick
阅读全文
摘要:systemd-cgls 2. How to use cgroups? The user can access and manage cgroups directly and indirectly (with LXC, libvirt or Docker). Install the necessar
阅读全文
摘要:https://www.cnblogs.com/passzhang/p/12918766.html CAP_SYS_RAWIO allows full access to the host systems memory with /proc/kcore, /dev/mem, and /dev/kme
阅读全文
摘要:提到虚拟化技术,我们首先想到的一定是 Docker,经过四年的快速发展 Docker 已经成为了很多公司的标配,也不再是一个只能在开发阶段使用的玩具了。作为在生产环境中广泛应用的产品,Docker 有着非常成熟的社区以及大量的使用者,代码库中的内容也变得非常庞大。 同样,由于项目的发展、功能的拆分以
阅读全文
摘要:1. 查看config配置项 进入需要编译的目录,我的目录是 ./net/bridge, sean@sean:/media/sean/b55f4db0-2560-4807-b8bf-b29a66db54e1/home/sean/work/tmp/kernel/linux-4.8/net/bridge
阅读全文
摘要:-netdev tap,ifname=tap1,id=network-0,vhost=on,script=no,downscript=no \ -device driver=virtio-net-pci,netdev=network-0,mac=02:42:ac:11:00:02,disable-m
阅读全文
摘要:qemu-system-aarch64: ../net/net.c:1021: net_client_init1: Assertion `nc' failed. root@cloud:/data1/core# gdb /usr/local/bin/qemu-system-aarch64 /data1
阅读全文
摘要:ip tuntap add test_tun mode tap user root ioctl(TUNSETIFF): Device or resource busy #!/bin/sh set -x switch=virbr0 if [ -n "$1" ];then ip tuntap add $
阅读全文
摘要:git branch --all git checkout -b remotes/origin/stable-5.0make -j64 clean 删除5.1 cd .. rm -rf build/ 不删除 有问题 root@cloud:~/qemu-system/virtio_qemu/qemu.
阅读全文
摘要:root@cloud:~# virtiofsd -o vhost_user_socket=/tmp/vhostqemu -o source=/tmp/hostShare -o cache=always virtio_session_mount: Waiting for vhost-user sock
阅读全文
摘要:qemu-system-aarch64: -netdev tap,ifname=tap1,id=network-0,vhost=on,script=../qemu-ifup,vnet_hdr=on: info: net_client_init_fun call 10 + switch=virbr0
阅读全文
摘要:How to launch QEMU from command line without libvirt with macvtap and vhost supportThis sets up a host local bridge with a macvlan interface for VM to
阅读全文
摘要:https://blog.csdn.net/whatday/article/details/88896800 sudo apt-get update $ sudo apt-get install build-essential autoconf git $ git clone https://git
阅读全文
摘要:无论是哪种设备,在 /dev 目录下都有一个对应的文件(节点),并且每个设备文件都必须有主/次设备号,主设备号相同的设备是同类设备,使用同一个驱动程序(虽然目前的内核允许多个驱动共享一个主设备号,但绝大多数设备依然遵循一个驱动对应一个主设备号的原则)。 可以通过 cat /proc/devices
阅读全文
摘要:root@pcl-01:/usr/share/kata-containers# strings vmlinux-5.0.21-84 | grep "Linux version" Linux version 5.0.21 (root@pcl-01) (gcc version 7.5.0 (Ubuntu
阅读全文
摘要:去debuginfo.centos.org 下载相应的rpm包, cat /etc/yum.repos.d/CentOS-Debug.repo #Debug Info [debug] name=CentOS-$releasever - DebugInfo baseurl=http://debugin
阅读全文
摘要:首先说明在2.6.36以后ioctl函数已经不再存在了,而是用unlocked_ioctl和compat_ioctl两个函数实现以前版本的ioctl函数。 ioctl 是设备驱动程序中设备控制接口函数,一个字符设备驱动通常会实现设备打开、关闭、读、写等功能,在一些需要细分的情境下,如果需要扩展新的功
阅读全文