[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Problems with VNC with upstream Qemu


  • To: Wei Liu <liuw@xxxxxxxxx>
  • From: Daniel Castro <evil.dani@xxxxxxxxx>
  • Date: Mon, 13 Jun 2011 17:44:25 +0900
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 13 Jun 2011 01:45:43 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=UgoZXLiUk6/3NMreVQiYSDGBSg952qoCcRi8G9pAnr2ezzZJEMiE6NWBJqSATT+UWy 1Nv545yaJYpM011koc5tRfIMMYhXL6+MisUmIUWWYT1m/HhinuTbwNswZCPv5Hf8l1yn CDnkWjvGY0limeKxf8CCnNge/hLwBEOB6VRM8=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Sorry I did not copy the list.

On Mon, Jun 13, 2011 at 5:36 PM, Daniel Castro <evil.dani@xxxxxxxxx> wrote:
> On Mon, Jun 13, 2011 at 5:28 PM, Wei Liu <liuw@xxxxxxxxx> wrote:
>> On Mon, Jun 13, 2011 at 4:22 PM, Daniel Castro <evil.dani@xxxxxxxxx> wrote:
>>> On Mon, Jun 13, 2011 at 3:02 PM, Wei Liu <liuw@xxxxxxxxx> wrote:
>>>> On Mon, 2011-06-13 at 09:45 +0900, Daniel Castro wrote:
>>>>> Hello All,
>>>>>
>>>>> I have been trying to get VNC with a HVM Guest using latest
>>>>> qemu-upstream, the guest goes UP but I cannot connect to the VNC I
>>>>> have tried every vnc entry in the config file. If I use the old
>>>>> qemu-dm device emulator the VNC works perfectly without any vnc
>>>>> entries in the conf.
>>>>>
>>>>> Does qemu-upstream support VNC? Do I need to set-up something specific?
>>>>>
>>>>
>>>> Yes, it supports VNC out of the box. No specific configuration is
>>>> needed.
>>>>
>>>>> I am running ubuntu 11.04 with Xen staging 4.1 at current tip.
>>>>>
>>>>
>>>> Could you post your config file?
>>>>
>>> This is the non working:
>>>
>>> device_model_override = "/usr/src/qemu/i386-softmmu/qemu"
>>> builder = 'hvm'
>>> memory = "512"
>>> device_model_version = 'qemu-xen'
>>> disk = [ 'file:/media/Vms/winxp.img,hda,w',
>>> 'file:/media/Vms/isos/en_windows_xp_professional_n_with_service_pack_3_x86_cd_vl_x14-78118.iso,hdb:cdrom,r'
>>> ,  ]
>>> boot = 'dc'
>>> vif = [ '', ]
>>> vcpus='1'}
>>>
>>>> Wei.
>>>>
>>>>> Thanks,
>>>>>
>>>>> Daniel
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>> Try adding:
>>
>> vnc=1
>> vnclisten='0.0.0.0'
>> vncunused=1
>>
>> in your config file.
> :(
> Did not work
>>
>> And netstat -ntlp in dom0 to see if vnc is up and running.
>>
>> And run ps aux | grep qemu to see if vnc options are added to qemu correctly.
> Here is the output of both commands:
>
> daniel@dani-ubuntu-xen:/var/xen$ netstat -ntlp
> (Not all processes could be identified, non-owned process info
>  will not be shown, you would have to be root to see it all.)
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address           Foreign Address
> State       PID/Program name
> tcp        0      0 192.168.122.1:53        0.0.0.0:*
> LISTEN      -
> tcp        0      0 0.0.0.0:56375           0.0.0.0:*
> LISTEN      -
> tcp        0      0 127.0.0.1:631           0.0.0.0:*
> LISTEN      -
> tcp        0      0 0.0.0.0:36321           0.0.0.0:*
> LISTEN      -
> tcp        0      0 0.0.0.0:2049            0.0.0.0:*
> LISTEN      -
> tcp        0      0 0.0.0.0:55145           0.0.0.0:*
> LISTEN      -
> tcp        0      0 0.0.0.0:111             0.0.0.0:*
> LISTEN      -
> tcp6       0      0 ::1:631                 :::*
> LISTEN      -
> daniel@dani-ubuntu-xen:/var/xen$ ps aux | grep qemu
> daniel    4547  0.0  0.0  13076  1084 pts/0    S+   17:35   0:00 grep
> --color=auto qemu
>

Also here is a working example with a different qemu device model.

The config file:

builder = 'hvm'
name = "winxp"
memory = "512"
disk = [ 'file:/media/Vms/winxp.img,hda,w',
'file:/media/Vms/isos/en_windows_xp_professional_n_with_service_pack_3_x86_cd_vl_x14-78118.iso,hdb:cdrom,r'
,  ]
boot = 'dc'
vif = [ 'bridge=virbr0', ]
vcpus='1'

Output:
daniel@dani-ubuntu-xen:/var/xen$ netstat -ntlp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address
State       PID/Program name
tcp        0      0 192.168.122.1:53        0.0.0.0:*
LISTEN      -
tcp        0      0 0.0.0.0:56375           0.0.0.0:*
LISTEN      -
tcp        0      0 127.0.0.1:631           0.0.0.0:*
LISTEN      -
tcp        0      0 0.0.0.0:36321           0.0.0.0:*
LISTEN      -
tcp        0      0 0.0.0.0:2049            0.0.0.0:*
LISTEN      -
tcp        0      0 0.0.0.0:55145           0.0.0.0:*
LISTEN      -
tcp        0      0 127.0.0.1:5900          0.0.0.0:*
LISTEN      -
tcp        0      0 0.0.0.0:111             0.0.0.0:*
LISTEN      -
tcp6       0      0 ::1:631                 :::*
LISTEN      -
daniel@dani-ubuntu-xen:/var/xen$
daniel@dani-ubuntu-xen:/var/xen$
daniel@dani-ubuntu-xen:/var/xen$
daniel@dani-ubuntu-xen:/var/xen$ ps aux | grep qemu
root      4767 47.4  0.1 131496  5484 ?        RLsl 17:37   0:05
/usr/lib/xen/bin/qemu-dm -d 3 -domain-name winxp -vnc 127.0.0.1:0
-vncunused -videoram 8 -boot dc -acpi -vcpu_avail 0x1 -net
nic,vlan=0,macaddr=00:16:3e:72:7d:eb,model=rtl8139 -net
tap,vlan=0,ifname=tap3.0,bridge=virbr0,script=no -M xenfv
daniel    4860  0.0  0.0  13076  1080 pts/0    S+   17:37   0:00 grep
--color=auto qemu
daniel@dani-ubuntu-xen:/var/xen$

>
>>
>> Wei.
>>
>>>
>>>
>>> --
>>> +-=====---------------------------+
>>> | +---------------------------------+ | This space intentionally blank
>>> for notetaking.
>>> | |   | Daniel Castro,                |
>>> | |   | Consultant/Programmer.|
>>> | |   | U Andes                         |
>>> +-------------------------------------+
>>>
>>
>
>
>
> --
> +-=====---------------------------+
> | +---------------------------------+ | This space intentionally blank
> for notetaking.
> | |   | Daniel Castro,                |
> | |   | Consultant/Programmer.|
> | |   | U Andes                         |
> +-------------------------------------+
>



-- 
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank
for notetaking.
| |   | Daniel Castro,                |
| |   | Consultant/Programmer.|
| |   | U Andes                         |
+-------------------------------------+

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.