So I am trying to create a VM using KVM (on CentOS 6.3) and the command I use is as follows:
virt-install --connect qemu:///system --virt-type kvm --name ffVM32 --ram 1024 --disk path=/home/datastore/images/ffVM32.img,size=10 --vnc --cdrom /home/datastore/backups/CentOS-6.4-i386-minimal.iso --bridge bridge0
The output I get is:
Starting install...
Allocating 'ffVM32.img' | 10 GB 00:00
Creating domain... | 0 B 00:00
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.
I have done a group install of "X Windows System" but it doesn't help. I am trying to access this via my laptop which runs Ubuntu 13..04. The curious thing is that when I tried the same from another machine that has PCLinuxOS, virt-viewer opens and I can continue with the installation.
While listing all the VMs, I find the VM running
[root@ts3 ~]# virsh list --all
Id Name State
----------------------------------------------------
8 ffVM32 running
What am I missing out on?
Best Answer
You probably haven't logged into your hardware node using
-X
switch of ssh.From the
man
page:To disable X11 forwarding you can use the
-x
switch.To enable X11 forwarding, edit the conf file located at
/etc/ssh/sshd_config
and uncomment the following line:and restart the service using
service sshd restart
Hope this helps.