Lichen Liu

与其感慨路难行,不如马上出发

  • 主页
所有文章 友链 关于我

Lichen Liu

与其感慨路难行,不如马上出发

  • 主页

libvirt-go 的一个坑

2020-01-07

更新:
BUG 已经被修复。

今天和聂工在研究怎么用libvirt-go 时,发现GetFreepages 有bug,demo 一跑就报错
virError(Code=9, Domain=0, Message='operation failed: page size 679968 is not available on node 0').
其中这个page size 679968每次跑还会变化。

more >>
  • golang
  • libvirt
  • libvirt-go

在AWS 的Amazon Linux 上下载源码

2019-12-23

Amazon Linux 和Amazon Linux 2 的repo 里,虽然有例如amzn2-core-source/2 这样的repo,但是里面根本没有软件包:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
~ % uname -r     
4.14.133-113.105.amzn2.x86_64
~ % yum repolist
Loaded plugins: auto-update-debuginfo, dkms-build-requires, extras_suggestions, langpacks,
: update-motd
repo id repo name status
amzn2-core/2/x86_64 Amazon Linux 2 core repository 17,984
amzn2-core-debuginfo/2/x86_64 Amazon Linux 2 core repository - debuginfo packa 3,513
amzn2-core-source/2 Amazon Linux 2 core repository - source packages 0
amzn2extra-BCC/2/x86_64 Amazon Extras repo for BCC 9
amzn2extra-BCC-debuginfo/2/x86_64 Amazon Extras debuginfo repo for BCC 2
amzn2extra-redis4.0/2/x86_64 Amazon Extras repo for redis4.0 14
amzn2extra-redis4.0-debuginfo/2/x86_64 Amazon Extras debuginfo repo for redis4.0 3
amzn2extra-vim/2/x86_64 Amazon Extras repo for vim 10
amzn2extra-vim-debuginfo/2/x86_64 Amazon Extras debuginfo repo for vim 2
danstiner_softu2f/x86_64 danstiner_softu2f 0
danstiner_softu2f-source danstiner_softu2f-source 0
repolist: 21,537

其实源代码还是在的,只是要用yumdownloader 来下载:

1
~ % yumdownloader --source kernel

这个在AWS 的FAQ里已经说了,但很多人(包括我)一开始找不到。

  • Linux
  • AWS
  • Kernel

中文测试

2019-12-23

This is a test post.

中文测试内容。

刚刚安装manjaro linux,vscode 不能切换输入法。
参考Manjaro 论坛,创建了.pam_environment 没有效果。
随后重新安装了fcitx 和fcitx-im,重启系统就能用了。具体哪个生效的也不知道,不折腾了。

  • test
  • 输入法

Hello world

2019-12-19

Hello world!

  • test
  • art
« Prev12 Next »
© 2023 Lichen Liu
Hexo Theme Yilia by Litten
  • 所有文章
  • 友链
  • 关于我

tag:

  • Linux
  • golang
  • xml
  • omitempty
  • test
  • art
  • AWS
  • Kernel
  • bonding
  • sk_buff
  • kernel
  • libvirt
  • libvirt-go
  • numa
  • ping
  • arp
  • 输入法
  • ovs
  • font
  • manjaro
  • 坑
  • 北京
  • 旅游

    缺失模块。
    1、请确保node版本大于6.2
    2、在博客根目录(注意不是yilia根目录)执行以下命令:
    npm i hexo-generator-json-content --save

    3、在根目录_config.yml里添加配置:

      jsonContent:
        meta: false
        pages: false
        posts:
          title: true
          date: true
          path: true
          text: false
          raw: false
          content: false
          slug: false
          updated: false
          comments: false
          link: false
          permalink: false
          excerpt: false
          categories: false
          tags: true
    

  • 北京周末

    2023-03-22

    #北京#旅游

  • manjaro kde 升级后中文字体变成方块

    2021-02-18

    #font#manjaro#坑

  • sk_buff 简介

    2020-10-26

    #Linux#sk_buff#kernel

  • 使用ct_state 实现出口放行防火墙

    2020-05-15

    #ovs

  • /dev 下的null, zero, random等文件是怎么来的

    2020-03-07

    #Linux#Kernel

  • NUMA 内存策略 preferred 的效果

    2020-02-20

    #Linux#numa

  • 在linux kernel 源码中搜索syscall 的实现

    2020-02-20

    #Linux

  • 一次ping 遇到Invalid argument 报错的问题

    2020-02-11

    #Linux#ping#arp

  • Linux 网络bond mode 4 的xmit_hash_policy layer3+4 到底是如何hash 的

    2020-01-10

    #Linux#bonding

  • golang xml 如何忽略空结构体

    2020-01-09

    #golang#xml#omitempty

  • libvirt-go 的一个坑

    2020-01-07

    #golang#libvirt#libvirt-go

  • 在AWS 的Amazon Linux 上下载源码

    2019-12-23

    #Linux#AWS#Kernel

  • 中文测试

    2019-12-23

    #test#输入法

  • Hello world

    2019-12-18

    #test#art

  • 肥叉烧
  • 安全大手子
  • 物理学博士
  • 一个愣头青
普通上班族,会一点Linux, 想学SDN