- 博客(93)
- 资源 (2)
- 收藏
- 关注
原创 qemu-system-x86_64 命令创建虚拟机,报gtk initialization failed的
因为是ssh命令行启动,增加--nographic# /opt/debug/bin/qemu-system-aarch64 -machine virt-6.2 -qmp tcp:localhost:1238,server,nowait --nographicconfigure accelerator virt-6.2 startmachine init startcpu init startadd rom file: virtio-net-pci.romload the kerneldevice init
2023-09-04 14:28:33 2671
原创 编译libvirt-6.2.0 configure: error: Build directory must be different from source directory
新建一个目录,进入新目录用绝对路径编译配置。
2023-08-25 10:40:59 182
原创 linux kernel 提交patch checklist
`CONFIG_DEBUG_SLAB``, ``CONFIG_DEBUG_PAGEALLOC``, ``CONFIG_DEBUG_MUTEXES``, ``CONFIG_DEBUG_SPINLOCK``, ``CONFIG_DEBUG_ATOMIC_SLEEP``, ``CONFIG_PROVE_RCU`` and ``CONFIG_DEBUG_OBJECTS_RCU_HEAD`` 全部同时使用.b) 传递 ''allnoconfig'', 'allmodconfig''
2023-06-25 16:02:01 368
原创 git send-email BUG: The ‘Mail::Address‘ module is not here, but NO_PERL_CPAN_FALLBACKS was set!
安装libmailtools-perl。
2023-06-25 15:22:08 732
原创 [linux kernel] gcc __printf(a,b) __scanf(a,b) __cold __hot
a是格式化字符串的位置(index),b是要第一个要检查的参数的位置。__cold表示冷门,分支预测首先排除掉。__hot相反,用的多,优先。
2023-06-19 10:38:57 113
原创 TLB vs CPU cache
CPU Cache TLB 1. CPU cache stands for Central Processing Unit Cache TLB stands for Translation Lookaside Buffer 2. CPU cache is a hardware cache It is a memory cache that stores recent translations of virtual memory to physical me
2023-06-15 16:50:34 434
原创 cpu core thread socket
CPU 插槽(socket),也称为 CPU 插槽(slot),是计算机硬件中的一个组件,在微处理器和印刷电路板 (PCB) 之间提供机械和电气连接。它允许您放置和更换中央处理器,而无需焊接。此功能可以方便地升级或更换计算机系统中的 CPU。
2023-06-15 11:33:21 833
原创 virsh create Could not open ‘xxx-arm64.iso‘: Permission denied
重启libvirtd服务 systemctl restart libvirtd。
2023-06-14 10:59:01 192
原创 kvm系列:3、虚拟化架构kvm架构
这种模型中,物理资源是由宿主机操作系统管理,宿主机操作系统是传统的操作系统,如Linux,Windows等,宿主机操作系统不提供虚拟化能力,在这种模型中,VMM被看做是一个完备的操作系统,同时还具备虚拟化功能,VMM直接管理所有的物理资源,包括处理器,内存和I/O设备等。,包括:客户机的创建、虚拟内存的分配、CPU执行模式的切换、vCPU寄存器的访问、vCPU的执行。,实现处理器,内存和I/O设备的模拟,这种模型的虚拟化实现有KVM、Virtual Box等。Hypervisor模型。
2023-06-09 14:41:13 341
原创 qemu系列:其一 源码编译
会安装在/usr/local/bin /usr/local/share 目录下,原有的在/usr/bin /usr/share目录下不受影响。3、make install | tee make-install.log 安装替换到/usr/local目录。可以使用which qemu-io来查看当前生效的二进制。1、./configure 确保kvm选项yes。2、 make -j 32 编译。
2023-06-08 11:23:41 353
原创 内核编译make bzImage 错误Unsupported relocation type: R_X86_64_PLT32 (4)
对于x86_64,不支持R_X86_64_32重定位,因为必须是 PIC。这表明 binutil 版本应该有问题,需要降级?
2023-06-07 17:27:57 529
原创 qemu/kvm virt-manager 连接到图形控制台出错:Error opening Spice console, SpiceClientGtk missing
重启virt-manager即可。
2023-06-07 16:51:40 1160
原创 libvirt virt-install指令详解
您可以使用 virt-install 命令创建虚拟机,并从命令行在这些虚拟机上安装操作系统。virt-install可以交互方式使用,也可以作为脚本的一部分来自动创建虚拟机。如果您使用的是交互式图形安装,则必须在运行 virt-install 之前安装 virt-viewer。此外,您可以使用带有 kickstart 文件的 virt-install 启动虚拟机操作系统的无人值守安装。--memory 替换原有的--ram, 单位M。
2023-06-07 16:24:15 1063
原创 kernel compile内核编译 -> cc1: error: code model kernel does not support PIC mode
kernel compile内核编译 cc1: error: code model kernel does not support PIC mode
2023-06-07 15:19:43 432
原创 virt-install 使用问题
1、镜像操作permission denied。添加内容如下,这样root就有操作的权限了。#vrish list查看虚拟机运行情况。2、需要安装virt-viewer。
2023-06-07 14:22:49 715
原创 sqlCipher编译记录
环境:centos7.9gcc 4.8准备工作:安装tcl编译:$ ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" \ LDFLAGS="-lcrypto"$ make
2021-10-27 15:22:00 166
原创 busybox编译报错undefined reference to `stime‘ make: *** [Makefile:716: busybox_unstripped] Error 1
上库记录:https://git.busybox.net/busybox/patch/?id=d3539be8f27b8cbfdfee460fe08299158f08bcd9bug:https://bugs.gentoo.org/708350原因:glibc不再使用stimeAs stime has been removed from glibc-2.31 coreutils/date.c | 6 +++++- libbb/missing_syscalls.c
2021-01-31 22:55:11 4570 1
原创 ubuntu 虚拟机xrandr: Failed to get size of gamma for output default
ubuntu16.04 安装完显卡驱动后分辨率固定640x480 解决 :打开:sudo gedit /etc/default/grub 搜索:#GRUB_GFXMODE=640x480 编辑:640x480改成你想要的分辨率,并取消前面的# 例如:GRUB_GFXMODE=1024x768保存:点击右上角保存 更新:sudo update-grub 重启https://olinux.net/xrandr/https://technical-tips.com/blog/softw
2021-01-20 17:25:35 3302 1
原创 【shell】判断文件中是否存在特定字符串,根据结果做不同处理
grep -q "Hello World" test && echo "exist" || echo "not exist"如果test文件中存在"Hello World",则执行echo “exist”否则执行echo "not exist"
2020-12-08 15:51:47 2727
原创 2020-12-07 HowTo: Check If a String Exists
https://stackoverflow.com/questions/7522712/how-can-i-check-if-a-command-exists-in-a-shell-scripthttps://www.shellhacks.com/check-if-string-exists/https://www.unix.com/shell-programming-and-scripting/259572-check-if-string-exists-file.htmla="he..
2020-12-07 14:32:32 96
原创 【libcurl】调整CURL收包大小阈值
libcurl 默认可接受的报文大小限制多方查找,新版本中以下方式可以调整收包大小阈值:CURLOPT_BUFFERSIZE explainedNAMECURLOPT_BUFFERSIZE - set preferred receive buffer sizeSYNOPSIS#include <curl/curl.h>CURLcode curl_easy_setopt(CURL *handle, CURLOPT_BUFFERSIZE, long size);.
2020-11-12 17:24:54 3679
原创 【libcurl】using libcurl
using libcurlGeneral hints and suggestions to consider when using libcurl in your applications are gathered here.Language-specific docs are found on thelibcurl front page Check the full guide to theC API Learn from our collection ofsource code exa...
2020-10-30 11:12:41 98
原创 【libcurl】CURLOPT_CAPATH CURLOPT_CAINFO
CURLOPT_CAPATH: If you have a CA cert for the server stored someplace else than in the * default bundle, then the CURLOPT_CAPATH option might come handy for * you.https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.htmlCURLOPT_CAP...
2020-10-30 10:34:46 1808 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人