全文検索:
- 01 KVM qemu monitor
- ' # virsh qemu-monitor-command --hmp one-300 'info balloon' balloon: actual=1024 </code> {{tag>kvm}}
- 02 KVMメモリ追加
- config ==== 3.memを変更 ==== virsh setmem test_vm 4G --config その後起動すれば、メモリが増えてます。 {{tag>kvm virsh}}
- 04 KVM cdrom attach
- virsh attach-disk solid-mgt /ISO/CentOS-6.8-x86_64-bin-DVD1.iso hdc --type cdrom </code> {{tag>KVM}}
- 05 ゲストCentOS5をVirtio化
- <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </interface> {{tag>kvm}}
- 06 KVM attach-interface
- くれます。 <code> # virsh attach-interface --type bridge --source br1 testVM --config </code> {{tag>KVM}}
- 07 qemuでserial接続
- vhost-user-blk-pci,id=blk0,chardev=spdk_vhost_blk0 \ -nographic -serial mon:stdio </code> {{tag>kvm}}
- 08 qcow2 バックアップ 外部へ取得する場合(online external)
- ype='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </disk> </code> {{tag>kvm qcow2}}
- 09 qcow2 backing file
- false refcount bits: 16 corrupt: false </code> これだとcommitで、from2.qcow2へマージされます。 {{tag>qcow2}}
- 10 qcow2バクアップ 内部スナップショット(internal)
- yes </code> ===== 復元 ===== <code> # virsh snapshot-revert test01 20230128 </code> {{tag>kvm qcow2}}
- 11 KVM名前変更
- art 新しい仮想マシン名 </code> ===== 6.最後に古い定義を削除 ===== <code> # virsh undefine 古い仮想マシン名 </code> {{tag>KVM}}
- 32 LVM から qcow2に変換
- mu-img convert -f raw -O raw rbd:one/one-XXX-XXX-0:id=libvirt /root/raw.img </code> {{tag>qcow2 kvm}}
- 33 qcow2 中身確認
- から再実行すると成功した。 libvirtのqemuディレクトリ違い場合らしい <code> export LIBGUESTFS_BACKEND=direct </code> {{tag>qcow2}}
- 34 疑似NVMe Drive
- apparmor.service ==== パーミッションエラーの場合 ==== chmod 777 /var/lib/libvirt/images/test.qcow2 {{tag>KVM}}
- 35 qcow2をマウント
- k/ </code> ==== Read-Only ==== <code> guestmount -a test.qcow2 -i --ro /work/ </code> {{tag>qcow2}}