* [Qemu-devel] Why got no response of vnc?
@ 2017-08-25 6:31 Sam
2017-08-25 6:45 ` Sam
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Sam @ 2017-08-25 6:31 UTC (permalink / raw)
To: qemu-devel
Hi all,
I'm starting vm using:
kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2 -cdrom
> CentOS-7-x86_64-DVD-1503-01.iso -boot d
> VNC server running on '127.0.0.1:5900'
then I start vnc client in another PC to connect 10.253.23.24:11800 and
10.253.23.24:5900, I got time out, why?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Why got no response of vnc?
2017-08-25 6:31 [Qemu-devel] Why got no response of vnc? Sam
@ 2017-08-25 6:45 ` Sam
2017-08-25 7:38 ` Sam
2017-08-25 8:21 ` Thomas Huth
2017-08-27 5:31 ` Philipp Hahn
2 siblings, 1 reply; 7+ messages in thread
From: Sam @ 2017-08-25 6:45 UTC (permalink / raw)
To: qemu-devel
I follow this:
https://en.wikibooks.org/wiki/QEMU/QEMU_Hello_World:_Installing_QEMU_and_getting_it_up_and_running
2017-08-25 14:31 GMT+08:00 Sam <batmanustc@gmail.com>:
> Hi all,
>
> I'm starting vm using:
>
> kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2
>> -cdrom CentOS-7-x86_64-DVD-1503-01.iso -boot d
>> VNC server running on '127.0.0.1:5900'
>
>
> then I start vnc client in another PC to connect 10.253.23.24:11800 and
> 10.253.23.24:5900, I got time out, why?
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Why got no response of vnc?
2017-08-25 6:45 ` Sam
@ 2017-08-25 7:38 ` Sam
2017-08-25 7:41 ` Sam
0 siblings, 1 reply; 7+ messages in thread
From: Sam @ 2017-08-25 7:38 UTC (permalink / raw)
To: qemu-devel
Actually, I just want to install OS and use it, but I found I can't go into
guest OS (as vnc time out), so what should I do?
2017-08-25 14:45 GMT+08:00 Sam <batmanustc@gmail.com>:
> I follow this:
> https://en.wikibooks.org/wiki/QEMU/QEMU_Hello_World:_
> Installing_QEMU_and_getting_it_up_and_running
>
> 2017-08-25 14:31 GMT+08:00 Sam <batmanustc@gmail.com>:
>
>> Hi all,
>>
>> I'm starting vm using:
>>
>> kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2
>>> -cdrom CentOS-7-x86_64-DVD-1503-01.iso -boot d
>>> VNC server running on '127.0.0.1:5900'
>>
>>
>> then I start vnc client in another PC to connect 10.253.23.24:11800 and
>> 10.253.23.24:5900, I got time out, why?
>>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Why got no response of vnc?
2017-08-25 7:38 ` Sam
@ 2017-08-25 7:41 ` Sam
0 siblings, 0 replies; 7+ messages in thread
From: Sam @ 2017-08-25 7:41 UTC (permalink / raw)
To: qemu-devel
I use ssh to the host PC, so I think I could not use two screen.
2017-08-25 15:38 GMT+08:00 Sam <batmanustc@gmail.com>:
> Actually, I just want to install OS and use it, but I found I can't go
> into guest OS (as vnc time out), so what should I do?
>
> 2017-08-25 14:45 GMT+08:00 Sam <batmanustc@gmail.com>:
>
>> I follow this:
>> https://en.wikibooks.org/wiki/QEMU/QEMU_Hello_World:_Install
>> ing_QEMU_and_getting_it_up_and_running
>>
>> 2017-08-25 14:31 GMT+08:00 Sam <batmanustc@gmail.com>:
>>
>>> Hi all,
>>>
>>> I'm starting vm using:
>>>
>>> kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2
>>>> -cdrom CentOS-7-x86_64-DVD-1503-01.iso -boot d
>>>> VNC server running on '127.0.0.1:5900'
>>>
>>>
>>> then I start vnc client in another PC to connect 10.253.23.24:11800 and
>>> 10.253.23.24:5900, I got time out, why?
>>>
>>
>>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Why got no response of vnc?
2017-08-25 6:31 [Qemu-devel] Why got no response of vnc? Sam
2017-08-25 6:45 ` Sam
@ 2017-08-25 8:21 ` Thomas Huth
2017-08-25 10:07 ` Sam
2017-08-27 5:31 ` Philipp Hahn
2 siblings, 1 reply; 7+ messages in thread
From: Thomas Huth @ 2017-08-25 8:21 UTC (permalink / raw)
To: Sam, qemu-devel
On 25.08.2017 08:31, Sam wrote:
> Hi all,
>
> I'm starting vm using:
>
> kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2 -cdrom
>> CentOS-7-x86_64-DVD-1503-01.iso -boot d
>> VNC server running on '127.0.0.1:5900'
>
> then I start vnc client in another PC to connect 10.253.23.24:11800 and
> 10.253.23.24:5900, I got time out, why?
Do you have a firewall running on the host system? It might be blocking
the VNC connection - in that case you could use port forwarding of ssh
(the -L parameter for example), or try to reconfigure your firewall on
the host.
Thomas
PS: Don't forget to specify --enable-kvm in case you want to use
hardware virtualization.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Why got no response of vnc?
2017-08-25 8:21 ` Thomas Huth
@ 2017-08-25 10:07 ` Sam
0 siblings, 0 replies; 7+ messages in thread
From: Sam @ 2017-08-25 10:07 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-devel
No firewall, as another vm could be connect by vnc, this is the start
command used by that vm, and the disk(*.img) is copied from other place.
$QEMU -smp 4 -m 4096 -enable-kvm $SCRIPT_PATH/$IMG -cdrom $CD -daemonize
-vnc 0.0.0.0:2520 \
-chardev
socket,id=char-$IF,path=/usr/local/var/run/openvswitch/$IF,server=on \
-netdev type=vhost-user,id=$IF,chardev=char-$IF \
-device virtio-net-pci,mac=00:00:af:07:03:02,netdev=$IF \
-object memory-backend-file,id=mem,size=4096M,mem-path=$MEM_PATH,share=on \
-numa node,memdev=mem -mem-prealloc \
-chardev socket,path=$SCRIPT_PATH/qga.sock,server,nowait,id=qga0 \
-device virtio-serial \
-device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 \
-incoming tcp:0:80818
2017-08-25 16:21 GMT+08:00 Thomas Huth <thuth@redhat.com>:
> On 25.08.2017 08:31, Sam wrote:
> > Hi all,
> >
> > I'm starting vm using:
> >
> > kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2
> -cdrom
> >> CentOS-7-x86_64-DVD-1503-01.iso -boot d
> >> VNC server running on '127.0.0.1:5900'
> >
> > then I start vnc client in another PC to connect 10.253.23.24:11800 and
> > 10.253.23.24:5900, I got time out, why?
>
> Do you have a firewall running on the host system? It might be blocking
> the VNC connection - in that case you could use port forwarding of ssh
> (the -L parameter for example), or try to reconfigure your firewall on
> the host.
>
> Thomas
>
>
> PS: Don't forget to specify --enable-kvm in case you want to use
> hardware virtualization.
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Why got no response of vnc?
2017-08-25 6:31 [Qemu-devel] Why got no response of vnc? Sam
2017-08-25 6:45 ` Sam
2017-08-25 8:21 ` Thomas Huth
@ 2017-08-27 5:31 ` Philipp Hahn
2 siblings, 0 replies; 7+ messages in thread
From: Philipp Hahn @ 2017-08-27 5:31 UTC (permalink / raw)
To: qemu-devel
Hello,
Am 25.08.2017 um 08:31 schrieb Sam:
> I'm starting vm using:
>
> kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2 -cdrom
>> CentOS-7-x86_64-DVD-1503-01.iso -boot d
>> VNC server running on '127.0.0.1:5900'
^^^^^^^^^
This a a *local* host socket,
> then I start vnc client in another PC to connect 10.253.23.24:11800 and
> 10.253.23.24:5900, I got time out, why?
to which you can't connect from any *other* host
$ man qemu-system-x86_64
...
> -vnc display[,option[,option[,...]]]
So try to add '-vnc 10.253.23.24:5900' to your command line to make Qemu
to listen on that IP address of your host you're running the VM on.
Philipp
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-08-27 5:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-25 6:31 [Qemu-devel] Why got no response of vnc? Sam
2017-08-25 6:45 ` Sam
2017-08-25 7:38 ` Sam
2017-08-25 7:41 ` Sam
2017-08-25 8:21 ` Thomas Huth
2017-08-25 10:07 ` Sam
2017-08-27 5:31 ` Philipp Hahn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).