11 2020 档案

Xvfb- bootargs systemd.unit systemd.mask
摘要:Select boot-target : – via /etc/systemd/system/default.target symlink; – appending number or systemd.unit=<target> to bootargs. root@ubuntu:/# systemc 阅读全文

posted @ 2020-11-30 20:35 tycoon3 阅读(680) 评论(0) 推荐(0) 编辑

Unit app.service is not loaded properly: Exec format error
摘要:Failed to restart app.service: Unit app.service is not loaded properly: Exec format error [Unit] Description=Openvmi Xvfb Manger service [Service] Exe 阅读全文

posted @ 2020-11-30 16:29 tycoon3 阅读(1389) 评论(0) 推荐(0) 编辑

No journal files were found.
摘要:root@ubuntu:/# journalctl -r -t Openvmi-Container-Manager No journal files were found. -- No entries -- root@ubuntu:/# systemctl restart systemd-journ 阅读全文

posted @ 2020-11-30 14:50 tycoon3 阅读(2590) 评论(0) 推荐(0) 编辑

下一代存储技术的先行: NVDIMM 你了解吗?
摘要:惠春阳, Intel 软件工程师, 主要从事SPDK开发和存储软件性能优化的工作。 文章转载自DPDK与SPDK开源社区 随着存储技术的发展, 对存储性能的不懈追求, 高性能存储开始探索向内存通道的迁移。 在这样的情况下, NVDIMM 技术便应运而生了。 NVDIMM (Non-Volatile 阅读全文

posted @ 2020-11-30 10:52 tycoon3 阅读(4290) 评论(0) 推荐(0) 编辑

How To Share Data Between the Docker Container and the Host
摘要:Introduction In general, Docker containers are ephemeral, running just as long as it takes for the command issued in the container to complete. By def 阅读全文

posted @ 2020-11-30 10:00 tycoon3 阅读(132) 评论(0) 推荐(0) 编辑

perl: warning: Please check that your locale settings:
摘要:perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_HK:en", LC_ALL = (unset), LANG = "en_HK.UT 阅读全文

posted @ 2020-11-28 12:30 tycoon3 阅读(492) 评论(0) 推荐(0) 编辑

Linux Kernel中AEP的现状和发展
摘要:AEP简介 AEP是Intel推出的一种新型的非易失Optane Memory设备,又被称作Apache Pass,所以一般习惯称作AEP。在这之前也有类似的设备称作NVDIMM或PMEM,目前Linux创建的AEP设备节点也是叫做pmem(如/dev/pmem0),所以本文中NVDIMM或PMEM 阅读全文

posted @ 2020-11-27 14:25 tycoon3 阅读(824) 评论(0) 推荐(0) 编辑

kata agent install
摘要:I: Configuring libip6tc0:arm64... I: Configuring libapt-pkg5.0:arm64... I: Configuring libnetfilter-conntrack3:arm64... I: Configuring libnss3:arm64.. 阅读全文

posted @ 2020-11-27 12:05 tycoon3 阅读(143) 评论(0) 推荐(0) 编辑

Macvtap
摘要:ip link add link eth0 name macvtap0 type macvtap mode bridge qemu-kvm -nographic -kernel /boot/vmlinuz-guest \ -append "console=ttyS0 root=/dev/vda" \ 阅读全文

posted @ 2020-11-26 17:53 tycoon3 阅读(360) 评论(0) 推荐(0) 编辑

tap0_kata
摘要:root@ubuntu:/opt/gopath/src/github.com/kata-containers/runtime# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d36cbb25f4ff debian "/ 阅读全文

posted @ 2020-11-26 14:16 tycoon3 阅读(242) 评论(0) 推荐(0) 编辑

kata createEndpoint
摘要:{ “device”:”tap1”, “name”:”eth1”, “IPAddresses”:[{“address”:”172.17.1.10”,”mask”:”24”}], “mtu”:1300, “hwAddr”:”02:42:20:6f:a2:80” “vhostUserSocket”:”/ 阅读全文

posted @ 2020-11-26 11:14 tycoon3 阅读(87) 评论(0) 推荐(0) 编辑

runtime api
摘要:virtcontainers/api 阅读全文

posted @ 2020-11-25 20:31 tycoon3 阅读(93) 评论(0) 推荐(0) 编辑

Launch a Kata Containers container using SR-IOV
摘要:https://github.com/kata-containers/runtime/issues/1876 插件扩展 https://m.php.cn/manual/view/36157.html 网络驱动插件与群模式 Docker 1.12增加了对群集管理和编排的支持,称为群集模式。以群集模式运 阅读全文

posted @ 2020-11-25 19:16 tycoon3 阅读(387) 评论(0) 推荐(0) 编辑

kata virtiofsd
摘要:func (q *qemu) virtiofsdArgs(fd uintptr) []string { // The daemon will terminate when the vhost-user socket // connection with QEMU closes. Therefore 阅读全文

posted @ 2020-11-25 17:48 tycoon3 阅读(124) 评论(0) 推荐(0) 编辑

docker: Error response from daemon: error gathering device information while adding custom device
摘要:agent createDeviceNode 容器侧 kata 虚拟机 Nov 25 11:31:21 pcl-01 kata-runtime[2103926]: time="2020-11-25T11:31:21.185001827+08:00" level=info msg="Device ha 阅读全文

posted @ 2020-11-25 11:17 tycoon3 阅读(3065) 评论(0) 推荐(0) 编辑

Docker及Kubernetes下device使用和分析
摘要:--device挂载的设备,容器内的进程通常没有权限操作,需要使用--cap-add开放相应的权限,如下 Kubernetes下使用device Kubernetes支持--device问题在社区上讨论了很久,感兴趣的可以看下#5607。当前的解决方案是使用device plugins机制来注册要访 阅读全文

posted @ 2020-11-25 10:47 tycoon3 阅读(4282) 评论(0) 推荐(0) 编辑

kata + docker run & star
摘要:func (r *runner) run(config *specs.Process) (int, error) { if err := r.checkTerminal(config); err != nil { r.destroy() return -1, err } process, err : 阅读全文

posted @ 2020-11-24 20:34 tycoon3 阅读(229) 评论(0) 推荐(0) 编辑

libcontainer nsexec + unshare + syscall(SYS_setns
摘要:// execSetns runs the process that executes C code to perform the setns calls // because setns support requires the C process to fork off a child and 阅读全文

posted @ 2020-11-24 19:48 tycoon3 阅读(715) 评论(0) 推荐(0) 编辑

docker createHooks
摘要:go-nsenter https://github.com/Devatoria/go-nsenter package main import ( "fmt" "github.com/Devatoria/go-nsenter" ) func main() { config := &nsenter.Co 阅读全文

posted @ 2020-11-24 19:29 tycoon3 阅读(275) 评论(0) 推荐(0) 编辑

mount namespace
摘要:root@ubuntu:/home/ubuntu/test/learning/namespaces/Mount_001# go run Mount_001.go run ERRO[0000] no such file or directory root@nshost:/# root@nshost:/ 阅读全文

posted @ 2020-11-24 16:58 tycoon3 阅读(146) 评论(0) 推荐(0) 编辑

exec.Command("/proc/self/exe", "child")
摘要:package main import ( "flag" "os" "os/exec" "syscall" "github.com/sirupsen/logrus" ) func main() { var nsShell, nsHostName, rootPath string flag.Strin 阅读全文

posted @ 2020-11-24 16:36 tycoon3 阅读(438) 评论(0) 推荐(0) 编辑

利用setns()将进程加入一个新的network namespace
摘要:root@ubuntu:/home/ubuntu# docker run -itd --name test ubuntu /bin/bash 86d1bf0df1c9ff0a705be14b5263473f5c2d2bbbcc01b7159494047d74a51647 root@ubuntu:/h 阅读全文

posted @ 2020-11-24 15:59 tycoon3 阅读(425) 评论(0) 推荐(0) 编辑

runc cgroup + namespace
摘要:RunC 源码通读指南之 Cgroup RunC 源码通读指南之 NameSpace libcontainer/process_linux.go:282 func (p *initProcess) start() error { defer p.messageSockPair.parent.Clos 阅读全文

posted @ 2020-11-24 15:10 tycoon3 阅读(446) 评论(0) 推荐(0) 编辑

cgcreate cgexec cgroup
摘要:首先在 cpu 子系统下面创建了一个 halfapi 的子节点:cgcreate abc:abc -g cpu:halfapi。 然后在配置文件中写入配置数据:echo 50000 > /cgroup/cpu/halfapi/cpu.cfs_quota_us。cpu.cfs_quota_us中的默认 阅读全文

posted @ 2020-11-23 17:31 tycoon3 阅读(927) 评论(0) 推荐(0) 编辑

/run/kata-containers/shared 和/run/kata-containers/sandbox/
摘要:sharedVolume := &grpc.Storage{ Driver: kataVirtioFSDevType, Source: mountGuestTag, MountPoint: kataGuestSharedDir(), Fstype: typeVirtioFS, Options: sh 阅读全文

posted @ 2020-11-23 15:35 tycoon3 阅读(512) 评论(0) 推荐(0) 编辑

kata devices
摘要:const ( driver9pType = "9p" driverVirtioFSType = "virtio-fs" driverBlkType = "blk" driverBlkCCWType = "blk-ccw" driverMmioBlkType = "mmioblk" driverSC 阅读全文

posted @ 2020-11-23 11:21 tycoon3 阅读(116) 评论(0) 推荐(0) 编辑

bjusybox /bin/sh: client: not found
摘要:换成 docker export $(docker create busybox) | tar -C rootfs -xvf - 之前移植了 filesystem/initrd,用的 busybox 是 v1.25.0,但运行一个最简单的 Hello world 程序都提示 -/bin/sh: ./ 阅读全文

posted @ 2020-11-20 16:35 tycoon3 阅读(289) 评论(0) 推荐(0) 编辑

unix socket 跨namespace
摘要:UNIX socket that spans two different mount namespaces The “init” process can establish a communication channel between the parent namespace and the ch 阅读全文

posted @ 2020-11-20 16:32 tycoon3 阅读(527) 评论(0) 推荐(0) 编辑

libcontainer AF_UNIX套接字 + SCM_RIGHTS
摘要:func RecvFd(socket *os.File) (*os.File, error) { // For some reason, unix.Recvmsg uses the length rather than the capacity // when passing the msg_con 阅读全文

posted @ 2020-11-20 15:37 tycoon3 阅读(540) 评论(0) 推荐(0) 编辑

mount namespace
摘要:挂载proc文件系统 前文中已经提到,如果你在新的PID namespace中使用ps命令查看,看到的还是所有的进程,因为与PID直接相关的/proc文件系统(procfs)没有挂载到与原/proc不同的位置。所以如果你只想看到PID namespace本身应该看到的进程,需要重新挂载/proc,命 阅读全文

posted @ 2020-11-20 14:50 tycoon3 阅读(179) 评论(0) 推荐(0) 编辑

IPC namespace nsenter
摘要:nsenter https://www.cnblogs.com/sparkdev/p/9400673.html 与 namespace 相关的工具 unshare 命令unshare 命令把当前进程加入到一个新建的 namespace 中,然后运行指定的程序(不指定目标程序则运行系统的默认 shel 阅读全文

posted @ 2020-11-20 14:47 tycoon3 阅读(283) 评论(0) 推荐(0) 编辑

kata编译 build flag -mod=vendor only valid when using modules
摘要:kata-containers/runtime# make -j48 kata-runtime - version 1.12.0-alpha1 (commit 011c73f24a94118c74a1833fb2f27da0eaf3b576-dirty) BUILD /opt/gopath/src/ 阅读全文

posted @ 2020-11-19 20:03 tycoon3 阅读(491) 评论(0) 推荐(0) 编辑

内核编译内置built in
摘要:ubuntu@ubuntu:linux-5.4.60-89/drivers/input$ cat built-in.a !<thin> // 476 ` input.o/ input-compat.o/ input-mt.o/ input-poller.o/ ff-core.o/ mousedev. 阅读全文

posted @ 2020-11-19 19:00 tycoon3 阅读(452) 评论(0) 推荐(0) 编辑

qemu-system-aarch64: -usb##===============: invalid option
摘要:qemu-system-aarch64: -usb## : invalid option 原来是kernel不支持usb 阅读全文

posted @ 2020-11-19 17:48 tycoon3 阅读(411) 评论(0) 推荐(0) 编辑

gdb + qemu+core
摘要:[root@localhost android]# gdb /usr/local/bin/qemu-system-aarch64 /data1/core/core-qemu-system-aar-75383_1605777158 GNU gdb (GDB) Red Hat Enterprise Li 阅读全文

posted @ 2020-11-19 17:16 tycoon3 阅读(275) 评论(0) 推荐(0) 编辑

qemu-system-aarch64 -device help
摘要:执行命令: # /usr/libexec/qemu-kvm -device help USB devices: name "ich9-usb-ehci1", bus PCI name "ich9-usb-ehci2", bus PCI name "ich9-usb-uhci1", bus PCI n 阅读全文

posted @ 2020-11-19 14:03 tycoon3 阅读(508) 评论(0) 推荐(0) 编辑

keybord 和鼠标
摘要:qemu-system-aarch64: -device usb-host,vendorid=0x12d1,productid=0x0003a: 'usb-host' is not a valid device model name ln -sf /usr/local/lib/libusb-1.0. 阅读全文

posted @ 2020-11-19 10:43 tycoon3 阅读(539) 评论(0) 推荐(0) 编辑

docker Linux namespace(五)-Mount
摘要:众所周一,在Linux上使用容器有个天大的好处,就是可以把不同的系统打包运行,虽然你的宿主机可能就是CentOS,但是如果使用了容器技术,你可以同时运行alpline,Debian,Ubuntu等其他的你喜欢的发行版,关键是这些容器共享宿主的资源,因此,每个容器是非常轻量级的,不同虚拟机,这是如何做 阅读全文

posted @ 2020-11-18 16:32 tycoon3 阅读(529) 评论(0) 推荐(0) 编辑

Kata runc privileged
摘要:There is another question related with '--privileged' in Kata: In runc, '--privileged' will translate capabilities of host dev into container. In Kata 阅读全文

posted @ 2020-11-18 15:53 tycoon3 阅读(309) 评论(0) 推荐(0) 编辑

prepareRootfs +createDevices
摘要:// prepareRootfs sets up the devices, mount points, and filesystems for use // inside a new mount namespace. It doesn't set anything as ro. You must c 阅读全文

posted @ 2020-11-18 15:21 tycoon3 阅读(172) 评论(0) 推荐(0) 编辑

cat /proc/bus/input/devices dev/input
摘要:root@ubuntu:~# ls /dev/input/ by-id by-path event0 event1 event2 js0 mice mouse0 root@ubuntu:~# ls /dev/input/ by-id by-path event0 event1 event2 js0 阅读全文

posted @ 2020-11-18 15:11 tycoon3 阅读(1252) 评论(0) 推荐(0) 编辑

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 阅读(595) 评论(0) 推荐(0) 编辑

kata tap
摘要:k8s启动两个container 容器1 容器二 k8s -kata 虚拟机 两个容器和虚拟机的mac地址都一样 # # Internetworking model # Determines how the VM should be connected to the # the container 阅读全文

posted @ 2020-11-18 13:58 tycoon3 阅读(326) 评论(0) 推荐(0) 编辑

Docker的核心原理
摘要:Linux Namespace 技术与 Docker 原理浅析 https://creaink.github.io/post/Computer/Linux/Linux-namespace/ 简介 Docker 核心技术主要从以下几个方面实现: 命名空间(namespace):通过进程命名空间,将do 阅读全文

posted @ 2020-11-18 11:56 tycoon3 阅读(643) 评论(0) 推荐(0) 编辑

golang fork and docker fork
摘要:背景 在日常的系统编程中,我们经常有这样的需求:fork 多个子进程去执行任务。例如典型的 master-slave 架构便是这样的,fork 调用之后,父进程开始作为管理进程管理子进程,而子进程则开始执行处理请求的代码。但是在Go语言中,由于Go语言屏蔽了进程、线程的概念,而只提供了 gorout 阅读全文

posted @ 2020-11-18 11:47 tycoon3 阅读(255) 评论(0) 推荐(0) 编辑

Build Your Own Container Using Less than 100 Lines of Go
摘要:Build Your Own Container Using Less than 100 Lines of Go https://www.infoq.com/articles/build-a-container-golang/ Linux containers in 500 lines of cod 阅读全文

posted @ 2020-11-18 11:10 tycoon3 阅读(391) 评论(0) 推荐(0) 编辑

runc cgroup CreateLibcontainerConfig & linuxContainer
摘要:// needsSetupDev returns true if /dev needs to be set up. func needsSetupDev(config *configs.Config) bool { for _, m := range config.Mounts { if m.Dev 阅读全文

posted @ 2020-11-18 11:03 tycoon3 阅读(204) 评论(0) 推荐(0) 编辑

runc unshare
摘要:void nsexec(void) unshare(CLONE_NEWUSER) http://www.sel.zju.edu.cn/?p=840 Namespace API提供了三种系统调用接口: ● clone():创建新的进程 ● setns():允许指定进程加入特定的namespace ● 阅读全文

posted @ 2020-11-18 10:46 tycoon3 阅读(195) 评论(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 阅读(389) 评论(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 阅读(2123) 评论(0) 推荐(0) 编辑

Docker基础技术-Linux Namespace
摘要:写这个系列文章主要是对之前做项目用到的docker相关技术做一些总结,包括docker基础技术Linux命名空间,cgroups,网络等内容。这是第一篇Linux命名空间,主要参考的introduction-to-linux-namespaces和Namespaces in operation 这两 阅读全文

posted @ 2020-11-17 20:12 tycoon3 阅读(253) 评论(0) 推荐(0) 编辑

基于 Kata Containers 与 iSulad 的云容器实践解析
摘要:在 4 月 9 号结束的 OpenStack 基金会董事会议上,董事们投票批准了 Kata Containers 成为基金会旗下第一个新的顶级开放基础设施(Open Infrastructure)项目,这是该项目的一个重要里程碑。 作为 Kata Containers 的初创成员之一,华为拥有 Ka 阅读全文

posted @ 2020-11-17 20:11 tycoon3 阅读(964) 评论(0) 推荐(0) 编辑

runc network
摘要:Today we’ll be continuing our containerization blog series with a discussion about runC, a tool for launching containers according to Open Container I 阅读全文

posted @ 2020-11-17 20:08 tycoon3 阅读(239) 评论(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 阅读(407) 评论(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 阅读(504) 评论(0) 推荐(0) 编辑

kata agent
摘要:GO_AGENT_PKG if [ -z "${AGENT_SOURCE_BIN}" ] ; then if [ "$RUST_AGENT" == "no" ]; then docker_run_args+=" --env GO_AGENT_PKG=${GO_AGENT_PKG}" else doc 阅读全文

posted @ 2020-11-17 14:22 tycoon3 阅读(125) 评论(0) 推荐(0) 编辑

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

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

error gathering device information while adding custom device
摘要:shim/vendor/github.com/docker/docker/oci/devices_linux.go:85: return devs, devPermissions, fmt.Errorf("error gathering device information while adding 阅读全文

posted @ 2020-11-17 09:30 tycoon3 阅读(566) 评论(0) 推荐(0) 编辑

binder device
摘要: 阅读全文

posted @ 2020-11-16 16:10 tycoon3 阅读(49) 评论(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 阅读(5448) 评论(0) 推荐(0) 编辑

kata container endpoint
摘要:// Set sets an endpoint type based on the input string. func (endpointType *EndpointType) Set(value string) error { switch value { case "physical": *e 阅读全文

posted @ 2020-11-13 18:05 tycoon3 阅读(82) 评论(0) 推荐(0) 编辑

Virtio_user for Container Networking
摘要:DPDK in Containers Hands-on Lab Accelerate Clear Container Network performance Microsoft Research released FreeFlow on GitHub. https://www.microsoft.c 阅读全文

posted @ 2020-11-13 17:27 tycoon3 阅读(377) 评论(0) 推荐(0) 编辑

VFIO - User Level meta-driver version
摘要:Error - no supported modules(DPDK driver) are loaded [ 45.422045] VFIO - User Level meta-driver version: 0.3 Y Error - no supported modules(DPDK drive 阅读全文

posted @ 2020-11-13 15:34 tycoon3 阅读(615) 评论(0) 推荐(0) 编辑

Container isolation with Kata and gVisor in Docker
摘要:Container isolation with Kata and gVisor in Docker Overview Containers are an efficient way to build and distribute workloads free of (most) host and 阅读全文

posted @ 2020-11-13 11:59 tycoon3 阅读(246) 评论(0) 推荐(0) 编辑

kata macvlan
摘要:1. $ docker network create -d macvlan macvlan1 2. $docker run -d --runtime=kata-runtime --network=macvlan --name=containerA debian sh -c "tail -f /dev 阅读全文

posted @ 2020-11-13 11:55 tycoon3 阅读(141) 评论(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 阅读(248) 评论(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 阅读(153) 评论(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 阅读(4230) 评论(0) 推荐(0) 编辑

vhost-user 通信文件
摘要:https://maggie262.github.io/2020/01/22/vhost/ | | | vhost client | | | | | shared memory | | | | | socket | | | | vhost backend | vhost-user 基于 C/S 的模 阅读全文

posted @ 2020-11-13 10:22 tycoon3 阅读(707) 评论(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 阅读(325) 评论(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 阅读(303) 评论(0) 推荐(0) 编辑

Running Containers With OVS-DPDK
摘要:OVS-DPDK 是什么 OVS-DPDK 为容器提供网络支持 基于 DPDK 的应用 基于内核协议栈的应用 OVS-DPDK 容器网络方案验证 搭建 DPDK 环境 编译运行 OVS-DPDK DPDK 应用的容器 基于内核协议栈的应用(使用 veth pair 连接 ovs-dpdk) 基于内核 阅读全文

posted @ 2020-11-12 15:23 tycoon3 阅读(2061) 评论(0) 推荐(1) 编辑

Dockerfile CMD 和ENTRYPOINT
摘要:https://www.cnblogs.com/sparkdev/p/8461576.html 阅读全文

posted @ 2020-11-12 11:58 tycoon3 阅读(49) 评论(0) 推荐(0) 编辑

scripts/kconfig/merge_config.sh
摘要:在scripts/kconfig路径下有一个merge_config.sh,可以用于将将两个defconfig merge成一个.使用用法如下:./scripts/kconfig/merge_config.sh -m arch/arm64/configs/defconfig arch/arm64/c 阅读全文

posted @ 2020-11-12 10:48 tycoon3 阅读(1710) 评论(0) 推荐(0) 编辑

Building Android for Qemu: A Step-by-Step Guide
摘要:Set up paths Naturally all of the paths below are configurable, this is just what I used. export PROJECT_PATH="/opt/qemu_android" export VIRGLRENDERER 阅读全文

posted @ 2020-11-12 10:34 tycoon3 阅读(1150) 评论(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 阅读(283) 评论(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 阅读(99) 评论(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 阅读(1372) 评论(0) 推荐(0) 编辑

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

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

VFS: Unable to mount root fs on unknown-block(0,0)
摘要:[ 0.137372] (driver?) [ 0.137550] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 0.137762] CPU: 0 PID: 1 Comm: swapp 阅读全文

posted @ 2020-11-10 17:40 tycoon3 阅读(1880) 评论(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 阅读(2766) 评论(0) 推荐(0) 编辑

OVS DPDK与QEMU之间如何通过vhost user协议通信 vhost user协议的控制和数据通道
摘要:netdev_dpdk_vhost_construct定义在文件openvswitch-2.9.2/lib/netdev-dpdk.c 1058 static int 1059 netdev_dpdk_vhost_construct(struct netdev *netdev) 1060 { 106 阅读全文

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

qemu和vhost-user前后端协商过程
摘要:http://blog.chinaunix.net/uid-28541347-id-5786547.html https://zhaozhanxu.com/2017/02/16/QEMU/2017-02-16-qemu-reconnect/ qemu-system-aarch64: -netdev 阅读全文

posted @ 2020-11-09 16:19 tycoon3 阅读(1583) 评论(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 阅读(297) 评论(0) 推荐(0) 编辑

vhost switch
摘要:https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/open-vswitch-with-dpdk-setup-on-arm-for-phy-vm-phy-vhost-loo 阅读全文

posted @ 2020-11-09 10:48 tycoon3 阅读(338) 评论(0) 推荐(0) 编辑

linux 内核事件通知驱动编程
摘要:1. eventfd 事件通知 eventfd 事件通知不仅可以用于线程间的事件通知,还可以用于内核和用户空间的事件通知。 2. eventfd 用户空间API #include <sys/eventfd.h> //创建事件通知句柄,可以被read 和 write 函数使用 int eventfd( 阅读全文

posted @ 2020-11-06 17:04 tycoon3 阅读(651) 评论(0) 推荐(0) 编辑

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

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

dpdk Vhost 库
摘要:https://dpdk-docs.readthedocs.io/en/latest/prog_guide/vhost_lib.html 1、 怎么实现vhost_dev的VhostOps的vhost_set_vring_kick和vhost_set_vring_call; vhost_net ke 阅读全文

posted @ 2020-11-06 12:00 tycoon3 阅读(674) 评论(0) 推荐(0) 编辑

vhost 控制平面 + handle_kick + VhostOps
摘要:vhost是virtio的另一种方案,用于跳过qemu,减少qemu和内核之间上下文切换的开销,对于网络IO而言提升尤其明显。vhost目前有两种实现方案,内核态和用户态,本文重点讨论内核态的vhost vhost内核模块主要处理数据面的事情,控制面上还是交给qemu,vhost的数据结构如下 st 阅读全文

posted @ 2020-11-06 11:44 tycoon3 阅读(502) 评论(0) 推荐(0) 编辑

vhost VQ 0 ring restore failed
摘要:qemu-system-aarch64: -chardev socket,id=char0,path=/tmp/vhost1,server: info: QEMU waiting for connection on: disconnected:unix:/tmp/vhost1,server qemu 阅读全文

posted @ 2020-11-06 11:14 tycoon3 阅读(537) 评论(0) 推荐(0) 编辑

qemu 线程 vhost
摘要:[root@localhost cloud_images]# lsmod | grep vhost_net vhost_net 262144 0 vhost 262144 1 vhost_net tap 262144 1 vhost_net tun 262144 2 vhost_net [root@ 阅读全文

posted @ 2020-11-06 10:24 tycoon3 阅读(1065) 评论(0) 推荐(0) 编辑

kvm + qemu + kvm ioctl
摘要:kvm_cpu_exec --> kvm_vcpu_ioctl(cpu, KVM_RUN, 0) static void *kvm_vcpu_thread_fn(void *arg) { CPUState *cpu = arg; int r; rcu_register_thread(); qemu_ 阅读全文

posted @ 2020-11-06 10:04 tycoon3 阅读(462) 评论(0) 推荐(0) 编辑

dpdk vhost + qemu-system-aarch64
摘要:虚拟机安装dpdk virt-sysprep --root-password password:changeme --uninstall cloud-init --selinux-relabel -a vhuser-test1.qcow2 --network --install "dpdk,dpdk 阅读全文

posted @ 2020-11-05 18:09 tycoon3 阅读(607) 评论(0) 推荐(0) 编辑

基于QMP实现对qemu虚拟机进行交互 + telnet
摘要:https://cloud.tencent.com/developer/article/1468105 qemu) "ctrl+]" to return to telnet, (qemu)"quit" to exit qemu applicatoin. 通过网络连接到QEMU MONITO http 阅读全文

posted @ 2020-11-05 17:09 tycoon3 阅读(2515) 评论(0) 推荐(0) 编辑

arm64 网卡sriov
摘要:https://doc.dpdk.org/guides-18.11/howto/lm_bond_virtio_sriov.html https://doc.dpdk.org/guides-18.05/nics/intel_vf.html step 不需要echo xx > /sys/bus/pci/ 阅读全文

posted @ 2020-11-05 15:47 tycoon3 阅读(1064) 评论(0) 推荐(0) 编辑

dpdk vhost user + vhost cuse
摘要:For vhost cuse: qemu-system-x86_64 ... \ -netdev tap,id=hostnet1,vhost=on,vhostfd=<open fd> \ -device virtio-net-pci, netdev=hostnet1,id=net1 \ -netde 阅读全文

posted @ 2020-11-05 15:01 tycoon3 阅读(209) 评论(0) 推荐(0) 编辑

Vhost-User Feature for QEMU Vhost-User Applied to Snabbswitch Ethernet Switch
摘要:The purpose of this document is to introduce the reader to the vhost-user feature for QEMU that was developed by Virtual Open Systems for use by the S 阅读全文

posted @ 2020-11-05 14:54 tycoon3 阅读(186) 评论(0) 推荐(0) 编辑

qemu-system-aarch64 + telnet
摘要:https://mails.dpdk.org/archives/dts/2016-August/001780.html virt-sysprep -a vhuser-test1.qcow2 --network --install "telnet*" #qemu-system-aarch64 -nam 阅读全文

posted @ 2020-11-05 14:36 tycoon3 阅读(608) 评论(0) 推荐(0) 编辑

virt-sysprep virt-customize
摘要:virt-customize -a $1.qcow2 --run-command 'yum install -y wget' virt-builder fedora-27 \ --hostname client.example.com \ --update \ --install puppet \ 阅读全文

posted @ 2020-11-05 10:44 tycoon3 阅读(454) 评论(0) 推荐(0) 编辑

qemu-system-aarch64 启动虚拟机
摘要:[root@localhost cloud_images]# guestfish -rw -a vhuser-test1.qcow2 guestfish: cannot mix --ro and --rw options [root@localhost cloud_images]# guestfis 阅读全文

posted @ 2020-11-04 20:42 tycoon3 阅读(8816) 评论(0) 推荐(1) 编辑

git patch
摘要:[root@localhost libxml2]# patch -pn < 0001-fix-parser-termination-from-Double-hyphen-within-com.patch patch: **** strip count n is not a number [root@ 阅读全文

posted @ 2020-11-04 19:38 tycoon3 阅读(215) 评论(0) 推荐(0) 编辑

libxml2
摘要:libxml2-py.c:3:20: fatal error: Python.h: No such file or directory 1042 git clone https://gitlab.gnome.org/GNOME/libxml2.git 1043 ls 1044 cd libxml2/ 阅读全文

posted @ 2020-11-04 19:23 tycoon3 阅读(166) 评论(0) 推荐(0) 编辑

libvirt Installation
摘要:yum install gnutls-devel yum install libxml2-devel yum install yajl-devel XDR is required for remote driver : yum install libtirpc-devel pip3 install 阅读全文

posted @ 2020-11-04 18:05 tycoon3 阅读(1336) 评论(1) 推荐(0) 编辑

Linux QEMU - Guest can SSH to Host, but Host to Guest
摘要:Here is the command I use to boot QEMU: qemu-system-aarch64 -M virt -m 32768 -cpu cortex-a72 \ -kernel $VMLINUZ \ -initrd $INITRD \ -append 'root=/dev 阅读全文

posted @ 2020-11-04 16:55 tycoon3 阅读(222) 评论(0) 推荐(0) 编辑

编译qemu-kvm和安装qemu-kvm
摘要:libvirt 編譯 https://opengers.github.io/virtualization/kvm-libvirt-qemu-1/ http://smilejay.com/2012/06/qemu-kvm_compilation_installation/ 3.4 编译和安装qemu- 阅读全文

posted @ 2020-11-04 15:06 tycoon3 阅读(3323) 评论(0) 推荐(0) 编辑

qemu-system-aarch64: failed to find romfile "efi-virtio.rom"
摘要:编译qemu时没有执行make install 阅读全文

posted @ 2020-11-04 14:30 tycoon3 阅读(1884) 评论(0) 推荐(0) 编辑

vhost + qemu-system-aarch64
摘要:/usr/libexec/qemu-kvm -h $ /path/to/aarch64-softmmu/qemu-system-aarch64 \ -machine virt \ -cpu cortex-a57 \ -nographic -smp 1 \ -hda /path/to/rootfs.e 阅读全文

posted @ 2020-11-04 14:26 tycoon3 阅读(476) 评论(0) 推荐(0) 编辑

qemu-system-aarch64: -enable-kvm: No machine specified, and there is no default Use -machine help to list supported machines
摘要:$ qemu-system-aarch64 -M help akita Sharp SL-C1000 (Akita) PDA (PXA270) ... z2 Zipit Z2 (PXA27x) $ qemu-system-aarch64 -M virt -cpu help arm1026 ... t 阅读全文

posted @ 2020-11-04 14:21 tycoon3 阅读(4523) 评论(0) 推荐(0) 编辑

ninja
摘要:cwd: /tmp/pip-install-3evdau32/ninja Complete output (9 lines): File "/tmp/pip-build-env-m7obrf29/overlay/lib/python3.6/site-packages/skbuild/setuptoo 阅读全文

posted @ 2020-11-04 12:02 tycoon3 阅读(484) 评论(0) 推荐(0) 编辑

cannot undefine domain with nvram
摘要:[root@localhost ~]# virsh undefine vhuser-test1error: Failed to undefine domain vhuser-test1error: Requested operation is not valid: cannot undefine d 阅读全文

posted @ 2020-11-04 11:30 tycoon3 阅读(1603) 评论(0) 推荐(0) 编辑

socat - UNIX-CONNECT:/tmp/vhost-user1
摘要:socat - UNIX-CONNECT:/tmp/vhost-user1 阅读全文

posted @ 2020-11-04 11:02 tycoon3 阅读(256) 评论(0) 推荐(0) 编辑

qemu-system-aarch64
摘要:[root@localhost ~]# ps -elf | grep qemu 6 S root 49878 1 0 80 0 - 6068 poll_s 22:00 ? 00:00:00 /usr/libexec/qemu-kvm -name guest=vhuser-test1,debug-th 阅读全文

posted @ 2020-11-04 10:10 tycoon3 阅读(1053) 评论(0) 推荐(0) 编辑

kvm虚拟化
摘要:[root@localhost cloud_images]# qemu-system-aarch64 -smp 8 -m 8192 -cpu host -M virt -nographic -drive file=vhuser-test1.qcow2,id=hd0 -device virtio-bl 阅读全文

posted @ 2020-11-04 09:55 tycoon3 阅读(396) 评论(0) 推荐(0) 编辑

DPDK 之 Symmetric Receive-side Scaling
摘要:DPDK 之 Symmetric Receive-side Scaling 上篇介绍到RSS HASH默认RK是一个非对称KEY,也就是同一条数据流收、发这两个方向的数据包的RSS HASH值是不同的。在IDS/DPI等流量分析应用场景中,同一条流数据由非对称HASH计算将分流到不同的CPU,这样极 阅读全文

posted @ 2020-11-03 16:20 tycoon3 阅读(614) 评论(0) 推荐(0) 编辑

kata Logging
摘要:Logging For detailed information and analysis on obtaining logs for other system components, see the documentation for the kata-log-parser tool. For r 阅读全文

posted @ 2020-11-03 15:36 tycoon3 阅读(133) 评论(0) 推荐(0) 编辑

kata-collect-data
摘要:root@ubuntu:/home/ubuntu# kata-collect-data.sh > /tmp/kata-collect-data.log ERROR: kata-collect-data.sh: cannot find runtime '' 更改 typeset -r runtime_ 阅读全文

posted @ 2020-11-03 15:14 tycoon3 阅读(130) 评论(0) 推荐(0) 编辑

kata network
摘要:https://github.com/kata-containers/runtime/issues/1876 root@ubuntu:/etc/systemd/system/docker.service.d# docker ps -a CONTAINER ID IMAGE COMMAND CREAT 阅读全文

posted @ 2020-11-03 14:31 tycoon3 阅读(266) 评论(0) 推荐(0) 编辑

Cannot initiate the connection to ports.ubuntu.com:80
摘要:root@pcl-01:/usr/share/defaults/kata-containers# qemu-system-aarch64 -vqemu-system-aarch64: error while loading shared libraries: librbd.so.1: cannot 阅读全文

posted @ 2020-11-03 12:43 tycoon3 阅读(1743) 评论(0) 推荐(0) 编辑

qemu vcpu
摘要:ps -eLo ruser,pid,ppid,lwp,psr,args | awk '{if($5==3) print $0}' 还是借助于ps指令 :ps -eLo ruser,pid,ppid,lwp,psr| awk ‘{if($5==1) print $0}’。解释为:ps命令显示当前系统的 阅读全文

posted @ 2020-11-03 10:25 tycoon3 阅读(287) 评论(0) 推荐(0) 编辑

cgroup kata container
摘要:https://github.com/kata-containers/documentation/blob/master/design/host-cgroups.md https://zhuanlan.zhihu.com/p/105230155 https://blog.csdn.net/yuchu 阅读全文

posted @ 2020-11-03 09:44 tycoon3 阅读(318) 评论(0) 推荐(0) 编辑

kata 虚拟机 libcontainer
摘要:单个容器 root@25a725e7599e:/# lsbin dev home lost+found mnt proc run srv tmp varboot etc lib media opt root sbin sys usrroot@25a725e7599e:/# ls var/backup 阅读全文

posted @ 2020-11-02 20:13 tycoon3 阅读(201) 评论(0) 推荐(0) 编辑

bindMountContainerRootfs
摘要:root@ubuntu:/home/ubuntu# mount | grep overlay | grep docker | grep merged | grep 761dc1b5e9093b905d4d7e23b9c7a18af36874f265860095613ff83e148d8cf3 ove 阅读全文

posted @ 2020-11-02 19:50 tycoon3 阅读(116) 评论(0) 推荐(0) 编辑

How to use Kata Containers with virtio-fs
摘要:Update for Kata Containers 1.7 and later This HowTo is obsolete as of Kata Containers 1.7. virtio-fs has been included in Kata Containers and can be e 阅读全文

posted @ 2020-11-02 14:52 tycoon3 阅读(258) 评论(0) 推荐(0) 编辑

k8s cgroup
摘要:Pod 开销 FEATURE STATE: Kubernetes v1.18 [beta] 在节点上运行 Pod 时,Pod 本身占用大量系统资源。这些资源是运行 Pod 内容器所需资源的附加资源。 POD 开销 是一个特性,用于计算 Pod 基础设施在容器请求和限制之上消耗的资源。 Pod 开销 阅读全文

posted @ 2020-11-02 12:08 tycoon3 阅读(1369) 评论(0) 推荐(0) 编辑

kata + sandbox + two containers
摘要:root@ubuntu:~# cat kata-two-nginx.yaml apiVersion: v1 kind: Pod metadata: name: two-containers spec: runtimeClassName: kata restartPolicy: Never volum 阅读全文

posted @ 2020-11-02 11:24 tycoon3 阅读(133) 评论(0) 推荐(0) 编辑

kata agent CreateSandbox & CreateContainer
摘要:虚拟机rootfs root@25a725e7599e:/# ls bin dev home lost+found mnt proc run srv tmp var boot etc lib media opt root sbin sys usr root@25a725e7599e:/# ls li 阅读全文

posted @ 2020-11-01 12:59 tycoon3 阅读(103) 评论(0) 推荐(0) 编辑

kata agent
摘要:root@ubuntu:/home/ubuntu# kata-runtime exec e12a7db6fb05df044a59a19bb03c39fe7752e4d684a8e2e58822b88606d3ac3e rpc error: code = Internal desc = Could n 阅读全文

posted @ 2020-11-01 10:30 tycoon3 阅读(365) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示