PJT

@PJT

Joined on Aug 6, 2017

  • 最近因為自己犯蠢 把虛擬硬碟的大小設定成比實際分割區還大 導致超過容量寫入失敗 因此需要將虛擬硬碟縮小才能塞進那個分割區 增加硬碟空間還算簡單 但減少真的很困難... 所以就將步驟寫在這邊 希望能幫助到也遇到同樣困擾的人 增加虛擬硬碟容量 不管是用raw或是qcow2 都可以使用qemu-img增加 例如 $ qemu-img resize vdisk.qcow2 +100G or
     Like  Bookmark
  • CentOS 7 execute Cuju QEMU and Libvirt Version and Source source RPM qemu-kvm-ev-2.12.0-44.1.el7_8.1.x86_64 http://vault.centos.org/centos/7.8.2003/virt/Source/kvm-common/qemu-kvm-ev-2.12.0-44.1.el7_8.1.src.rpm libvirt-libs-4.5.0-33el7_8.1.x86_64 http://buildlogs-seed.centos.org/c7.2003.u.x86_64/libvirt/20200512162224/4.5.0-33.el7_8.1.i386/libvirt-4.5.0-33.el7_8.1.src.rpm
     Like  Bookmark
  • QEMU + Libvirt on Ubuntu 18.04 Version $ qemu-system-x86_64 --version QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.32) $ libvirtd info : libvirt version: 4.0.0, package: 1ubuntu8.17 (Marc Deslauriers <marc.deslauriers@ubuntu.com> Wed, 06 May 2020 14:18:23 -0400) Source $ git clone https://git.launchpad.net/ubuntu/+source/qemu
     Like  Bookmark
  • # vim + ctags + gtags(+cscope) ### ctags: ``` $ sudo apt-get install exuberant-ctags $ cd project/ $ ctags -R * ``` It will produce file "tags" ### gtags: ``` $ sudo apt-get install global $ cd project/ $ find . -name "*.[ch]" > gtags.files $ gtags ``` It will produce file "gtags.files, GPATH, GRTAGS, GSYMS, GTAGS" ### vim plugin modify ~/.vimrc ``` set cscopeprg=gtags-cscope cs add GTAGS nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR> nmap <C-\>g :cs find g <C-R>=expan
     Like  Bookmark