LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-18-2015, 09:58 AM   #1
Hans Wierts
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Rep: Reputation: Disabled
Only access to VM from one virt-viewer


I installed 14.10 Server and selected virtual machine server.
All went well, could create a virtual machine using virtual manager and see the virtual machine up and running by clicking on it in virtual manager. All seems ok so i started installing virt-viewer on my mac and windows vista pc.
On both these machines i get the following errormessage "Unable to connect to the graphic server spice://IP-ADDRESS:5900", while on the laptop with virtual-manager all works fine..
On both these machines i can access the server cli using ssh so physical and logical connection.
Port 5900 is shown at the details page under "Display VNC".
i guess this has something to do with apparmor settings like allowed hosts or something?

Thanks for any hints.
 
Old 01-18-2015, 01:50 PM   #2
linuxtech99
Member
 
Registered: Jan 2015
Posts: 35

Rep: Reputation: 4
Only access to VM from one virt-viewer

may be hosted based firewall like iptables running in the server where spice installed. check and make sure port 5900 is allowed in all your firewall..
 
Old 01-18-2015, 04:21 PM   #3
Hans Wierts
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Port 5900 is accessible.
But meanwhile i found that the VM is linked to ip localhost instead of the bridged ip address of the server.
Since virt-manager works over ssh this explains why it can only be accessed through virt-manager.
Howto solve this?
 
Old 01-18-2015, 04:29 PM   #4
Hans Wierts
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
virsh domdisplay VMname keeps telling met it is linked to localhost..

hans@VMServer:~$ virsh domdisplay VMname
vnc://127.0.0.1:0
 
Old 01-18-2015, 07:21 PM   #5
linuxtech99
Member
 
Registered: Jan 2015
Posts: 35

Rep: Reputation: 4
Haven't worked much with virt manager. Can you try the solution provided in http://www.cyberciti.biz/faq/linux-k...guest-machine/
 
Old 01-19-2015, 05:14 AM   #6
Hans Wierts
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Mij config file looks exactly as described, still mij VM uses localhost instead of the proper interface..
 
Old 01-19-2015, 02:57 PM   #7
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
<graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' passwd='YOUR-PASSWORD-HERE' keymap='en-us'/>
 
Old 01-20-2015, 02:43 PM   #8
Hans Wierts
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thumbs up

Problem solved, few remarks:
- editing the xml should be done using the virsh edit command
- after edit restart /etc/init.d/libvirt-bin

Thanks all
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Best image viewer,djvu viewer pdf viewer cd/dvd writer for debian 7 rubankumars Debian 2 05-15-2013 08:23 AM
Unknown graphic type for the guest (virt-viewer) Aurorius Slackware 0 09-13-2012 01:13 AM
Compiling virt-viewer - No package â??gmodule-export-2.0â?? found Nick_C Linux - Software 2 03-12-2012 08:04 AM
VM server KVM no X11 can you x foward to virt-viewer? Nemus Linux - Virtualization and Cloud 1 12-21-2011 05:45 AM
[SOLVED] Cannot connect to newly created vm's using virt-viewer DraughtGlobe Linux - Virtualization and Cloud 2 03-08-2011 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration