首页 > 其他分享 >KVM环境:Active console session exists for this domain

KVM环境:Active console session exists for this domain

时间:2023-05-13 09:04:42浏览次数:38  
标签:domain console 07 exists pts 00 virsh root

做测试过程中被迫换电脑,但没有关掉原电脑的连接,所以用其他电脑连接测试环境时,发现之前的kvm测试环境因没有断开,无法连接:
error: operation failed: Active console session exists for this domain

[root@bogon ~]# virsh console db11g
Connected to domain db11g
Escape character is ^]
error: operation failed: Active console session exists for this domain

直接查询console相关进程并杀掉,
直接kill不成功,需要使用kill -9的方式:

[root@bogon ~]# ps -ef|grep console
root     11001 10035  0 08:11 pts/13   00:00:00 grep --color=auto console
root     28536 28270  0 07:52 pts/7    00:00:00 virsh console db11g
root     28643 28332  0 07:53 pts/11   00:00:00 virsh console db11gadg
root     28741 28383  0 07:53 pts/12   00:00:00 virsh console db11gcas
[root@bogon ~]# kill 28536
[root@bogon ~]# ps -ef|grep console
root     11300 10035  0 08:12 pts/13   00:00:00 grep --color=auto console
root     28536 28270  0 07:52 pts/7    00:00:00 virsh console db11g
root     28643 28332  0 07:53 pts/11   00:00:00 virsh console db11gadg
root     28741 28383  0 07:53 pts/12   00:00:00 virsh console db11gcas
[root@bogon ~]# kill -9 28536
[root@bogon ~]# ps -ef|grep console
root     11454 10035  0 08:12 pts/13   00:00:00 grep --color=auto console
root     28643 28332  0 07:53 pts/11   00:00:00 virsh console db11gadg
root     28741 28383  0 07:53 pts/12   00:00:00 virsh console db11gcas

再次尝试连接OK:

[root@bogon ~]# virsh console db11g
Connected to domain db11g
Escape character is ^]

[root@db11g ~]#

若要连接其他console也一样的操作方法。

标签:domain,console,07,exists,pts,00,virsh,root
From: https://www.cnblogs.com/jyzhao/p/17396709.html

相关文章

  • postman 的 console 窗口,助力 http 请求错误时的问题排查
    postman是个很不错的http请求测试工具,有时我们使用它发送http请求,但是因为各种原因,导致请求失败,没有response返回,可能只有一个状态码,这让我们排查起来非常困难,比如下图所示,请求一个接口后,看不到response,只能看到status是401unauthorized,字面意思是没权限。但是我明......
  • Yahoo: 451 Message temporarily deferred due to unresolvable RFC.5321 from domain
    Hello,ThankyouforcontactingYahooPostmaster.Theerroryou’regettingiscausedbyanissuewithyourFromaddress.Theseerrorsindicatethatthedomainusedtotherightofthe@intheMAILFROMdoesnotappeartobearealdomain.Wedeterminei......
  • Go源码阅读——github.com/medcl/esm —— domain.go
    esm(AnElasticsearchMigrationTool)—— domain.gohttps://github.com/medcl/esmrelease:8.7.1通过阅读好的源代码,细致思考,理性分析并借鉴优秀实践经验,提高zuoyang的编程水平,所谓"他山之石,可以攻玉" 该是如此吧。 /*Copyright2016Medcl(mATmedcl.net)Licens......
  • 交换机重置console口密码
    1、通过Console口连接华为交换机,手动重启交换机。2、界面出现BIOS LADING...,按下快捷键“Ctrl+B”并输入BootROM/BootLoad密码,进入BootROM/BootLoad主菜单。3、初始密码:[email protected]  A必须大写。4、选择7 Clearpasswordforconsoleuser 清除console用户密码模式......
  • javaScript 常用去除 ‘console
    javaScript常用去除‘console.log’办法手动注释掉console.log语句:可以手动在代码中注释掉所有console.log语句,但是这种方法比较繁琐,并且需要手动维护,不太适合大型项目。使用Babel插件去除console.log:Babel是一个JavaScript编译器,它可以将ES6+的代码转换成......
  • vConsole
    vConsole是一个轻量、可拓展、针对手机网页的前端开发者调试面板,是微信小程序的官方调试工具。开源地址:https://github.com/Tencent/vConsolehttps://gitee.com/Tencent/vConsole预览http://wechatfe.github.io/vconsole/demo.html以前微信打开http://debugx5.qq.com可以......
  • JVM系列---【使用jconsole开启JVM监控】
    使用jconsole开启JVM监控设置远程监控相关选项对于远程Java进程的连接,会要麻烦些,首先需要在需监控的远程Java程序启动脚本中加入与JVM远程监控相关的选项:1.开启JVM远程监控-Dcom.sun.management.jmxremote=true2.监控的IP地址-Djava.rmi.server.hostname=192.168.91.166,远......
  • [Docker] Add a SQLite Console Shortcut with the Dockerfile
    Withalong-runningnodeserverandadatabase,sometimesit'susefultosshintothevirtualmachinetoexplorethefilesystem,andlookatthedatabase.InDockerfile,add:RUNecho'#!/bin/sh\nset-xe\nsqlite3\$DATABASE_URL'>/u......
  • 迁移学习(VMT)《Virtual Mixup Training for Unsupervised Domain Adaptation》
    论文信息论文标题:VirtualMixupTrainingforUnsupervisedDomainAdaptation论文作者:TakeruMiyato,S.Maeda,MasanoriKoyama,S.Ishii论文来源:2019CVPR论文地址:download 论文代码:download视屏讲解:click   ......
  • (转)SQL中EXISTS的用法
    比如在Northwind数据库中有一个查询为SELECTc.CustomerId,CompanyNameFROMCustomerscWHEREEXISTS(SELECTOrderIDFROMOrdersoWHEREo.CustomerID=c.CustomerID)这里面的EXISTS是如何运作呢?子查询返回的是OrderId字段,可是外面的查询要找的是CustomerID和CompanyName字段,......