Mettre à jour 'virsh.md'
This commit is contained in:
parent
a83c7a309b
commit
483dde4ad2
11
virsh.md
11
virsh.md
@ -1,4 +1,5 @@
|
|||||||
##virsh usefull command
|
## virsh usefull command
|
||||||
|
### standart
|
||||||
|
|
||||||
- recover configuration xml from VM: `virsh dumpxml windows7> windows7.xml`
|
- recover configuration xml from VM: `virsh dumpxml windows7> windows7.xml`
|
||||||
- start VM: `virsh start nas`
|
- start VM: `virsh start nas`
|
||||||
@ -6,4 +7,12 @@
|
|||||||
- rename VM: `virsh domrename --domain generic2 --new-name windows7`
|
- rename VM: `virsh domrename --domain generic2 --new-name windows7`
|
||||||
- list all vm: `virsh list --all`
|
- list all vm: `virsh list --all`
|
||||||
- create with xml file:`create --file debian8.xml`
|
- create with xml file:`create --file debian8.xml`
|
||||||
|
|
||||||
|
|
||||||
|
### snapshot:
|
||||||
|
- list for domain `virsh snapshot-list --domain nas`
|
||||||
|
- create snapshot `virsh snapshot-create-as --domain {VM-NAME} --name {SNAPSHOT-NAME} --live `
|
||||||
|
- info snapshot: ` virsh snapshot-info --domain nas --snapshotname "ansible ping OK" `
|
||||||
|
- appliquer une snapshot: `virsh snapshot-revert --domain --snapshotname "ansible ping OK" --running`
|
||||||
|
- delete snapshot: `virsh snapshot-delete --domain freebsd --snapshotname 5Sep2016_S2`
|
||||||
-
|
-
|
Reference in New Issue
Block a user