KVM命令

KVM命令KVMCommandThecommandIusedtocreatevirtualmachineEnterKVMGUIvirt-managerEntercommandinterfacevirtshQuitcommandinterfacequitStartvirtualmachinevirshstarthost-name&starth

兄Die,写代码太累了?孤独寂寞冷?还没有女朋友吧?
关注微信公众号(瓠悠笑软件部落),送知识!送知识!送温暖!送工作!送女朋友!插科打诨哟!
huyouxiao.com
KVM Command

##The command I used to create virtual machine

  1. Enter KVM GUI

virt-manager

  1. Enter command interface

virtsh

  1. Quit command interface

quit

  1. 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

  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

  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.

  1. See a KVM’s virtual machine list

virsh list & list

the list show all the domain of virtual machine.

  1. See virtual machine’s snapshot

virsh snapshot-list host-name & snapshot-list host-name

  1. 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
  1. Revert a snapshot to a machine

virsh snapshot-revert host-name snapshot-name & snapshot-revert host-name snapshot-name

  1. Undefin a virt machine

virsh undefine host-name & undefin host-name

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/234460.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • window.location.href的用法

    window.location.href的用法javascript中的location.href有很多种用法,主要如下。self.location.href="/url"当前页面打开URL页面location.href=&

    2022年7月4日
  • java框架漏洞_Spring 框架漏洞集合「建议收藏」

    java框架漏洞_Spring 框架漏洞集合「建议收藏」虽说是Spring框架漏洞,但以下包含并不仅SpringFramework,SpringBoot,还有SpringCloud,SpringData,SpringSecurity等。CVE-2010-1622SpringFrameworkclass.classLoader类远程代码执行影响版本:SpringSourceSpringFramework3.0.0-3.0.2、S…

    2022年7月8日
  • 中文情感词典的构建与使用_文本情感识别

    中文情感词典的构建与使用_文本情感识别首先,国外英文的情感分析已经取得了很好的效果,得益于英文单词自身分析的便捷性与英文大量的数据集WordNet。但由于中文的多变性,语义的多重性与数据集的缺乏,使得国内的情感分析暂落后于国外。本文将记录博主在项目中构建情感词典的经验,欢迎大家指正。我们首先将情感词典分为通用情感词典与专用情感词典。1.通用情感词典的构建通用情感词典的构建主要是通过将目前开源的情感词典整合起来,筛去重复和无…

    2022年8月23日
  • rabbitmq安装配置_阿里云rabbitmq

    rabbitmq安装配置_阿里云rabbitmqRabbitMQ是什么,浅谈RabbitMQ!

    2022年9月29日
  • Linux防火墙命令大全「建议收藏」

    Linux防火墙命令大全「建议收藏」原:https://blog.csdn.net/zhang123456456/article/details/781492061、firewalld的基本使用启动:systemctlstartfirewalld查看状态:systemctlstatusfirewalld停止:systemctldisablefirewalld禁用:systemctlstop…

    2022年6月16日
  • 開發中的DEV,QAS,UAT,PRD是什麼意思

    開發中的DEV,QAS,UAT,PRD是什麼意思IDES:InternetDemonstrationandEvaluationSystem交互式演示与评估系统DEV:DevelopmentSystem,开发系统QAS:QualityAssuranceSystem,质量保证系统UAT:UserAcceptanceTest用户验收测试PRD:ProductionSystem,生产系统…

    2022年6月28日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号