virtualisation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virtualisation [2024/05/18 11:55] – [Qemu - checkpoints] adminvirtualisation [2024/09/23 20:05] (current) – [Qemu - checkpoints] admin
Line 1: Line 1:
-====== Virtualisation ======+====== Virtualization ====== 
 + VMware OS Optimization Tool. -  
 +===== pre installed virtualbox images ===== 
 +https://www.sysprobs.com/download-pre-installed-virtualbox-images-linux-windows#Windows-VMs \\
 ===== KVM ===== ===== KVM =====
   * https://kb.novaordis.com/index.php/Linux_Virtualization_Concepts https://kb.novaordis.com/index.php/KVM_Virtual_Machine_XML_Defintion https://kb.novaordis.com/index.php/KVM_Virtual_Networking_Concepts   * https://kb.novaordis.com/index.php/Linux_Virtualization_Concepts https://kb.novaordis.com/index.php/KVM_Virtual_Machine_XML_Defintion https://kb.novaordis.com/index.php/KVM_Virtual_Networking_Concepts
Line 13: Line 16:
  
 ===== Qemu ===== ===== Qemu =====
-  * start qemu without libvirt <https://habr.com/ru/articles/728952/>+  * start qemu without libvirt, raw start <https://habr.com/ru/articles/728952/>
  
 ==== Virsh ==== ==== Virsh ====
   * virsh cheatcode https://computingforgeeks.com/virsh-commands-cheatsheet/   * virsh cheatcode https://computingforgeeks.com/virsh-commands-cheatsheet/
 +
 +==== Backup Snapshots ====
 +  * commands and logic https://sysguides.com/create-and-manage-internal-snapshots-in-kvm
 +  * old scripts https://b14esh.com/virtualization/kvm/backup-vm-qemu-kvm-libvirt.html 
 +
 +==== Nested virtualization - hyper-v ====
 +
 +  * https://www.redpill-linpro.com/techblog/2021/04/07/nested-virtualization-hyper-v-in-qemu-kvm.html
 +
  
 ==== Qemu - checkpoints  ==== ==== Qemu - checkpoints  ====
 +Testing system updates using libvirts checkpoint feature - https://abbbi.github.io/changes/ \\
 +virtndbackup error - https://github.com/abbbi/virtnbdbackup/discussions/119 \\
 +working with bitmaps qmp https://kashyapc.fedorapeople.org/QEMU-Docs/_build/html/docs/interop/bitmaps.html#id1 \\
 +<code BASH>
 +# bitmap
 +qemu-img bitmap  --remove  ./local_copy_1_154.hdd.qcow2 virtnbdbackup.1
 +
 +#snapshot
 +qemu-img snapshot -l $DISK_IMAGE.qcow2 # List Snapshots
 +#Snapshots also appear in the output of the qemu-img info command.
 +
 +qemu-img snapshot -c $SNAPSHOT_NAME $DISK_IMAGE #Create Snapshot
 +qemu-img snapshot -a $SNAPSHOT_NAME $DISK_IMAGE #Restore (Apply) Snapshot
 +
 +qemu-img snapshot -d  $SNAPSHOT_NAME  $DISK_IMAGE #Delete Snapshot
 +
 +</code>
 ++++ Checkpoints increment backup| ++++ Checkpoints increment backup|
 <code BASH> <code BASH>
Line 69: Line 98:
 </details> </details>
 ```` ````
 +</code>
 +++++
 +
 +++++ Whole libvirt hierarchy of path|
 +<code BASH>
 +# https://www.reddit.com/r/linuxquestions/comments/16kx0oi/how_do_i_change_libvirtqemuvirtmanager_s_xml/
 +# path of libvirt 
 +
 +/etc/libvirt/ Holds QEMU/Libvirt configurations files are.
 +/etc/libvirt/hooks/ Holds your own scripts that would starts when a specific VM does.
 +/etc/libvirt/nwfilter/ Looks like Libvirt has its own networking/firewall rules.
 +/etc/libvirt/qemu/ Holds VMs' XMLs are stored.
 +/etc/libvirt/qemu/networks/ Holds QEMU/Libvirt virtual networks' XMLs are.
 +/etc/libvirt/qemu/networks/autostart/ A QEMU/Libvirt virtual network XML symlinked there will make said virtual network starts when QEMU/Libvirt does.
 +/etc/libvirt/secrets/ ???
 +/etc/libvirt/storage/ Holds QEMU/Libvirt datastores/pool configurations files are.
 +/etc/libvirt/storage/autostart/ A QEMU/Libvirt datastore/pool configuration file symlinked there will make said datastore/pool starts when QEMU/Libvirt does.
 +
 +/var/lib/libvirt/boot/ ???
 +/var/lib/libvirt/dnsmasq/ Holds further QEMU/Libvirt virtual networks' configuration files.
 +/var/lib/libvirt/images/ Default QEMU/Libvirt virtual disks' datastore/pool.
 +/var/lib/libvirt/qemu/ ???
 +/var/lib/libvirt/qemu/channel/ ???
 +/var/lib/libvirt/qemu/target/ ???
 +/var/lib/libvirt/qemu/checkpoint/ ???
 +/var/lib/libvirt/qemu/dump/ ???
 +/var/lib/libvirt/qemu/nvram/ Holds VMs' UEFI settings. Same goes for TPM and Secure Boot databases?
 +/var/lib/libvirt/qemu/ram/ ???
 +/var/lib/libvirt/qemu/ram/libvirt/ ???
 +/var/lib/libvirt/qemu/libvirt/qemu/ ???
 +/var/lib/libvirt/qemu/save/ Looks like it holds VMs' saved states.
 +/var/lib/libvirt/qemu/snapshot/ Looks like it's where VMs' snapshot are saved.
 +/var/lib/libvirt/sanlock/ ???
 </code> </code>
 ++++ ++++
  • virtualisation.1716033308.txt.gz
  • Last modified: 2024/05/18 11:55
  • by admin