From b08ce79916ae358c47fb1c6cc99315284cc10e49 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Tue, 27 Dec 2016 05:38:38 +0100 Subject: [PATCH] Ajout info sur libvirt stockage --- HowtoKVM.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/HowtoKVM.md b/HowtoKVM.md index 94325f34..967dd3ce 100644 --- a/HowtoKVM.md +++ b/HowtoKVM.md @@ -179,6 +179,53 @@ Vous pouvez écrire votre propre fichier de définition XML puis l'injecter : ## Stockage +Les stockages disponibles doivent être visibles par libvirt : + +~~~ +# virsh pool-list --all + +# virsh help pool + Storage Pool (help keyword 'pool'): + find-storage-pool-sources-as find potential storage pool sources + find-storage-pool-sources discover potential storage pool sources + pool-autostart autostart a pool + pool-build build a pool + pool-create-as create a pool from a set of args + pool-create create a pool from an XML file + pool-define-as define a pool from a set of args + pool-define define (but don't start) a pool from an XML file + pool-delete delete a pool + pool-destroy destroy (stop) a pool + pool-dumpxml pool information in XML + pool-edit edit XML configuration for a storage pool + pool-info storage pool information + pool-list list pools + pool-name convert a pool UUID to pool name + pool-refresh refresh a pool + pool-start start a (previously defined) inactive pool + pool-undefine undefine an inactive pool + pool-uuid convert a pool name to pool UUID + +# virsh help volume + Storage Volume (help keyword 'volume'): + vol-clone clone a volume. + vol-create-as create a volume from a set of args + vol-create create a vol from an XML file + vol-create-from create a vol, using another volume as input + vol-delete delete a vol + vol-download download volume contents to a file + vol-dumpxml vol information in XML + vol-info storage vol information + vol-key returns the volume key for a given volume name or path + vol-list list vols + vol-name returns the volume name for a given volume key or path + vol-path returns the volume path for a given volume name or key + vol-pool returns the storage pool for a given volume key or path + vol-resize resize a vol + vol-upload upload file contents to a volume + vol-wipe wipe a vol +~~~ + ### Volumes DRBD/LVM TODO @@ -355,6 +402,8 @@ loop deleted : /dev/loop0 ## Réseau +Les interfaces réseau en place doivent être visibles par libvirt : + ~~~ # virsh iface-list --all # virsh net-list --all @@ -473,7 +522,7 @@ Et l'on peut configurer avec un réseau NAT avec _virt-manager_ ou `virsh net-cr ~~~{.xml} - reseau1 + nat0 f94578a3-3b7f-4c60-a441-d1f86920fb59