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)
上一篇 2025年6月3日 下午12:43
下一篇 2025年6月3日 下午1:15


相关推荐

  • 详解IPv4地址

    详解IPv4地址IPv4 地址范围 0 0 0 0 255 255 255 255 约有 43 亿 计算机的 IP 地址由两部分组成 一部分为网络位 一部分为主机位 同一网段内的计算机网络部分相同 主机部分不同同时重复出现 路由器连接不同网段 负责不同网段之间的数据转发 交换机连接的是同一网段的计算机 通过设置网络地址和主机地址 在互相连接的整个网络中保证每台主机的 IP 地址不会互相重叠 即 IP 地址具有了唯一性 网络掩码 用于区分一个 IP 地址的网络部分和主机部分 IP 地址根据网络 ID 的不同分为 A

    2026年3月19日
    2
  • 多线程之ForkJoin框架[通俗易懂]

    多线程之ForkJoin框架[通俗易懂]Fork/Join框架是Java7提供了的一个用于并行执行任务的框架,是一个把大任务分割成若干个小任务,最终汇总每个小任务结果后得到大任务结果的框架。工作窃取算法工作窃取算法:通过此算法降低线程等待和竞争。工作窃取(work-stealing)算法是指某个线程从其他队列里窃取任务来执行。那么为什么需要使用工作窃取算法呢?假如我们需要做一个比较大的任务,我们可以把这个任务分割为若干互不依赖的子任

    2026年2月1日
    6
  • 2021年美赛A题翻译

    2021年美赛A题翻译美赛A题:真菌欢迎使用Markdown编辑器2021年美赛交流qq群:523820707需要电子版的可以关注关注公众号“1024遇见ta”:回复”A题”需要“美赛历年真题和特等奖论文集”的关注公众号“1024遇见ta”,回复“美赛”即可获得资源包,有条件的支持一下哈!欢迎使用Markdown编辑器2021年美赛交流qq群:523820707需要电子版的可以关注关注公众号“1024遇见ta”:回复“A题”需要“美赛历年真题和特等奖论文集”的关注公众号“1024遇见ta”,回复“美

    2022年5月4日
    67
  • 基于HibernateTemplate关于Hibernate 增删改查

    基于HibernateTemplate关于Hibernate 增删改查转自 微点阅读 https www weidianyuedu comHibernate 增删改查 packagecom abin ssh bean importjava util List importorg apache commons logging Log importorg apache commons logging LogFactory importorg hibernate LockMode importorg springframew co

    2026年3月18日
    1
  • 2026年电脑重装系统win7步骤详解教程

    2026年电脑重装系统win7步骤详解教程

    2026年3月14日
    4
  • Java程序设计(基础)- 数据类型

    Java程序设计(基础)- 数据类型

    2021年7月21日
    45

发表回复

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

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