欢迎使用CSDN-markdown编辑器
2016-02-25 23:11
323 查看
KVM Command
The command I used to create virtual machine
Enter KVM GUIvirt-manager
Enter command interface
virtsh
Quit command interface
quit
Start virtual machine
virsh start host-name & start host-name
eg: if the host-name is control-1 and you are in normal shell command interface, use command : virsh start control-1
if the host-name is control-1 and you are in KVM command interface, use command : start control-1
Stop virtual machine
virsh stop host-name & virsh stop host-name
eg: if the host-name is control-1 and you are in normal shell command interface, use command : virsh shutdown control-1
if the host-name is control-1 and you are in KVM command interface, use command : shutdown control-1
Make a snapshot of a virtual machine
snapshot-create-as domain-name create-snapshot-name
Before execute this command,Please make sure you have shutdown the virtual machine, if you haven’t shutdown this machine,
the created snapshot’s status is running.
the domain-name is the host name of your virtual machine, and the create-snapshot-name is the name your given to the created snapshot.
See a KVM’s virtual machine list
virsh list & list
the list show all the domain of virtual machine.
See virtual machine’s snapshot
virsh snapshot-list host-name & snapshot-list host-name
Delete a snapshot of a virtual machine
virsh snapshot-delete host-name snapshot-name & snapshot-delete host-name snapshot-name
The host-name is the machine’s domain name ,you can ssh this machine and click shell command hostname
to see the domain name.The snapshot-name is the machine’s snapshot name if you have created the snapshot.
If you are in normal shell environment, use virsh snapshot-delete host-name snapshot-name
If you are in virsh shell environment,use snapshot-delete host-name snapshot-name
Revert a snapshot to a machine
virsh snapshot-revert host-name snapshot-name & snapshot-revert host-name snapshot-name
Undefin a virt machine
virsh undefine host-name & undefin host-name
相关文章推荐
- UVA 580(p331)----Critical Mass
- PAT (Basic Level) Practise 1001. 害死人不偿命的(3n+1)猜想
- Cannot retrieve debugging output
- SWIFT 通过字符串创建相关的类
- Tomcat的安装与配置
- HDU 1525 Eculid's Game(博弈)
- Android-Adapter实现方法(ArrayAdapter,SimpleAdapter,SimpleCursorAdapter)
- java并发编程——四(synchronized\Lock\volatile) 锁机制原理及关联
- Exoplayer学习
- Uva The Tower of Babylon
- 2016/2/25 html+css学习资源
- NSSet和NSMutableSet 确保数据的唯一性--备
- java多线程-Exchanger
- View Programming Guide for iOS 学习笔记_1
- UVA 557(p344)----Burger
- 利用php的explode函数将字符串按分隔符(比如空格)分拆并组装在数组中-----要考虑连续空格问题
- MD5 delPhi 加密
- CSS定位属性Position详解
- JS下实现加号减号的数量加一减一
- UVA 548(p155)----Tree