Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ArchVM with GUI and vnc?

Featured Replies

This old-timer is having some difficulty with 'new' technology!  I still remember the trepidation of moving from punched cards to using a Teletype 33 for 'online' programming in Fortran IV!

 

I have one ArchVM instance running reasonably well, and supporting a number of daemon services.

 

I am now trying to get a second instance of ArchVM running, with xfce4 (another gui would be fine) and a vnc server.  However, I have not been able to get a vnc client (running on Ubuntu as my desktop m/c) to recognise and connect to the vnc server.

 

I think that I have followed the instructions on ArchWiki for installing tigervnc and xfce4.  The problem comes when, I attempt to connect to the Virtual server desktop, having tried with three different vnc clients.  They don't find the vnc server on the network - if I try to connect they report 'connection refused'.  However, if I telnet to port 5901, I obtain a connection with the response "RFB 002.008", then disconnect again, and the following appears in the vnc server logfile:

Sun Apr 13 19:39:15 2014
Connections: accepted: 10.2.1.15::49409

Sun Apr 13 19:47:14 2014
Connections: closed: 10.2.1.15::49409 (Clean disconnection)

 

This makes me think that the server really is there and working, so why do the vnc clients fail??

 

Oh, the logfile does contain warnings about some problems with fonts and "expect ugly output", but I don't believe that this would cause connections to fail?

 

Nothing appears in the logfile relating to any connection attempt from a vnc client.

 

Help/advice/assistance, please!

 

When I have this cracked, I want to have a go at creating a virtual windows desktop, just in case it might come in useful to have a windows machine available. :o

Maybe some config file somewhere to authorize clients?

  • Author

Maybe some config file somewhere to authorize clients?

 

Perhaps, but the clients don't even, apparently, find the server, yet telnet, without any particular authorisation, can connect.  ???

This old-timer is having some difficulty with 'new' technology!  I still remember the trepidation of moving from punched cards to using a Teletype 33 for 'online' programming in Fortran IV!

 

I have one ArchVM instance running reasonably well, and supporting a number of daemon services.

 

I am now trying to get a second instance of ArchVM running, with xfce4 (another gui would be fine) and a vnc server.  However, I have not been able to get a vnc client (running on Ubuntu as my desktop m/c) to recognise and connect to the vnc server.

 

I think that I have followed the instructions on ArchWiki for installing tigervnc and xfce4.  The problem comes when, I attempt to connect to the Virtual server desktop, having tried with three different vnc clients.  They don't find the vnc server on the network - if I try to connect they report 'connection refused'.  However, if I telnet to port 5901, I obtain a connection with the response "RFB 002.008", then disconnect again, and the following appears in the vnc server logfile:

Sun Apr 13 19:39:15 2014
Connections: accepted: 10.2.1.15::49409

Sun Apr 13 19:47:14 2014
Connections: closed: 10.2.1.15::49409 (Clean disconnection)

 

This makes me think that the server really is there and working, so why do the vnc clients fail??

 

Oh, the logfile does contain warnings about some problems with fonts and "expect ugly output", but I don't believe that this would cause connections to fail?

 

Nothing appears in the logfile relating to any connection attempt from a vnc client.

 

Help/advice/assistance, please!

 

When I have this cracked, I want to have a go at creating a virtual windows desktop, just in case it might come in useful to have a windows machine available. :o

 

Peter, can you post the contents of your VMs cfg file up here?  The one you're struggling with?

 

Sent from my Nexus 5 using Tapatalk

 

  • Author
Peter, can you post the contents of your VMs cfg file up here?  The one you're struggling with?

 

Sure:

# Created for the unRaid community by IronicBadger. 
# Last updated 16/04/2014. Enjoy!

name = "ArchVMX"		# change me as required
bootloader = "pygrub"
memory = 2048		# update me to 4096 if using sabnzbd
vcpus = '2'			# update me to no of CPUs allocated
disk = [ 
#	'phy:/mnt/user/cache_only/arch.img,xvda,w',
#	'phy:/mnt/user/cache_only/ArchVM/arch.img,xvdb,w'
'phy:/mnt/user/cache_only/ArchVMX/arch.img,xvda,w'
]

# replace xx:xx:xx with random a1:b2:c3 mac address
vif = [ 'mac=00:16:3e:10:00:00,bridge=br0' ]

 

Do I need to do something special to support gui/vnc?

Try vnc = 1 and vnclisten=0.0.0.0 and vncpasswd=''

 

Then you should be able to use your tiger vnc client and connect to the ip of your dom0 and it will vnc into the domu. Not what you were doing exactly, but should achieve the desired result.

 

Sent from my Nexus 5 using Tapatalk

 

 

Try vnc = 1 and vnclisten=0.0.0.0 and vncpasswd=''

 

Then you should be able to use your tiger vnc client and connect to the ip of your dom0 and it will vnc into the domu. Not what you were doing exactly, but should achieve the desired result.

 

Sent from my Nexus 5 using Tapatalk

 

+1

  • Author

Okay, it was my failure to understand! :-[

 

It hadn't struck me that it was possible to have several instances of the vncserver running, and they are identified by the port number.  Hence, it is necessary to specify the port number when connecting with the client.  I guess that the default may be to connect to the physical video server, port 5900.

 

Anyway, it was all working as I had set up originally - I just wasn't giving the client sufficient info!

 

The only other thing which was necessary was to install some x fonts, and I have a working desktop! :)

 

 

Now, what do I have to do to get a Windows VM running  ......?

Okay, it was my failure to understand! :-[

 

It hadn't struck me that it was possible to have several instances of the vncserver running, and they are identified by the port number.  Hence, it is necessary to specify the port number when connecting with the client.  I guess that the default may be to connect to the physical video server, port 5900.

 

Anyway, it was all working as I had set up originally - I just wasn't giving the client sufficient info!

 

The only other thing which was necessary was to install some x fonts, and I have a working desktop! :)

 

 

Now, what do I have to do to get a Windows VM running  ......?

 

Multiple guides posted on this forums for getting a Windows VM going.

  • Author

Now, what do I have to do to get a Windows VM running  ......?

 

Multiple guides posted on this forums for getting a Windows VM going.

 

Sorry, that was meant as a rhetorical question!

Note that if you plan on running multiples vms which need to be accessed from vnc, you'll need to specify a unique port for each in the Config file using vncdisplay = n

 

Then, in your vnc client, specify port 590n to connect

 

 

Peter

Does this mean I could run centOS with a GUI without needing a vt-d CPU? So long as it was accessed via vnc only. I have a 2500k CPU which is only vt-x

  • Author

Note that if you plan on running multiples vms which need to be accessed from vnc, you'll need to specify a unique port for each in the Config file using vncdisplay = n

 

Then, in your vnc client, specify port 590n to connect

 

Are you sure about that?

 

Each VM should have a different IP address so I thought, therefore, that each can have a vnc server on port 5901.

 

Surely, unique ports relate to multiple vnc sessions (servers) running on the same VM, allowing up to 9 (or 10, with hardware graphics) separate and independant desktop sessions on the same VM.

hi peterb, i think you may be getting confused between vnc server installed in the vm and vnc server to access the virtual console of the vm. basically my understanding is that the vnc port MUST be unique for each vm you have running (hmv vm's only), as your attaching to dom0 ip address (not the vm's ip address as it will not have an ip until you have loaded the os) and then connecting on the port specified in the cfg file, xen "creates" its own vnc server to allow this virtual console connection, in this scenario obviously cannot have more than one vm using the same vnc port.

 

once the os is installed in the vm you can then install vnc server direrectly into the vm and then you connect via the vm's ip address and specified port number, obviously then the port number can be whatever you want and could be the same as another vm, as it has its own unique ip.

 

anybody please correct me if the above is not right.

  • Author

hi peterb, i think you may be getting confused between vnc server installed in the vm and vnc server to access the virtual console of the vm.

 

If that's what meep meant, then I didn't understand - he made no mention of Dom0 or virtual console.

 

Me?  I'm simply running a gui session on an already booted VM.

i think reading between the lines meep is just stating that in order to create another vm and connect to the virtual console you need to specify a unique port for vnc, again i might be wrong, sorry if i seem like im teaching you how to suck eggs peterb, im honestly just trying to help btw.

Does this mean I could run centOS with a GUI without needing a vt-d CPU? So long as it was accessed via vnc only. I have a 2500k CPU which is only vt-x

 

Yes!!!

 

Sent from my Nexus 5 using Tapatalk

 

 

Sorry for the VM noob question.....so if you are using/accessing the VM via a vnc client then is video card not needed?  Is a video card for each VM only needed if directly connecting a monitor to it?

Sorry for the VM noob question.....so if you are using/accessing the VM via a vnc client then is video card not needed?  Is a video card for each VM only needed if directly connecting a monitor to it?

 

you dont need a seperate video card to have a hvm running, i have onboard vga on my mobo only, no gpu card and it works fine, obviously i cant do fancy stuff like gpu passthrough, but that isnt of interest to me (expense plus hair pulling!).

Okay, it was my failure to understand! :-[

 

It hadn't struck me that it was possible to have several instances of the vncserver running, and they are identified by the port number.  Hence, it is necessary to specify the port number when connecting with the client.  I guess that the default may be to connect to the physical video server, port 5900.

 

Anyway, it was all working as I had set up originally - I just wasn't giving the client sufficient info!

 

The only other thing which was necessary was to install some x fonts, and I have a working desktop! :)

 

 

Now, what do I have to do to get a Windows VM running  ......?

 

I've now finished teaching for the year at uni. Just exams and a dissertation. So I'll be making a comprehensive video series on Xen and windows. Meant to do it in Feb but time ran out.

 

Sent from my Nexus 5 using Tapatalk

 

 

Note that if you plan on running multiples vms which need to be accessed from vnc, you'll need to specify a unique port for each in the Config file using vncdisplay = n

 

Then, in your vnc client, specify port 590n to connect

 

Are you sure about that?

 

Each VM should have a different IP address so I thought, therefore, that each can have a vnc server on port 5901.

 

Surely, unique ports relate to multiple vnc sessions (servers) running on the same VM, allowing up to 9 (or 10, with hardware graphics) separate and independant desktop sessions on the same VM.

 

Numbering is handled automatically and increments based on the order the VM was created in.

 

You can manually set this but its optional.

 

Sent from my Nexus 5 using Tapatalk

 

 

Sorry for the VM noob question.....so if you are using/accessing the VM via a vnc client then is video card not needed? Is a video card for each VM only needed if directly connecting a monitor to it?

 

Answers to your two questions.

 

No it is not.

Yes.

 

Sent from my Nexus 5 using Tapatalk

 

 

 

 

you dont need a seperate video card to have a hvm running, i have onboard vga on my mobo only, no gpu card and it works fine, obviously i cant do fancy stuff like gpu passthrough, but that isnt of interest to me (expense plus hair pulling!).

 

 

Answers to your two questions.

 

No it is not.

Yes.

 

Sent from my Nexus 5 using Tapatalk

Awesome!  Thanks.....I'm still building my new server and trying to read up as much as I can about VM's  For a while I thought I might need to get a Quadro card for multi-OS passthrough.

 

Thanks again.

 

Archived

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.