KVM命令

KVM命令KVMCommandThecommandIusedtocreatevirtualmachineEnterKVMGUIvirt-managerEntercommandinterfacevirtshQuitcommandinterfacequitStartvirtualmachinevirshstarthost-name&starth

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全家桶1年46,售后保障稳定

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

Jetbrains全家桶1年46,售后保障稳定

  • 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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 初始化任务Bootstrapper

    初始化任务Bootstrapper每个应用程序都需要在启动的时候做些初始化任务,在退出的时候做些清理工作,这类任务被归为Bootstrapper,在codeplex上的开源项目,详见http://bootstrapper.codeplex.com/帮助我们来完成以下的任务。1、在需要的时候,我们可以把实现和接口进行分离,实现使用依赖注入(不一定要项目引用,只需要文件夹下有实现的DLL…

    2022年7月20日
    11
  • 进程调度算法c语言实现_进程调度算法有哪些

    进程调度算法c语言实现_进程调度算法有哪些对一个非抢占式多道批处理系统采用以下算法的任意两种,实现进程调度,并计算进程的开始执行时间,周转时间,带权周转时间,平均周转时间,平均带权周转时间1.先来先服务算法2.短进程优先算法*3.高响应比优先算法三、设计思想每个进程有一个进程控制块(PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。进程的优先数及需要的运行时间…

    2022年9月29日
    0
  • Django(61)认证组件源码分析

    Django(61)认证组件源码分析认证组件源码入口APIView下的dispatch下的self.initial(request,*args,**kwargs),源码如下:definitial(self,request,

    2022年7月31日
    7
  • Repeater嵌套绑定Repeater「建议收藏」

    Repeater嵌套绑定Repeater「建议收藏」Repeater嵌套Repeater的结构: cs代码:  Code private void RpTypeBind()   {       //GetQuestionTypeAndCount() 返回一个datatable        this.rptypelist.DataSource = LiftQuestionCtr.GetQuestio…

    2022年7月14日
    17
  • C语言自定义函数如何返回数组

    C语言自定义函数如何返回数组C语言自定义函数如何返回数组 C语言研究中心 CTO  9个月前(01-28)  4759次浏览  5个评论最近看到一些同学问题,有提到说:如何在一个函数中返回数组呢?能否直接在自定义函数中,写成char*类型返回值,直接返回呢?,代码如下:   直接返回str数组名(注意不需要加&,还有好多同学犯这个错)但事实上,运行结果并非正常,我们尝试在

    2022年6月16日
    38
  • 使用Fastjson生成Json字符串少字段属性(数据丢失)「建议收藏」

    在开发中经常要使用到fastJson来转换对象为json 串,但是最近发现在一个对象转换的时候,总是丢失了一个字段的值,(数据丢失).就很纳闷。到网上找了很多方法总是不行,最后总算是在一篇博文中看到问题的关键!现在整理如下,希望可以帮助到更多的人。package per.eblink.pojo; public class Node { private String id

    2022年2月24日
    89

发表回复

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

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