Linux Virtualization Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(43 intermediate revisions by the same user not shown)
Line 23: Line 23:
=Guest Operations=
=Guest Operations=


* [[Linux KVM Virtualization Guest Operations#List_Available_Guests|List available guests]]
* [[Linux KVM Virtualization Guest Operations#List_Available_Guests|List Available Guests]]
 
* [[Linux KVM Virtualization Guest Operations#Information_about_a_Guest|Information about a Guest]]
==List Available Guests==
* [[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 list]] [--all]
* [[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]]
==Information about a Guest==
* [[Linux Virtualization Adding Storage to Guests|Add Storage to Guests]]
 
* [[Linux Virtualization Reconfigure Guest Memory|Reconfigure Guest Memory]]
==Start/Stop Guest Virtual Machines==
* [[Linux KVM Virtualization Reconfigure Guest CPUs|Reconfigure Guest CPUs]]
<span id='Start.2FStop_Guest_VMs'></span>
* [[Linux Virtualization Remove Storage from Guest|Remove Storage from Guest]]
 
* [[Linux Virtualization Reconfigure Guest Network|Reconfigure Guest Network]]
[[virsh start]] [--console] <vm-name>
* [[Linux Virtualization Cloning a KVM Guest Virtual Machine|Clone a Guest]]
[[virsh shutdown]] <vm-name>
* Snapshot:
 
** [[Linux KVM Virtualization Manual Low-Level Guest Export/Import Procedure|Manual Low-Level Export/Import]]
==Connect to the Guest Virtual Machine==
** [[Linux_KVM_Virtualization_Guest_Snapshot_Using_virsh_snapshot_Functionality|Snapshot with virsh shapshot]]
<span id='Connect_to_the_Guest_VM'></span>
* [[Linux_KVM_Virtualization_Guest_Operations#Remove_a_Guest|Remove a Guest]]
 
[[virsh console]]
 
==Create a Guest Virtual Machine==
 
<font color=red>Can I name a guest "ose36.master", or "''environment-name''.''host-in-environment-name''"?. It would be useful in virsh list.</font>
 
Virtualization host storage and host-level networking must be configured as a prerequisite to creating guest virtual machines. Once storage pools and storage volumes are made available, and the networking is configured, guest virtual machines can be created with
 
[[Virt-install#Overviewl|virt-install]]
 
If the XML definition of a virtual machine is available, it can be created with:
 
[[virsh define|virsh define]]
 
==Add Storage to Guests==
<span id='Adding_Storage_to_Guests'></span>
{{Internal|Linux Virtualization Adding Storage to Guests|Adding Storage to Guests}}
 
==Clone a Guest Virtual Machine==
<span id='Cloning_a_Guest_VM'></span><span id='Cloning_a_Guest_Virtual_Machine'></span>
 
{{Internal|Linux Virtualization Cloning a KVM Guest Virtual Machine|Cloning a Guest Virtual Machine}}
 
==Snapshot Guest Virtual Machine==
 
{{Internal|Linux Virtualization Snapshot a KVM Guest Virtual Machine|Snapshot a Guest Virtual Machine}}


=Virtualization Host Storage Operations=
=Virtualization Host Storage Operations=


==Storage Pool Operations==
==Virtualization Host Storage Pool Operations==
<span id='Storage_Pool_Configuration'></span>


* [[KVM Virtualization Storage Pool Info|Storage Pool Info]]
* [[KVM Virtualization Storage Pool Info|Storage Pool Info]]
Line 79: Line 51:
* [[KVM Virtualization Storage Pool Deletion|Storage Pool Deletion]]
* [[KVM Virtualization Storage Pool Deletion|Storage Pool Deletion]]


==Storage Volume Operations==
==Virtualization Host Storage Volume Operations==
<span id='Storage_Volume_Configuration'></span>


* [[Virsh_vol-create-as|Storage Volume Creation]]
* [[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]]
* [[virsh vol-clone|Storage Volume Cloning]]
* [[Qemu-img#Take_a_Snapshot|Storage Volume Snapshot with qemu-img]]
* [[libvirt Storage Volume Renaming|Storage Volume Renaming]]
* [[libvirt Storage Volume Renaming|Storage Volume Renaming]]
* [[virsh vol-delete|Storage Volume Deletion]]
* [[virsh vol-delete|Storage Volume Deletion]]
* [[KVM Virtualization Storage Volume Removal, Off-Line Archival and Restoration|Storage Volume Removal, Off-Line Archival and Restoration]]


=Virtualization Host Network Operations=
=Virtualization Host Network Operations=


* [[KVM Virtualization Attaching a Guest Directly to a Virtualization Host Network Interface|Attaching a Guest Directly to a Virtualization Host Network Interface]]
* [[libvirt Virtual Network Info Operation|Virtual Network Info]]
* [[Virsh_net-edit#Modify_DHCP_Range|Modifying the Range of the DHCP Server for a Virtual Network]]
* [[libvirt Virtual Network Creation Operation|Virtual Network Creation]]
* [[Virsh_net-edit#Overview|Virtual Network Configuration]]
** [[Virsh_net-edit#Modify_DHCP_Range|Modifying the Range of the DHCP Server for a Virtual Network]]
* [[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]]
* [[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