Virtual machine 虚拟查看器XDG\U运行时\U目录
你好 我正试图通过使用提供的映像来使用KVM加速VM 我能够成功地创建VM,但问题是我无法访问它的控制台 我使用ssh远程连接到我的服务器(ubuntu 14.04),并安装了以下软件包: 已安装的软件包:Virtual machine 虚拟查看器XDG\U运行时\U目录,virtual-machine,kvm,libvirt,xdgutils,virsh,Virtual Machine,Kvm,Libvirt,Xdgutils,Virsh,你好 我正试图通过使用提供的映像来使用KVM加速VM 我能够成功地创建VM,但问题是我无法访问它的控制台 我使用ssh远程连接到我的服务器(ubuntu 14.04),并安装了以下软件包: 已安装的软件包: sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils virtinst virt-viewer vncviewer -y 这是我用来创建实例的命令: virt-install --graphic
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder
bridge-utils virtinst virt-viewer vncviewer -y
这是我用来创建实例的命令:
virt-install --graphic vnc --connect qemu:///system --virt-type kvm
--name licenseServer --ram 2048 --vcpus=2
--disk path=/var/lib/libvirt/images/licenseServer.img,size=10
--cdrom=/root/licenseServer.qcow2 --bridge br0
输出:
Starting install...
Creating domain... | 0 B 00:00
error: XDG_RUNTIME_DIR not set in the environment.
Cannot open display:
Run 'virt-viewer --help' to see a full list of available command line options
Domain installation still in progress. You can reconnect to the console
to complete the installation process.
创建的实例:
Id Name State
----------------------------------------------------
4 licenseServer running
我要解决这个问题的唯一参考是:
根目录中的变量XDG_RUNTIME_DIR显示为空
您能否帮助我解决此问题,以便我可以通过以下方式连接到VM控制台:
virt查看器--连接qemu:///system 许可证服务器
我试图用ssh-X连接到服务器,并使用上面的命令,但没有成功。那里有X吗
在哪里,
sshvivek@server1.cyberciti.biz
–在server1.cyberciti.biz主机上建立到远程KVM主机的SSH会话
-L
–启动本地端口转发
5901:127.0.0.1:5901
–设置隧道,即通过internet传递流量以访问远程服务器127.0.0.1和端口5901。有关更多信息,请参阅“通过Internet设置SSH以隧道VNC流量”
建立ssh隧道后,您可以将VNC客户端指向您自己的127.0.0.1(本地主机)地址和端口5901,如下所示:
sudo virsh dumpxml centos7 | grep vnc
<graphics type='vnc' port='5901' autoport='yes' listen='127.0.0.1'>
ssh vivek@server1.cyberciti.biz -L 5901:127.0.0.1:5901