Linux Virtualization Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(126 intermediate revisions by the same user not shown)
Line 6: Line 6:


{|
{|
| [[virsh]] || [[virt-install]] || [[guestmount]] || [[guestunmount]] || [[virt-builder]] || [[virt-cat]] || [[virt-filesystems]] || [[virt-inspector]]
| [[virsh]] ||
|-
|}   
{|
| [[virt-install]] || [[guestmount]] || [[guestunmount]] || [[virt-builder]] || [[virt-cat]] || [[virt-filesystems]] || [[virt-inspector]]
|-
|-
| [[libguestfs]] || [[virt-copy-in]] || [[virt-copy-out]] || [[virt-customize]] || [[virt-df]] || [[virt-diff]] || [[virt-edit]] || [[virt-format]]
| [[libguestfs]] || [[virt-copy-in]] || [[virt-copy-out]] || [[virt-customize]] || [[virt-df]] || [[virt-diff]] || [[virt-edit]] || [[virt-format]]
Line 13: Line 17:
|-
|-
| [[virt-tar-out]] || [[virt-tar-in]] || [[virt-top]] || [[virt-v2v]] || [[virt-viewer]] || [[virt-what]] || [[virt-who]] || [[virt-xml-validate]]
| [[virt-tar-out]] || [[virt-tar-in]] || [[virt-top]] || [[virt-v2v]] || [[virt-viewer]] || [[virt-what]] || [[virt-who]] || [[virt-xml-validate]]
|-
| [[qemu-img]]
|}
|}


=Create a Guest Virtual Machine=
=Guest Operations=
 
* [[Linux KVM Virtualization Guest Operations#List_Available_Guests|List Available Guests]]
* [[Linux KVM Virtualization Guest Operations#Information_about_a_Guest|Information about a Guest]]
* [[Linux_KVM_Virtualization_Guest_Operations#Create_a_Guest_Virtual_Machine|Create a Guest]]
* [[Linux_KVM_Virtualization_Guest_Operations#Start.2FStop_Guest_Virtual_Machines|Start/Stop Guests]]
* [[Virsh_autostart#Configure_to_Automatically_Start_at_Boot|Configure a Guest to Automatically Start at Boot]]
* [[Linux_KVM_Virtualization_Guest_Operations#Connect_to_the_Guest_Virtual_Machine|Connect to Guest]]
* [[Linux Virtualization Adding Storage to Guests|Add Storage to Guests]]
* [[Linux Virtualization Reconfigure Guest Memory|Reconfigure Guest Memory]]
* [[Linux KVM Virtualization Reconfigure Guest CPUs|Reconfigure Guest CPUs]]
* [[Linux Virtualization Remove Storage from Guest|Remove Storage from Guest]]
* [[Linux Virtualization Reconfigure Guest Network|Reconfigure Guest Network]]
* [[Linux Virtualization Cloning a KVM Guest Virtual Machine|Clone a Guest]]
* Snapshot:
** [[Linux KVM Virtualization Manual Low-Level Guest Export/Import Procedure|Manual Low-Level Export/Import]]
** [[Linux_KVM_Virtualization_Guest_Snapshot_Using_virsh_snapshot_Functionality|Snapshot with virsh shapshot]]
* [[Linux_KVM_Virtualization_Guest_Operations#Remove_a_Guest|Remove a Guest]]
 
=Virtualization Host Storage Operations=


{{Internal|virt-install|virt-install}}
==Virtualization Host Storage Pool Operations==
{{Internal|virsh define|virsh define}}


=Start/Stop Guest VMs=
* [[KVM Virtualization Storage Pool Info|Storage Pool Info]]
* [[KVM Virtualization Disk-Based Storage Pool Configuration|Disk-Based Storage Pool Configuration]]
* [[KVM Virtualization Partition-Based Storage Pool Configuration|Partition-Based Storage Pool Configuration]]
* [[KVM Virtualization Directory-Based Storage Pool Configuration|Directory-Based Storage Pool Configuration]]
* [[KVM Virtualization LVM-Based Storage Pool Configuration|LVM-Based Storage Pool Configuration]]
* [[KVM Virtualization Storage Pool Deletion|Storage Pool Deletion]]


{{Internal|virsh start|virsh start}}
==Virtualization Host Storage Volume Operations==
{{Internal|virsh shutdown|virsh shutdown}}


=Cloning a Guest VM=
* [[KVM Virtualization Storage Volume Info|Storage Volume Info]]
* Storage Volume Creation:
** [[Virsh_vol-create-as|With vol-create-as]]
** [[Virsh vol-create|With vol-create]]
** [[KVM Virtualization Placing an ISO Image in a Directory-Based Storage Pool|Placing an ISO Image in a Directory-Based Storage Pool]]
* [[virsh vol-clone|Storage Volume Cloning]]
* [[Qemu-img#Take_a_Snapshot|Storage Volume Snapshot with qemu-img]]
* [[libvirt Storage Volume Renaming|Storage Volume Renaming]]
* [[virsh vol-delete|Storage Volume Deletion]]
* [[KVM Virtualization Storage Volume Removal, Off-Line Archival and Restoration|Storage Volume Removal, Off-Line Archival and Restoration]]


<font color=red>TO replicate and verify:
=Virtualization Host Network Operations=


* Shut down the guest with [[virsh shutdown]].
* [[libvirt Virtual Network Info Operation|Virtual Network Info]]
* Export the XML configuration with [[virsh dumpxml]].
* [[libvirt Virtual Network Creation Operation|Virtual Network Creation]]  
* Copy the XML definition and the disk image to the target node.
* [[Virsh_net-edit#Overview|Virtual Network Configuration]]
* Edit the XML as needed.
** [[Virsh_net-edit#Modify_DHCP_Range|Modifying the Range of the DHCP Server for a Virtual Network]]
* Define the guest with [[virsh define]].
* [[libvirt Virtual Network Lifecycle Operation|Virtual Network Lifecycle (Start/Stop)]]
* [[Attaching_a_Guest_Directly_to_a_Virtualization_Host_Network_Interface_with_a_macvtap_Driver#Overview|Attaching a Guest Directly to a Virtualization Host Network Interface with a macvtap Driver]]
* [[KVM Virtualization Bridged Networking Configuration|Bridged Networking Configuration]]

Latest revision as of 00:07, 30 July 2023

Internal

Commands

virsh
virt-install guestmount guestunmount virt-builder virt-cat virt-filesystems virt-inspector
libguestfs virt-copy-in virt-copy-out virt-customize virt-df virt-diff virt-edit virt-format
virt-log virt-ls virt-make-fs virt-p2v virt-rescue virt-resize virt-sparsify virt-sysprep
virt-tar-out virt-tar-in virt-top virt-v2v virt-viewer virt-what virt-who virt-xml-validate
qemu-img

Guest Operations

Virtualization Host Storage Operations

Virtualization Host Storage Pool Operations

Virtualization Host Storage Volume Operations

Virtualization Host Network Operations