• skip to content

fl8 Wiki

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Dokuwiki.fl8.jp » code
Trace: • 79 lvcreate 全部 • 12 Galera Permission Error • 64 Adaptech WriteBack設定

code

Search

You can find the results of your search below.

Exact match
  • Exact match
  • Starts with
  • Ends with
  • Contains
@01_linux:08_仮想化:kvm
  • Any namespace
Any time
  • Any time
  • Past week
  • Past month
  • Past year
Sort by hits
  • Sort by hits
  • Sort by last modified

Fulltext results:

08 qcow2 バックアップ 外部へ取得する場合(online external)
18 Hits, Last modified: 3 years ago
m:10_qcow2_backup_internal]] ===== ディスク確認 ===== <code> root@hvdev1001:~# virsh domblklist testvm Targe... var/lib/libvirt/images/testvm.qcow2 sda - </code> ===== スナップショット作成 ===== <code> root@hvdev1001:~# virsh snapshot-create-as testvm --name testsnap --n... a --disk-only Domain snapshot testsnap created </code> ==== スナップショット作成後 ==== <code> root@hvdev1001:~
11 KVM名前変更
16 Hits, Last modified: 3 years ago
===== 1.UUID作成 ===== 新しいuuidを作成して、表示されたuuidをメモ <code> # uuidgen </code> ===== 2.xml編集 ===== virsh edit で、変更したい名前と、先程メモしたUUIDを入力し保存 <code> # virsh edit 仮想マシン名 <name>表示させたい名前</name> <uuid>メモしたuuid</uuid> </code> ===== 3.ファイル確認 ===== vm-001を変更して、vm-002にした場合。
09 qcow2 backing file
10 Hits, Last modified: 3 years ago
leを使って、create ===== from.qcow2 から to.qcow2 を作成 <code> qemu-img create -b from.qcow2 -f qcow2 to.qcow2 </code> ==== 確認 ==== <code> # ls -al from.qcow2 to.qcow2 -rwxrwx--- 1 root vstorage-users 1459617792 Nov ... vstorage-users 196848 Nov 8 07:58 to.qcow2 </code> <code> # qemu-img info to.qcow2 image: to.qcow2
32 LVM から qcow2に変換
10 Hits, Last modified: 3 years ago
awイメージにしてから、次にqcow2に変換 ===== - LVM to raw ===== <code> # qemu-img convert /dev/VolGroup00/snap-Volhoge -O raw /root/Volhoge.img </code> ===== - raw to qcow2 ===== <code> # qemu-img convert -f raw -O qcow2 Volhoge.img Volhoge.qcow2 </code> ===== - qcow2 to raw ===== <code> # qemu-img c
33 qcow2 中身確認
9 Hits, Last modified: 12 months ago
vm:35_mount_qcow2]] ===== guesfishインストール ===== <code> # yum install guestfish </code> ==== 中身確認 ==== <code> export LIBGUESTFS_BACKEND=direct guestfish --rw -a file.img -i ### -i を指定すれば... > cat /tmp/hoge hoge hoge ><fs> sync ><fs> quit </code> ===== エラー ===== <code> ><fs> run libguestfs: e
35 qcow2をマウント
8 Hits, Last modified: 12 months ago
nux:08_仮想化:kvm:33_qcow2]] ====== 通常マウント ====== <code> export LIBGUESTFS_BACKEND=direct guestmount -a test.qcow2 -i /work/ </code> ==== Read-Only ==== <code> guestmount -a test.qcow2 -i --ro /work/ </code> ==== イメージ内のファイルシステム確認 ==== <code> # virt-filesystems
10 qcow2バクアップ 内部スナップショット(internal)
6 Hits, Last modified: 3 years ago
nline_external_backup]] ===== スナップショット作成 ===== <code> # virsh snapshot-create-as --domain test01 --name 20230128 </code> ===== スナップショットの確認 ===== <code> # virsh snapshot-list test01 Name Creation Time ... : 0 Descendants: 0 Metadata: yes </code> ===== 復元 ===== <code> # virsh snapshot-revert t
01 KVM qemu monitor
4 Hits, Last modified: 5 years ago
39/20130203/p1]] ===== virsh からqemuコマンド ===== <code> # virsh qemu-monitor-command --hmp vmname 'info ... -hmp vmname 'info balloon' balloon: actual=1024 </code> ==== ballooning変更 ==== <code> # virsh qemu-monitor-command --hmp one-300 'info balloon' balloon: ac... 4' # virsh qemu-monitor-command --hmp one-300 'info balloon' balloon: actual=1024 </code> {{tag>kvm}}
06 KVM attach-interface
4 Hits, Last modified: 7 years ago
nterface ====== ===== オンラインでinterfaceを追加 ===== <code> # virsh attach-interface --type bridge --source br1 testVM </code> ===== 続的な設定を変更する場合 ===== xmlファイルに設定を追加してくれます。 <code> # virsh attach-interface --type bridge --source br1 testVM --config </code> {{tag>KVM}}
34 疑似NVMe Drive
4 Hits, Last modified: 4 years ago
====== 34 疑似NVMe Drive ====== <code> <qemu:commandline> <qemu:arg value='-drive'/> <qemu:arg ... erial=nvme-1'/> </qemu:commandline> </domain> </code> ===== セキュリティポリシー変更 ===== <code> # cat /etc/apparmor.d/abstractions/libvirt-qemu /var/lib/libvirt/images/test.qcow2 rwk, </code> ==== 再起動 ==== systemctl restart apparmor.ser
04 KVM cdrom attach
2 Hits, Last modified: 7 years ago
ile --type cdrom --mode readonly ===== 例 ===== <code> # virsh start test-vm && virsh attach-disk solid-mgt /ISO/CentOS-6.8-x86_64-bin-DVD1.iso hdc --type cdrom </code> {{tag>KVM}}
05 ゲストCentOS5をVirtio化
2 Hits, Last modified: 3 years ago
ストでvirtioを組み込み ===== virtioドライバを入れたinitrdを用意しておく <code> root# cd /boot root# cp -p initrd-$(uname -r).im... =virtio_blk initrd-$(uname -r).img $(uname -r) </code> ===== 2.起動ファイル修正 ===== # virsh edit [VM] =
07 qemuでserial接続
2 Hits, Last modified: 6 years ago
「-serial mon:stdio」を付けてやるだけ ===== 起動例 ===== <code> qemu-system-x86_64 --enable-kvm \ -smp 2 \ -m 1G... e vhost-user-blk-pci,id=blk0,chardev=spdk_vhost_blk0 \ -nographic -serial mon:stdio </code> {{tag>kvm}}

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
CC Attribution-Noncommercial-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki