Jump to content

Issue with VNC?


Pducharme

Recommended Posts

Hi, I'm trying to create a new VM for Linux (OpenMediaVault).  I can't even connect to VNC.  Is this good entry in the XML :

 

  <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>

 

Thank you!

Link to comment

Here is my Full XML, VNC can't connect. :

 

<domain type='kvm'>
  <name>OMV</name>
  <uuid>69a3437d-d3ff-1355-2fa7-b43be1e62d36</uuid>
  <description>OMV</description>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/mnt/cache/VM/OMV.qcow2'/>
      <target dev='hda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user'/>
      <target dir='/data'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </filesystem>
    <interface type='bridge'>
      <mac address='52:54:00:24:d3:71'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </memballoon>
  </devices>
</domain>

Link to comment

This is from my WIN8 VM:

 

    <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>

 

I think I made the websocket 5700 because I had other VMs at the time using 5900 and 5800 (I just move down 100 at a time).  I should probably make the port 5700 also for consistency but I really only ever use the websocket anyway.

Link to comment

it works now, when I specify a Port, AutoPort to No and a Websocket port.  Don't know why it wasn't working before... but now it work.

 

It didn't solve my main issue with the limited FTP server included in Unraid.  I was trying to use the Excellent "OpenMediaVault" in a VM with 9p sharing enabled to use their FTP server with Lots of webGUI configuration.  Finally, OMV doesn't recognize the 9p sharing, the only option in OMV is to add Storage and it looks for devices, so except using that on the server itself instead of using Unraid, OMV is not my solution.

 

Instead, I finally end up using a Win8.1 VM with BulletProof FTP Server and I added a \\Unraid\Folder share to the config.  It's far from ideal because it goes thru SMB before being served by FTP.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...