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


相关推荐

  • Lua入门教程_自学素描基本入门教程

    Lua入门教程_自学素描基本入门教程什么是LuaLua是一个小巧的脚本语言。是巴西里约热内卢天主教大学(PontificalCatholicUniversityofRiodeJaneiro)里的一个研究小组,由Rober

    2022年8月1日
    10
  • 照片切割器_切割图片的软件

    照片切割器_切割图片的软件两款图片切割工具ShoeBox:http://renderhjs.net/shoebox/BigShear:https://www.fancynode.com.cn/bigshear下面试下Sh

    2022年8月3日
    4
  • tinyxml 内存泄露_tinyxml 用法[通俗易懂]

    tinyxml 内存泄露_tinyxml 用法[通俗易懂]场景说明:创建一个空的xml文件,要求格式如下:代码如下:TiXmlElement*RootElement=NULL;TiXmlDocument*pDoc=NULL;pDoc=newTiXmlDocument();TiXmlDeclaration*pDeclaration=newTiXmlDeclaration((“1.0”),(“UTF-8”),(“”));pDoc-&…

    2022年6月9日
    55
  • CentOS 7 安装 Nginx

    CentOS 7 安装 NginxCentOS7安装Nginx前言Linux的两种安装方式yum安装前言最近,在公司经常会进行项目的部署,但是服务器环境都是导师已经搭建好了的,我就是将项目文件放到特定目录。于是,我周末在家就进行了Nginx的安装学习。之前,在Windows上使用过Nginx,但是在Linux环境下Ngnix的安装和在Windows环境下安装是有一定区别的。这次进行在Linux环境下使用源码包的方式安…

    2022年6月7日
    34
  • c++中无法打开源文件_无法打开源文件iostream

    c++中无法打开源文件_无法打开源文件iostream一、无法打开文件“xxx.lib”出现这种错误一般为①未添加xxx.lib库文件②库添加后,路径不对,找不到对应的库文件路径解决方案:先查看库文件是否已经添加若未添加,右击项目->属性->链接器->输入;将库文件加入即可如果库文件已经添加,仍然报错,此时需要查看生成的库文件的路径了。先找到生成库文件的路径,右击项目->属性->常规->查看输出目录是否与生成的库文件的路径是否匹配,若不匹配,修改路径即可。二、无法打开源文件说明是库的附加包含路径有问题

    2022年10月14日
    4
  • 妇产科护理学试题库及答案_妇产科护理学题库集各章节

    妇产科护理学试题库及答案_妇产科护理学题库集各章节试题一1.关于子宫的位置与形态,正确的为DA.位于盆腔下方B.形如扁梨形C.容积为2mlD.前与膀胱,后与直肠为邻E.子宫峡部非孕时长3cm2.保持子宫前倾位置的一对主要韧带是CA.圆韧带B.阔韧带C.主韧带D.骨盆漏斗韧带E.子宫骶骨韧带3.与后穹隆顶端贴接的部分为EA.宫颈口B.附件C.膀胱D.直肠E.直肠子宫陷凹4.关于骨盆外测量径线的描述,错误的是BA.髂棘间径为两侧髂前上棘外缘间的距离B.坐骨结节间径为两侧坐骨结节外缘间的距离C

    2025年7月10日
    4

发表回复

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

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