随笔分类 -  os

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页

Linux kernel中的IS_ENABLED
摘要: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 阅读全文

posted @ 2020-11-18 14:57 tycoon3 阅读(639) 评论(0) 推荐(0)

nsenter
摘要:root@pc-01:~# docker ps | grep busybox 807e1730775a busybox "sh" 5 hours ago Up 5 hours optimistic_hermann root@pcl-01:~# docker inspect 807e1730775a 阅读全文

posted @ 2020-11-17 20:30 tycoon3 阅读(395) 评论(1) 推荐(0)

unshare
摘要:创建 user namespace 我们可以通过 unshare 命令的 --user 选项来创建新的 user namespace: $ unshare -user -r /bin/bash 通过 -r 参数,我们把新的 user namespace 中的 root 用户映射到了外面的 nick 阅读全文

posted @ 2020-11-17 20:25 tycoon3 阅读(2203) 评论(0) 推荐(0)

cgroup--device systemd-cgls + devices.deny
摘要: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 阅读全文

posted @ 2020-11-17 19:57 tycoon3 阅读(432) 评论(0) 推荐(0)

setcap capabilities cap_net_raw
摘要: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 阅读全文

posted @ 2020-11-17 19:40 tycoon3 阅读(537) 评论(0) 推荐(0)

Docker 核心技术与实现原理
摘要:提到虚拟化技术,我们首先想到的一定是 Docker,经过四年的快速发展 Docker 已经成为了很多公司的标配,也不再是一个只能在开发阶段使用的玩具了。作为在生产环境中广泛应用的产品,Docker 有着非常成熟的社区以及大量的使用者,代码库中的内容也变得非常庞大。 同样,由于项目的发展、功能的拆分以 阅读全文

posted @ 2020-11-17 11:00 tycoon3 阅读(261) 评论(0) 推荐(0)

binder device
摘要: 阅读全文

posted @ 2020-11-16 16:10 tycoon3 阅读(52) 评论(0) 推荐(0)

Linux下使用内核源码单独编译某一模块
摘要:1. 查看config配置项 进入需要编译的目录,我的目录是 ./net/bridge, sean@sean:/media/sean/b55f4db0-2560-4807-b8bf-b29a66db54e1/home/sean/work/tmp/kernel/linux-4.8/net/bridge 阅读全文

posted @ 2020-11-16 11:28 tycoon3 阅读(6192) 评论(0) 推荐(0)

kata 网卡 + mount -t proc proc /proc
摘要:-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 阅读全文

posted @ 2020-11-13 11:27 tycoon3 阅读(259) 评论(0) 推荐(0)

gdb qemu
摘要: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 阅读全文

posted @ 2020-11-13 11:13 tycoon3 阅读(161) 评论(0) 推荐(0)

ioctl(TUNSETIFF): Device or resource busy
摘要: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 $ 阅读全文

posted @ 2020-11-13 11:02 tycoon3 阅读(4410) 评论(0) 推荐(0)

git 编译qemu5.0
摘要: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. 阅读全文

posted @ 2020-11-12 18:05 tycoon3 阅读(335) 评论(0) 推荐(0)

virtiofsd qemu-system-aarch64
摘要:root@cloud:~# virtiofsd -o vhost_user_socket=/tmp/vhostqemu -o source=/tmp/hostShare -o cache=always virtio_session_mount: Waiting for vhost-user sock 阅读全文

posted @ 2020-11-12 16:31 tycoon3 阅读(318) 评论(0) 推荐(0)

tuntap vhost virtio-net-pci
摘要: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 阅读全文

posted @ 2020-11-12 09:46 tycoon3 阅读(301) 评论(0) 推荐(0)

How to launch QEMU from command line without libvirt with macvtap and vhost support
摘要: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 阅读全文

posted @ 2020-11-12 09:34 tycoon3 阅读(109) 评论(0) 推荐(0)

binwalk install
摘要:https://blog.csdn.net/whatday/article/details/88896800 sudo apt-get update $ sudo apt-get install build-essential autoconf git $ git clone https://git 阅读全文

posted @ 2020-11-11 14:53 tycoon3 阅读(1497) 评论(0) 推荐(0)

设备主设备号和次设备号 类型
摘要:无论是哪种设备,在 /dev 目录下都有一个对应的文件(节点),并且每个设备文件都必须有主/次设备号,主设备号相同的设备是同类设备,使用同一个驱动程序(虽然目前的内核允许多个驱动共享一个主设备号,但绝大多数设备依然遵循一个驱动对应一个主设备号的原则)。 可以通过 cat /proc/devices 阅读全文

posted @ 2020-11-11 11:55 tycoon3 阅读(813) 评论(0) 推荐(0)

vmlinux + vmlinuz + nitrd(initramfs) 的内核版本 和解压
摘要: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 阅读全文

posted @ 2020-11-10 16:00 tycoon3 阅读(2990) 评论(0) 推荐(0)

centos7安装debuginfo
摘要:去debuginfo.centos.org 下载相应的rpm包, cat /etc/yum.repos.d/CentOS-Debug.repo #Debug Info [debug] name=CentOS-$releasever - DebugInfo baseurl=http://debugin 阅读全文

posted @ 2020-11-09 14:17 tycoon3 阅读(323) 评论(0) 推荐(0)

Linux ioctl调用
摘要:首先说明在2.6.36以后ioctl函数已经不再存在了,而是用unlocked_ioctl和compat_ioctl两个函数实现以前版本的ioctl函数。 ioctl 是设备驱动程序中设备控制接口函数,一个字符设备驱动通常会实现设备打开、关闭、读、写等功能,在一些需要细分的情境下,如果需要扩展新的功 阅读全文

posted @ 2020-11-06 15:01 tycoon3 阅读(806) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页

导航