how can i attach directly to a terminal of kvm vm?

3 posts / 0 new
Last post
#1 Mon, 09/14/2015 - 14:28
airspringsoftware

how can i attach directly to a terminal of kvm vm?

Hello,

We are in the process of switching over from xen to kvm machines... with xen machines you can use 'xm console somevm' to attach directly to a vm's console (as opposed to attaching via ssh). How do you attach directly to kvm machines created by cloudmin?

I have looked at virsh 'virsh list --all' gives me an empty list even though there are several kvm machines running on this host. So I suppose virsh can't connect to these? Maybe there is some configuration I should check?

I also looked at the 'cloudmin shell-system --host somevm', which works, but only if ssh is working. Also, cloudmin is only installed on one of the hosts. I need to be able to attach directly from arbitrary host to any of the vms on that host.

I would like to be able to stop/start/access console/reboot a vm directly so that if ssh is broken, or if the cloudmin machine is down, i can still have access to the vms. The host systems are all CentOS 7 64 bit.

Thanks, --Jim

Tue, 09/22/2015 - 10:48
JamieCameron

Try the command cloudmin login-system --host somevm .

Alternately, you can use the "Graphical Console" feature in the Cloudmin UI. In fact, this might be the only solution, as I don't think serial console access is supported for KVM instances.

''

Wed, 01/20/2016 - 14:34
steen

On a plain centos7 installation using the cloudmin installation, and after that creating the first guest from CentOS 7.0 64-bit XFS KVM instance with base OS:

cloudmin login-system --host somevm

Results in: This system does not support console logins

Why ?

And libvirt, vrish and all tolls I was used to from before does not work at all. systemctl start libvirtd Job for libvirtd.service failed because the control process exited with error code. See "systemctl status libvirtd.service" and "journalctl -xe" for details.

irsh list error: failed to connect to the hypervisor error: no valid connection error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused

Topic locked