Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ SOLVED ] Channel Spice - State is disconnected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
shrooman
n00b
n00b


Joined: 24 Apr 2022
Posts: 32

PostPosted: Fri Aug 05, 2022 6:46 am    Post subject: [ SOLVED ] Channel Spice - State is disconnected Reply with quote

Greetings,

I have created a virtual machine of gentoo on a host running gentoo. I want shared clipboard between the host and client.

I have emerged app-emulation/spice-vdagent and added it to the default runlevel on my client. I've also added the necessary spice channel in libvirtd.
Problem is my spice channel is constantly in a disconnected state.

Code:

$ sudo rc-service spice-vdagent status
* status: started


virsh edit gentoo
Code:

<channel type='spicevmc'>
  <target type='virtio' name='com.redhat.spice.0'/>
  <address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>


spice channel's xml inside virt-manager
Code:

<channel type="spicevmc">
  <target type="virtio" name="com.redhat.spice.0" state="disconnected"/>
  <alias name="channel0"/>
  <address type="virtio-serial" controller="0" bus="0" port="1"/>
</channel>


Could this be a bug in app-emulation/spice-vdagent?

Thanks!


Last edited by shrooman on Fri Aug 05, 2022 4:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Aug 05, 2022 9:51 am    Post subject: Reply with quote

According to this
https://unix.stackexchange.com/questions/642562/make-shared-clipboard-work-for-qemu
Despite status "diconnected" the shared clipboard should work just fine.
Is qemu built with USE="spice"
?
Is the VM actually running?
_________________
:)
Back to top
View user's profile Send private message
shrooman
n00b
n00b


Joined: 24 Apr 2022
Posts: 32

PostPosted: Fri Aug 05, 2022 4:30 pm    Post subject: Reply with quote

alamahant wrote:
According to this
https://unix.stackexchange.com/questions/642562/make-shared-clipboard-work-for-qemu
Despite status "diconnected" the shared clipboard should work just fine.
Is qemu built with USE="spice"
?
Is the VM actually running?


Yes my vm is actually running. How else would I be using it?

I just needed to emerge x11-base/xorg-x11, otherwise I don't have a clipboard.
Then add
Code:
exec spice-vdagent &
to .xinitrc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum