LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-10-2016, 12:45 PM   #1
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
remote-viewer, spice, QEMU and Unix domain socket - how to connect?


Hi,

Is it possible to connect from remote-viewer to QEMU instance over Unix domain socket?

If I have QEMU configured with:
Code:
--spice disable-ticketing,port=5930,addr=localhost
then I have no problems connecting from remote-viewer over TCP/IP socket.

But if I change it to:
Code:
--spice disable-ticketing,unix,addr=windows.sock
then, after many trials, I have no clue how to do it.

I know that:
Code:
--spice disable-ticketing,unix,addr=windows.sock
actually works, because if I do:
Code:
$ socat TCP-LISTEN:5930,fork,reuseaddr UNIX-CLIENT:windows.sock
then I can again connect, so passing spice through Unix domain socket actually works fine, it's the remote-viewer that either has no possibility to connect over AF_UNIX or I don't know how to make it.

Any help appreciated.

Versions:
QEMU: 2.5.0
remote-viewer: 3.1
spice: 0.12.6
spice-gtk: 0.30
spice-protocol: 0.12.10

--
Best regards,
Andrzej Telszewski
 
Old 02-10-2016, 02:19 PM   #2
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Well, it often happens that an idea strikes you after posting the problem

Simple:
Code:
$ remote-viewer spice+unix://windows.sock
will do the job.

The last problem I'm facing is how can I put it into *.ini configuration file?

For the TCP/IP I have it like that:
Code:
[virt-viewer]
type=spice
host=localhost
port=5930
title=windows64-7
color-depth=32
disable-effects=all
enable-usbredir=1
but have no idea how to do it for Unix domain socket.

Still, any help welcome

--
Best regards,
Andrzej Telszewski
 
Old 02-12-2016, 10:28 AM   #3
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Marking as solved as the primary question has been answered.

When it comes to the config file I solved it in the following way:
Code:
$ cat spice.conf 
--title=windows64-7
--spice-disable-effects=all
--spice-color-depth=32
--spice-disable-audio
  spice+unix://spice.sock
and then:
Code:
remote-viewer $(cat spice.conf)
--
Best regards,
Andrzej Telszewski
 
  


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
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
LXer: Qemu-kvm 1.0 & Spice 0.10.0 & Spice-Gtk-0.7.81 USB redirection for Ubuntu Precise and Oneiric LXer Syndicated Linux News 0 11-30-2011 08:30 PM
i want to connect mysql server from remote through TCP/IP not by unix socket dheerajjss Linux - Newbie 1 11-10-2008 06:32 AM
Can't connect to UNIX socket /var/run/clamav/clamd.socket ganick Linux - Server 8 08-01-2008 01:22 PM
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 07:28 PM

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

All times are GMT -5. The time now is 05:19 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