Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Virtualization - KVM - how to view guest on host


    Hi folks,


    Ubuntu 8.04 desktop amd64
    KVM


    On host terminal I can create guest .img and start it.

    Create guest .img
    Code:
    # qemu-img create -f qcow2 guest.img 10G
    
    # kvm -hda guest.img -cdrom /dev/scd0 -m 512 -vnc :0

    Start guest.img
    Code:
    # kvm guest.img -vnc :0

    But I can't view/operate guest on host. I must run vncviewer on remote machine terminal;

    $ vncview 192.168.0.110:0


    to view and operate the guest. 192.168.0.110 is host local IP address.


    Please advise how to view and operate guest on host. TIA


    B.R.
    satimis

  2. #2
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,148
    Have you tried using localhost or 127.0.0.1 instead of the lan address?

  3. #3
    Quote Originally Posted by bigtomrodney View Post
    Have you tried using localhost or 127.0.0.1 instead of the lan address?
    Hi,


    Thanks for your advice.


    $ vncviewer localhost
    Code:
    [: 6: ==: unexpected operator
    localhost 5900
    /usr/bin/vncviewer: 28: java: not found

    $ vncviewer 127.0.0.1
    Code:
    [: 6: ==: unexpected operator
    127.0.0.1 5900
    /usr/bin/vncviewer: 28: java: not found

    Also tried as root with the same result.


    $ cat /etc/hosts
    Code:
    127.0.0.1	localhost.localdomain  localhost
    127.0.1.1	ubuntu804-desktop
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

    satimis

  4. $spacer_open
    $spacer_close
  5. #4

    Solved

    Hi bigtomrodney and folks,


    Problem solved.


    I need "xtightvncviewer" additional to;
    Code:
    tightvncserver
    tightvnc-java
    After installing it. Then "vncviewer 127.0.0.1" works. Thanks.


    Any suggestion on configuring size of the viewer window. TIA


    B.R.
    satimis

Posting Permissions

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