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