virt-manager / virt-viewer => Virtualization =>命令行选项?

我的系统上没有安装X. 是否有一些virt-manager / virt-viewer程序的替代方法只能在curses(?)库的命令行上运行(=>仅仅以“top”的文本格式打印信息呢?

谢谢!! 延

virsh进行pipe理(debian软件包libvirt-bin),virt-top进行统计

  1. 远程:使用vnc查看器的VNC。 如果你不知道端口号,并做一个

    ps -aux | grep kvm

    根4042 7.2 1.9 463456 163132? Sl 20:19 1:36 / usr / libexec / qemu-kvm -S -M rhel5.4.0 -m 256 -smp 1 -name centos -uuid 333e53da-4f9d-2d18-ccba-8ea9f4708886 -no-kvm-pit-reinjection -monitor pty -pidfile /var/run/libvirt/qemu//centos.pid -boot c -drive file = / var / lib / libvirt / images / base-centos.img,if = ide,index = 0,boot = on,cache = none -drive file =,if = ide,media = cdrom,index = 2 -net nic,macaddr = 54:52:00:6b:77:fb,vlan = 0 -net tap,fd = 15, script =,vlan = 0,ifname = vnet0 -serial pty -parallel none -usb -vnc 0.0.0.0:1 -k en-us

    VNC:// kvm_host_ip:5901

  2. 从本地主机:串行连接将工作

我一直在使用Fedora笔记本电脑上的virt-manager连接到运行KVM(libvirt)的无头CentOS 5.X服务器。 virt-manager可以远程连接到运行KVM的其他计算机。

查看virt-manager中的File下拉菜单,在其中显示“add connection”。 选中“连接到远程主机”框。 就协议连接远程系统而言,有几种select。 在我的virt-manager(0..8.7)版本中,我有以下几点:

  • SSH
  • TCP(SASL,Kerberos,…)
  • 带有证书的SSL / TLS

最简单的就是SSH,IMO。 这里详细介绍了如何做到这一点: http : //virt-manager.org/page/RemoteSSH 。

最终,virt-manager在幕后做了以下工作:

virt-viewer -c qemu+ssh://[email protected]/system myvm1 

其中192.168.1.1是我的KVM无头服务器,myvm1是我的一个客户KVM实例。 或者,您可以从无头系统远程运行virt-manager,并使用如下命令通过ssh进行隧道传输:

 ssh -X [email protected] virt-manager 

这也可以,但是我通常只在LAN情况下使用,而不是WAN。