有人能告诉我如何在VM中启用VNC,这是在KVM管理程序上使用virt-install创建的吗?
我的服务器 doesn't have a GUI 所以我以前运行以下命令来启动VM:
virt-install \
--name centos6 \
--ram 1024 \
--disk path=/var/lib/libvirt/images/centos6.img,bus=virtio,size=30 \
--vcpus 1 \
--os-type linux \
--os-variant rhel6 \
--network bridge=br0 \
--graphics none \
--location 'http://mirror.i3d.net/pub/centos/6/os/x86_64/' \
--extra-args 'console=ttyS0,115200n8 serial'
现在我想在VM上安装GUI(centos6)并安装VNC,有人能告诉我如何实现吗?
谢谢 .
1 回答
虽然它是在ubuntu上实现的,但在此链接上找到了答案,但同样可以复制用于其他分发:https://www.howtoforge.com/tutorial/ubuntu-gnome-vnc-headless-server