qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sam <batmanustc@gmail.com>
To: Thomas Huth <thuth@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Why got no response of vnc?
Date: Fri, 25 Aug 2017 18:07:35 +0800	[thread overview]
Message-ID: <CAOE=1Z0nfxKwAXDUbMsiD6L+3f3M9RVdGL237GBr-c5K9L_yUA@mail.gmail.com> (raw)
In-Reply-To: <ebe4b0f3-9b50-2fc8-6238-d40f32d6e0b3@redhat.com>

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.
>
>
>

  reply	other threads:[~2017-08-25 10:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2017-08-27  5:31 ` Philipp Hahn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOE=1Z0nfxKwAXDUbMsiD6L+3f3M9RVdGL237GBr-c5K9L_yUA@mail.gmail.com' \
    --to=batmanustc@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).