Results 1 to 2 of 2

Thread: KVM VM installl and the VNC issue......

  1. #1

    Question KVM VM installl and the VNC issue......


    I installed KVM on SLES 11SP3. I then tried to create a VM with KVM. The host ip is

    vm-install --os-type "other" --name "ASB_CD_VM1" --vcpus 2 --memory 3072 --max-memory 3072 --disk /var/lib/kvm/images/ASB_CD_VM1/hda,0,disk,w,21000,sparse=0 --disk /tmp/SLES11SP2_.x86_64-0.0.3.install.iso,1,cdrom --nic mac=52:54:00:05:11:11,model=virtio --graphics cirrus --config-dir "/etc/libvirt/qemu"

    It starts the VM creation but then I see this error.

    Preparing to start the installation...


    Failed to display the VM's console because DISPLAY is not set. Please connect a VNC viewer to localhost:5900.

    It says that I should be able to connect to port number 5900 using vnc. I went to my windows box and used vncviewer

    However I get connection refused.

    I did the following.

    I see
    virtual@chris-adp-sec:~> telnet localhost 5900
    Connected to localhost.
    Escape character is '^]'.
    RFB 003.008
    but if I type
    roselcdv0068958:~ nlakshmi$ telnet 5900
    telnet: connect to address Connection refused
    telnet: Unable to connect to remote host
    So the VM install cannot be seen or interacted with, this is causing issues.

    My host machine is also a SLES 11SP3 but does not have a display aka 'X' on it so I have to use vm-install to install but I have to connect to the console using VNC but port is not exposed to outside the machine.

    Can you folks help and suggest any ideas ?


  2. #2
    Join Date
    Jun 2008
    San Diego, Ca, USA
    Blog Entries

    Default Re: KVM VM installl and the VNC issue......

    You are in the wrong forums, SLES/SLED problems should be posted in the SUSE forums.

    In this case though, your mistake is likely one that is not distro-specific.
    It should make some sense to you that if you have multiple Guests (or even one) running on a machine that there should be a way to identify and connect to a specific Guest, and this is done by KVM specifying the "DISPLAY" attribute (which is missing from your command).

    In the case using VNC, if you don't specify attributes then default values are typically applied and those would normally be used to connect to non-virtual machines.

    Your command line illustrates the hazards of attempting to do things by command line instead of an appropriate management tool (in this case the GUI app), when a recommended tool is available, it'll typically ensure your syntax is correct and the necessary properties and attributes complete. If you still wish to use a command line, you can research how VNC sets the display attribute (Google VNC setting display).


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts