自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(66)
  • 资源 (1)
  • 收藏
  • 关注

原创 How to Debug kata-containers

Containerd Setting# less /etc/containerd/config.toml...[debug] address = "" uid = 0 gid = 0 level = "info"...Kata Setting借助于Package logrus is a structured logger for Go: ““github.com/sirupsen/logrus””Example01//首先定义shimLog// shimLog is lo

2021-06-10 12:32:54 281

原创 fedora33和Debian10安装轻量桌面

Fedora33安装桌面# 安装 xfce 桌面环境# dnf install @xfce-desktop-environment # 安装 LXDE 桌面环境# dnf install @lxde-desktop # 安装 LXQT 桌面环境# dnf install @lxqt-desktop # 安装 deepin 桌面环境# dnf install deepin-desk

2021-05-12 08:48:54 612

原创 Fedora33 Uninstall CLion

1.Delete the installation directory.2.Remove the following directories:# ~/.config/JetBrains/<product><version># ~/.cache/JetBrains/<product><version># ~/.local/share/JetBrains/<product><version>###### Delete proced

2021-04-11 12:43:05 206

原创 rust-lldb调试Rust程序

rust-lldb如何调试带有选项的程序# rust-lldb -- target/debug/racon --root /opt/run/racon run 2333 --bundle /opt/mycontainer/很简单只需要在rust-lldb与程序之间添加 --

2021-01-04 19:31:11 1253

原创 不推荐使用的git push -f的妙用

Git 命令及使用·git push·使用场景曾经有一次提交PR,由于第一次提交的PR内容有问题,审核者给了修改建议,按照建议修改完了之后,再次提交PR。这时有两种选择:(1)重新提交PR;(2)使用`git push -f`;由于没经验,直接使用了第一种,重新提交了PR,这个时候PR就成了另一个。审核者又给了建议说,你可以直接使用`git push -f`。使用效果git push -f[--force] 结果导致在远程主机产生一个”非直进式”的合并(non-fast-forward mer

2020-10-17 10:07:27 2265

原创 Rust获取Vec中长度最短的字符串或最小数值(返回元素)

Rust获取数组中长度最短的字符串或最小数值题目0:给定一个数组[T; n],求最小值,其中T为i32类型fn get_min(vals: &[i32]) -> Option<&i32> { vals.iter().min_by_key(|x| x.abs())}fn main() { let a: [i32; 5] = [-3_i32, 0, 1, 5, -10]; println!("min: {:?}", a.iter().

2020-10-15 11:27:03 1487

原创 kata-2.0制作镜像

全局生效的蹄子# cat /etc/profile...export http_proxy=http://xxx:portexport https_proxy=http://xxx:portexport GOROOT=/usr/local/goexport PATH=$PATH:$GOROOT/bin:$GOPATH/binexport GOPATH=$HOME/GoWork# source /etc/profile安装golang和rust# curl --proto '=http

2020-09-15 08:27:27 607

原创 CNCF 2020 China Interesting Talks

TODO LISTcontainerd stargz-snapshotter1. Overview2. containerd v1.4 new featureOut-of-tree snapshotter plugin - fuse-overlayfs■ Initialize TOC JSON with last two gzip member of each layer■ Read content by on-demand http request3. More DetailLink

2020-08-01 16:54:37 230

原创 如何从硬件获得内存布局(E820)

E820如何从硬件获得内存布局背景在操作系统开始管理内存之前,首先要获取物理内存的信息,比如共有多少物理地址是可用的? 有哪些物理地址是被ACPI(Advanced Configuration and Power Interface)数据使用? 这些信息从何而来?e820就是BIOS像x86架构(包括x86_64)上的操作系统引导程序提供物理内存信息的功能。当请求BIOS中断号15H,并且置操作码AX=E820H的时候,BIOS就会向调用者报告可用的物理地址区间等信息,e820由此得名。什么是E82

2020-07-18 22:16:00 2041

原创 如何查看代码提交记录

查看指定人提交历史# git log --since=2019-11-01 --until=2019-11-30 --author="xxx" --pretty=format:"%h - %an, %ar : %s"统计代码提交历史# git log --since=2019-11-01 --until=2019-11-30 --author="xxx" --pretty=format:"%h - %an, %ar : %s" --pretty=tformat: --numstat | gawk '

2020-07-10 10:58:33 1263

原创 Debug Rust Program

How to Debug Rust ProgramExamplecloud-hypvisor vfio-deviceDebug Cmd with rust-gdbsudo rust-gdb --args ./cloud-hypervisor --kernel ./linux-cloud-hypervisor/arch/x86/boot/compressed/vmlinux.bin --console off --serial tty --disk path=clear-31890-kvm.img -

2020-06-14 20:09:01 269

原创 Rust Standalone installers

Download gnu and MUSL# wget https://static.rust-lang.org/dist/rust-1.43.1-x86_64-unknown-linux-gnu.tar.gz# wget https://static.rust-lang.org/dist/rust-1.43.1-x86_64-unknown-linux-musl.tar.gzSetup# tar -xvf rust-1.43.1-x86_64-unknown-linux-musl.tar.gz

2020-05-23 22:05:24 1049

原创 Rust中如何在代码中引用sibling module

Rust代码中如何引用同级的其他module背景在一个rust源码工程中,需要在某一个crate中编写同一级别的module,crate结构大致如下:root@dragonfly:/home/RustProject/vmm# tree ..├── Cargo.lock├── Cargo.toml└── src ├── lib.rs ├── vmm_config │ ├── boot.rs │ ├── driver.rs │ ├── info.

2020-05-13 13:15:27 691

原创 如何验证内核是否支持KVM虚拟化?

验证内核支持KVM虚拟化方法X86_64架构的环境验证方法在x86_64架构环境中,或者Intel的硬件,(1)我们检测是否支持KVM的方式:# lsmod |grep kvmkvm_intel 188688 0kvm 636931 1 kvm_intelirqbypass 13503 1 k...

2020-05-07 11:09:35 4758

原创 利用qemu-system-aarch64调试Linux内核(arm64)

qemu-system-aarch64调试linux-4.12内核借助Linux操作系统中已有的工具,比如mkinitramfs构建rootfs前提条件(0) arm64物理服务器或虚拟机(1) qemu-2.11.1: qemu-system-aarch64(2) busybox-1.31.1(3) 内核版本为linux-4.12安装qemu由于qemu的编译过程中存在-CFLA...

2020-03-29 19:17:51 3921

原创 Kubeadm Init K8S

Shutdown firewalld# ufw disableOR# systemctl stop firewalld# systemctl disable firewalldDisable Selinux# setenforce 0# sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/configDisable SW...

2020-03-08 13:56:30 328

原创 APT and Snapd and Cargo and Git and go tools Config

Shell Env Set# git config --global http.proxy http:/proxy_ip:port# git config --global https.proxy https://proxy_ip:portGit Configure# cat ~/.gitconfig[http] proxy = http://proxy_ip:port[ht...

2020-02-14 20:34:08 280

翻译 半小时学Rust

半小时学Rust有时为了加强编程语言的熟练程度,我们需要阅读很多相关文档。但如果不知道什么意思你如何去阅读呢?在本文中,我将介绍尽可能多的Rust Snippets,而不去过多关注某几个概念,而且会解释他们所包含关键字和符号的意义。准备好了吗?那开始吧!变量绑定let介绍了一种变量绑定的方式:let x; // declare "x"x = 42; // assign 42 to "...

2020-02-12 15:44:20 595

原创 修改docker0默认IP的正确姿势

Docker 修改docker0网桥的默认IP原理介绍docker服务默认会创建一个docker0网桥,它在内核层连通了其他的物理或虚拟网卡,相当于将所有容器和其主机都放到同一个网络。docker默认指定docker0网桥的IP地址和子网掩码(172.17.0.1/16),使得主机和容器之间能通过网桥通信,同时还给出了MTU值,默认是1500Bytes或宿主机网络路由上支持的默认值。可以在...

2019-07-18 17:10:19 19515 1

原创 Rust必知的问题

// 由于Rust中没有Exception异常处理的语法,// Rust只有panic报错, 并且panic不允许被保护, 因为没有提供 try 这种语法.// Rust的异常处理是通过 Result 的 Ok 和 Err 成员来传递和包裹错误信息.// 然而错误信息的处理一般都是要通过match来对类型进行比较, 所以很多时候// 代码比较冗余, 通过?符号来简化Ok和Err的判断. ...

2019-07-05 09:02:08 1735

原创 Rust With VSCode

Rust With VSCodeRust Debug and Analysis with VSCodeEnvironments:[root@localhost ~]# uname -msrLinux 5.0.9-301.fc30.x86_64 x86_64[root@localhost ~]# cat /etc/os-releaseNAME=FedoraVERSION="30 (Wo...

2019-05-29 09:01:27 1556

原创 Hypervisors Implemented with Rust

Hypervisors Implemented with RustHypervisors(1) Firecracker: Firecracker(2) Crosvm: Crosvm(3) Clould-hypervisor: Cloud-hypervisorDifferencesTODOAnalysisTODO

2019-05-16 08:49:22 220

原创 KubeVirt介绍

KubeVirt的价值及使用本文将从Kubevirt的价值及如何使用两方面介绍。KubeVirt价值如果说kubevirt的价值是什么?那么就是要问为什么需要Kubevirt。kubevirt 技术试图解决在开发团队已经接受或者试图接受K8S思想时但存在有些基于虚拟化的工作负载难以实现容器化的情景。更确切地说,KubeVirt提供了一个统一的开发平台,开发者在同一个共享环境中既能...

2019-05-02 22:19:07 13398

原创 COLO-FT试用

COLO-FT原理架构试用Primary Node: 10.3.6.10Secondary Node: 10.3.6.11qemu版本为4.0.0-rc3创建镜像# mkdir /mnt/ramfs# qemu-img create -f qcow2 /mnt/ramfs/active_disk.img 10G# qemu-img create -f qcow2 /mnt/...

2019-04-13 15:50:57 1119 8

原创 Fedora Server 29 记录

Fedora Server 29修改源建议使用国内源,比如阿里云镜像源https://opsx.alibaba.com/mirror,包括fedora.repo和fedora-update.repohttp://mirrors.aliyun.com/repo/fedora.repohttp://mirrors.aliyun.com/repo/fedora-updates.repo# c...

2019-04-13 10:33:01 428

原创 Nvidia-GPU driver安装遇到的问题

Nvidia GPU driver 安装过程遇到的问题及解决方法1. 安装相关组件elfutils-libelf-devel# yum install -y elfutils-libelf-devel2. blacklist禁用nouveau 开源驱动# echo "blacklist nouveau" &gt;&gt;/etc/modprobe.d/blacklist.conf3....

2019-01-21 18:17:51 1741

原创 compile linux kernel encount: make: warning: Clock skew detected. Your build may be incomplete.

问题描述:...make: warning: Clock skew detected. Your build may be incomplete....问题分析:出现这个提示的原因是因为 Makefile 的修改时间与系统的当前时间不匹配.问题解决:# find . -exec touch \{\} \;...

2019-01-21 14:11:21 327

转载 如何编写最佳的Dockerfile

如何编写最佳的Dockerfile转自Fundebug  https://blog.fundebug.com/2017/05/15/write-excellent-dockerfile/译者按: Dockerfile的语法非常简单,然而如何加快镜像构建速度,如何减少Docker镜像的大小却不是那么直观,需要积累实践经验。这篇博客可以帮助你快速掌握编写Dockerfile的技巧。原文...

2019-01-02 15:35:29 155

原创 Nabla container: a new approach to container isolation

基本思想: 通过减少攻击面,降低被攻击的可能性.https://nabla-containers.github.io/

2018-12-03 09:02:15 316

翻译 编译k8s可执行文件

Compiling Kubernetes Binaries编译kubernetes之前需要有完备的Go环境。这篇文章将通过几种方式来编译LInux二进制文件和交叉编译Windows二进制文件:安装Go临时安装Go环境:# cd ~# wget https://redirector.gvt1.com/edgedl/go/go1.9.2.linux- amd64.tar.gz...

2018-08-18 22:39:03 958

原创 Debug Clear Containers with real-time log

CC-(Clear Containers)Debugging CC ‘s Component with log may be the best method if you want to do. To reach the goal, you should following steps: (1) enable debug: sudo sed -i -e ‘s/^#(enable_debug...

2018-03-09 22:31:22 280

原创 Disable the feature: KASLR Before debugging the kernel with qemu+gdb

qemu+gdb debugging kernel (version&gt;4.8)When debugging the linux kernel (version &gt; 4.8) with qemu and gdb, something wrong occurs:picture as follows:Why?The kernel (version &gt;4.8...

2018-03-08 21:16:54 1134

原创 docker-ce Install and configure cc-runtime on Fedora27

Docker-ce Install and Configure cc-runtime1. Uninstall old versions# dnf remove docker \ docker-common \ docker-selinux \ docker-engine-seli...

2018-02-18 23:46:28 457

原创 qemu-lite Configure and Install

qemu-lite Configure and Install1. Download qemu-lite# git clone https://github.com/clearcontainers/qemu.git2. Configure./configure --disable-libssh2 --disable-tcmalloc --disable-gluste...

2018-02-18 23:12:39 707

原创 golang Install and Configuration

Golang Install1. Download go1.8.3First,download the go program from the site:https://dl.google.com/go/go1.8.3.linux-amd64.tar.gz2. Install into dirtar -xvf go1.8.3.linux-amd64.tar.gz...

2018-02-18 22:39:43 653

原创 Clear Containers Running First

Clear Containers In Ubuntu16.04Install cc in ubuntu as follows: https://github.com/clearcontainers/runtime/blob/master/docs/ubuntu-installation-guide.mdWhen execute the cmd: sudo docker run -t

2018-02-07 20:37:00 476

转载 超级账本Hyperledger-Fabric本地编译与安装(来源于区块链-原理、设计与应用)

超级账本Hyperledger-Fabric本地编译与安装                                                                                      来源于杨保华等《区块链-原理、设计与应用》本地编译安装部署超级账本Fabric网络。 超级账本Fabric基于Go语言实现,本地编译推荐配置Golang1

2017-11-04 15:39:03 7215 2

转载 Windows 安装与配置Goland

GOROOT:go的安装目录,比如安装目录为D:\Go;GOPATH: go的工作目录,比如工作目录为D:\Golang\MyGo一、安装Golang 1) 首先到https://golang.org/dl/选择适合你系统的安装包 2)下载完成安装到指定目录即可。我这里是(D:\Go)。 3)配置Glang环境变量  

2017-10-22 20:20:03 17301

原创 GDB调试libvirtd

1.编译安装libvirt,需要在配置选项时添加--enable-debug=yes2.开启libvirt服务,运行命令:libvirtd -d3.GDB调试libvirtd,需要知道libvirtd进程ID=pidgdb -tui libvirtd pid

2017-10-08 19:55:42 716

原创 GDB调试Qemu程序

1.编译与安装qemu时需要添加debug选项,即--enable-debug,--enable-debug-info2.编译内核,根据需要,选择编译选项(bzImage)3.编译安装BusyBoxBusybox Settings  --->  --- Build Options  [*]   Build BusyBox as a position independent ex

2017-10-08 19:41:47 1884 2

Red_Hat_Enterprise_Linux-6-Resource_Management_Guide-en-US.pdf

此文档简要说明了虚拟化中的新生力量docker的工作方式

2015-03-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除