LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-11-2016, 12:50 PM   #1
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Rep: Reputation: 37
How do I build QEMU with spice and usbredir?


I know that I can

LIBUSB=yes ./qemu.SlackBuild

to get the usbredirection but how do I tell it to build with both usbredirection and spice?
 
Old 04-11-2016, 12:56 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
You should read the Qemu README that provides hints.

https://slackbuilds.org/slackbuilds/...em/qemu/README

Also, are you building on -current or 14.1?
 
Old 04-11-2016, 12:58 PM   #3
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
I am building on 14.1 and will attempt to build it on current as soon as I get this sorted out on 14.1.
 
Old 04-11-2016, 12:59 PM   #4
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
maybe

LIBSPICE=yes LIBUSB=yes ./qemu.SlackBuild

that is what I don't understand?

I always read the readme but did not quite get the procedure?
 
Old 04-11-2016, 01:04 PM   #5
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by TarFile View Post
maybe

LIBSPICE=yes LIBUSB=yes ./qemu.SlackBuild

that is what I don't understand?

I always read the readme but did not quite get the procedure?
Yes, but...

Quote:
libcacard, spice, usbredir, and device-tree-compiler are optional dependencies.
First install spice and usbredir
 
1 members found this post helpful.
Old 04-11-2016, 01:17 PM   #6
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Got it

That seems to have worked
 
Old 04-11-2016, 01:18 PM   #7
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by TarFile View Post
Got it

That seems to have worked
Welcome!
 
Old 04-11-2016, 01:19 PM   #8
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Opps I spoke to soon the usbredirection seems to have not worked.

I installed everything before I built QEMU so I am not sure where I missed a step.

It does not complain in virt-manager until I tell it to start then I get

Error connection to graphical console
USB redirection not compile in.

I wonder if I need to rebuild virt-machine?

Last edited by TarFile; 04-11-2016 at 01:22 PM.
 
Old 04-11-2016, 01:20 PM   #9
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
It will save you some time if you use sbopkg + sqg. You are probably missing a dependency because you are installing each slackbuild manually.
 
Old 04-11-2016, 01:23 PM   #10
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by TarFile View Post
Opps I spoke to soon the usbredirection seems to have not worked.

I installed everything before I built QEMU so I am not sure where I missed a step.

It does not complain in virt-manager until I tell it to start then I get

Error connection to graphical console
USB redirection not compile in.

I wonder if I need to rebuild virt-machine?
Yes, rebuild it all in order.
 
Old 04-11-2016, 03:00 PM   #11
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 128

Rep: Reputation: 112Reputation: 112
Did you download all the files included in the SlackBuild and the required sources? There is a libusb-1.0.19.tar.xz file in the Sources section needed by the SlackBuild.

See this thread https://www.linuxquestions.org/quest...ir-4175569005/
 
Old 04-11-2016, 03:03 PM   #12
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Yes I think it is working now with spice and usbredirect.
 
Old 04-11-2016, 03:48 PM   #13
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Everything seems to be working so far

Had a problem with the virtual network, but was able I hope to fix it by doing the following.

ifconfig virbr0 down
brctl delbr virbr0

reboot

virsh net-start default

it then complained about the ip address already being in use so I rebooted again just for fun and that fixed it somehow.

I really though dnsmasq was the problem and would have to do something about that, but for some reason it just started working

I'll see if this is true when later when I reboot the system again.
 
  


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 Off
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-protocol 0.10.1 & Spice-Gtk 0.8 USB Redirection on Ubuntu Precise LXer Syndicated Linux News 0 01-19-2012 03:00 PM
LXer: Qemu-kvm 1.0 & Spice 0.10 & Spice-Gtk 0.7.159 & Libusb 1.0.9-rc3 (official) for Ubuntu Precise LXer Syndicated Linux News 0 12-27-2011 02:50 PM
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
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:51 AM.

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