KVM: Difference between revisions

308 bytes added ,  5 July 2018
→‎Create a VM: Connect via VNC and complete installation
→‎Create a VM: Connect via VNC and complete installation
Line 132: Line 132:
Allocating 'ubuntu1.qcow2'                                                                                              |  40 GB  00:00:00
Allocating 'ubuntu1.qcow2'                                                                                              |  40 GB  00:00:00
Domain installation still in progress. Waiting for installation to complete.
Domain installation still in progress. Waiting for installation to complete.
</source>
== Connect via VNC and complete installation ==
Get port number for VNC:
<source lang="bash">
# virsh dumpxml ubuntu1 | grep vnc
    <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
</source>
Create a SSH tunnel:
<source lang="bash">
$ ssh mhan@chara -L 5900:127.0.0.1:5900
</source>
</source>