[Spice-devel] Ask something about spice status?

2013-07-16 Thread 郭煜

Hi, I am a chinese spice user, when i use spice to connect vm, i find i cannot 
know the connection status, so can you tell me there is the way to get spice 
connection status from API ? 
Thank you very much ,i am waitting for your reply.






Guoyu



___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Spice-devel] problem with spice connecting to multiple monitors

2013-07-16 Thread stonefly128
Dear spice development team:
 I'm asking for help on the spice when using two monitors in kvm  
virtual machines. This is my test environment:A redhat 6.2 x64_64 server with 
kvm;one virtual machine using windows xp sp3 OS with two qxl graphics cards, 
the vm configuration file as follows:
!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE 
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit spice
or other application using the libvirt API.
--
 
domain type='kvm'
  name0b/name
  uuid26654b3d-4106-4d0f-b1e6-1fb12dc58b5a/uuid
  memory1048576/memory
  currentMemory1048576/currentMemory
  vcpu1/vcpu
  os
type arch='i686' machine='rhel6.2.0'hvm/type
boot dev='hd'/
  /os
  features
acpi/
apic/
pae/
  /features
  clock offset='localtime'/
  on_poweroffdestroy/on_poweroff
  on_rebootrestart/on_reboot
  on_crashrestart/on_crash
  devices
emulator/usr/libexec/qemu-kvm/emulator
disk type=file device=disk
 driver name=qemu type=raw / 
 source file=/mnt/10.0.0.210_target14/winxp-work.img / 
target dev=hda bus=ide / 
address type=drive controller=0 bus=0 unit=0 / 
 /disk
controller type='ide' index='0'
  address type='pci' domain='0x' bus='0x00' slot='0x01' 
function='0x1'/
/controller
interface type='bridge'
  mac address='00:16:3e:00:00:0b'/
  source bridge='br0'/
  address type='pci' domain='0x' bus='0x00' slot='0x03' 
function='0x0'/
/interface
interface type='bridge'
  mac address='00:16:3e:00:00:0c'/
  source bridge='br1'/
  address type='pci' domain='0x' bus='0x00' slot='0x06' 
function='0x0'/
/interface
serial type='pty'
  target port='0'/
/serial
console type='pty'
  target type='serial' port='0'/
/console
input type='tablet' bus='usb'/
input type='mouse' bus='ps2'/
graphics type='spice' port='10005' autoport='no' listen='10.0.0.220' 
keymap='en-us' 
  listen type='address' address='10.0.0.220'/
/graphics
sound model='ac97'
  address type='pci' domain='0x' bus='0x00' slot='0x04' 
function='0x0'/
/sound
video
  model type='qxl' vram='65536' heads='1'/
  address type='pci' domain='0x' bus='0x00' slot='0x02' 
function='0x0'/
/video
video
  model type='qxl' vram='65536' heads='1'/
  address type='pci' domain='0x' bus='0x00' slot='0x07' 
function='0x0'/
/video
memballoon model='virtio'
  address type='pci' domain='0x' bus='0x00' slot='0x05' 
function='0x0'/
/memballoon
  /devices
/domain


Inside vm box, i have installed the spice-guest-tools-0.59.exe, and following 
the website  http://support.microsoft.com/kb/307873/en-us , i configured one 
primary monitor and monitor 2 using the option Extend my Windows desktop onto 
this monitor .When I use spice connecting to the vm, it will appear two spice 
windows, spice: 0 and spice: 1.
I can drag items across my screen onto alternate monitors, namely spice: 1, but 
my problem is that my mouse is always mapped on the primary monitor, it can not 
be mapped to monitor 2. So, how to configure my spice when using multiple 
monitors in windows xp kvm virtual machines.
Look forward to receiving your reply and thanks.

___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel


Re: [Spice-devel] virtio-net windows drivers

2013-07-16 Thread Ignazio Cassano
Hi all, I executed a complete test to identify the problem.
Firstly I need to exaplain what I am doing.

I created a windows xp guest with sp3 , virtio net and spice agent.
I used virtio-win-0.1-59.iso and spice-guest-tools-0.59.
This is a base image for all other vm xp .
The base image works fine.
I used sysprep on the base image and then I created another xp guest on a
qcow2 disk  which uses the base image.
When the new guest starts it does  not get the network card because it asks
for drivers.
Confirming the virtio drivers automatic installation (because drivers are
present in the base image) and rebooting the guest,
it can see the virtio network card but it takes a lot of cpu and it cannot
be used.

I repeated the test installing virtio-win-01.30.iso drivers and
spice-guest-tools-0.3  on the base image.
The new guest now does not ask to install the virtio net drivers but only
the virtio scsi adapter drivers and  it works fine.

Could you help me ?
I tried sysprep with several options : either with plug-and play flagged or
without it

I tried also using the base image without virtio net adapter, using the rtl
net adapter and the guest which uses the base image works fine.

So I think the problem is using sysprep with last virtio net adapter or
last  spice-guest-tools  :-(

Regards



2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 Hi, also with spice-guest-tools 1.59 the driver version is: 51.64.104.5900

 I found the UsePublicEvents ...it is init.UsePublicEvents and it is
 disabled


 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 The previous email I sent whas with spice-guest-tools 0.52.
 Now I am going to install 0.59


 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 I booted my vm in safe mode and I can see drive information:

 Redhat virtio ethernet adapter version 51.64.104.5900

 In advanced I cannot see any information about *UsePublicEvents*


 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 Oh, I am sorry. I must wait a lot for looking information you
 requested, because when I boot with virtio net enabled the xp vm takes a
 long time to log on and cpu usage is very very high.
 When I'll have information you requested I'll send you.
 Many thanks


 2013/7/15 agil...@redhat.com

  On 07/15/2013 12:54 PM, Ignazio Cassano wrote:

 I am using fedora 17 with kvm ...
 I created a bridge and on the same britge windows xp with
 spice-guest-tools 0.3 works fine.
 On the bridge the guest created a virtio net adapter.
 I cannot see drivers details in fedora 17 virt-manager

 Yan meant driver details on the *guest*:

 Device Manager - NetKVM device - Properties
 In the Driver tab see the driver version.
 In the Advanced tab you see driver params.



 2013/7/15 Yan Vugenfirer yvuge...@redhat.com

 Hi,

  Ignazio - the driver parameters are found in Device Manager -
 NetKVM device - Properties - Advanced tab.

  What network configuration on the host are you using?


  Bests regards,
 Yan.

  On Jul 15, 2013, at 12:22 PM, Ignazio Cassano wrote:

 
 I read something about UsePublichEvents Seems it is supported in
 Fedora 19 but I have fedora 17

 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 Hi Vladim, I do not know what is UsePublichEvents 
 where can I check it ?


 2013/7/15 Vadim Rozenfeld vroze...@redhat.com

 Hi Inazio,

 Do you have UsePublishEvents enabled or disabled? If it's on you
 can try turning it off.
 In any case it's better to wait Yan or Dmitry to comment on this
 issue.

 Best regards,
 Vadim.


 - Original Message -
 From: Ignazio Cassano ignaziocass...@gmail.com
 To: agil...@redhat.com
 Cc: spice-devel@lists.freedesktop.org, Vadim Rozenfeld 
 vroze...@redhat.com, Yan Vugenfirer yvuge...@redhat.com
 Sent: Monday, July 15, 2013 5:53:58 PM
 Subject: Re: virtio-net windows drivers

 Hi, I think the virtio net driver is released with spice-guest-tool
 ...
 Is it correct ?
 In other words 
 I installed virtio net and virtio disk drivers contained in
 virtio-win-0.1-59.iso downloaded from fedora.
 Then I installed spice-guest-tools-0.59.exe downloaded from
 spice-space.org.
 Seems spice.-guest-tools have their own net driver or not ?

 2013/7/15 agil...@redhat.com

   Please check on which virtio-net driver version have you
 encountered the
  issues.
 
  Thanks,
  Arnon
 
 
  On 07/15/2013 10:36 AM, Ignazio Cassano wrote:
 
  Many thanks.
  I am wiating  their news.
  At this thime I solved using spice-guest-tools 0.3
 
 
  2013/7/15 agil...@redhat.com
 
   Cc'ing Vadim  Yan, the vio-net windows driver developers.
  I guess they have better answers.
 
  Arnon
 
  On 07/15/2013 09:12 AM, Ignazio Cassano wrote:
 
  Hi, I am sorry If I disturb you again.
  I am using last stace-guest-tools (0.59) on my windows xp sp3
 guests but
  I got some issues on virtio net like the following bug:
 
 
 http://lists.nongnu.org/archive/html/qemu-devel/2013-06/msg04744.html
 
 
   Have you ever heard anything about it ?
  I am using fedora 17 kvm 

Re: [Spice-devel] virtio-net windows drivers

2013-07-16 Thread Ignazio Cassano
Hi, I solved the problem removing the network adapter in the base image and
attacching a new virtio network adapter .
Latest drivers work fine .
Regards
Il giorno 16/lug/2013 10:55, Ignazio Cassano ignaziocass...@gmail.com
ha scritto:

 Hi all, I executed a complete test to identify the problem.
 Firstly I need to exaplain what I am doing.

 I created a windows xp guest with sp3 , virtio net and spice agent.
 I used virtio-win-0.1-59.iso and spice-guest-tools-0.59.
 This is a base image for all other vm xp .
 The base image works fine.
 I used sysprep on the base image and then I created another xp guest on a
 qcow2 disk  which uses the base image.
 When the new guest starts it does  not get the network card because it
 asks for drivers.
 Confirming the virtio drivers automatic installation (because drivers are
 present in the base image) and rebooting the guest,
 it can see the virtio network card but it takes a lot of cpu and it cannot
 be used.

 I repeated the test installing virtio-win-01.30.iso drivers and
 spice-guest-tools-0.3  on the base image.
 The new guest now does not ask to install the virtio net drivers but only
 the virtio scsi adapter drivers and  it works fine.

 Could you help me ?
 I tried sysprep with several options : either with plug-and play flagged
 or without it

 I tried also using the base image without virtio net adapter, using the
 rtl net adapter and the guest which uses the base image works fine.

 So I think the problem is using sysprep with last virtio net adapter or
 last  spice-guest-tools  :-(

 Regards



 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 Hi, also with spice-guest-tools 1.59 the driver version is: 51.64.104.5900

 I found the UsePublicEvents ...it is init.UsePublicEvents and it is
 disabled


 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 The previous email I sent whas with spice-guest-tools 0.52.
 Now I am going to install 0.59


 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 I booted my vm in safe mode and I can see drive information:

 Redhat virtio ethernet adapter version 51.64.104.5900

 In advanced I cannot see any information about *UsePublicEvents*


 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 Oh, I am sorry. I must wait a lot for looking information you
 requested, because when I boot with virtio net enabled the xp vm takes a
 long time to log on and cpu usage is very very high.
 When I'll have information you requested I'll send you.
 Many thanks


 2013/7/15 agil...@redhat.com

  On 07/15/2013 12:54 PM, Ignazio Cassano wrote:

 I am using fedora 17 with kvm ...
 I created a bridge and on the same britge windows xp with
 spice-guest-tools 0.3 works fine.
 On the bridge the guest created a virtio net adapter.
 I cannot see drivers details in fedora 17 virt-manager

 Yan meant driver details on the *guest*:

 Device Manager - NetKVM device - Properties
 In the Driver tab see the driver version.
 In the Advanced tab you see driver params.



 2013/7/15 Yan Vugenfirer yvuge...@redhat.com

 Hi,

  Ignazio - the driver parameters are found in Device Manager -
 NetKVM device - Properties - Advanced tab.

  What network configuration on the host are you using?


  Bests regards,
 Yan.

  On Jul 15, 2013, at 12:22 PM, Ignazio Cassano wrote:

 
 I read something about UsePublichEvents Seems it is supported in
 Fedora 19 but I have fedora 17

 2013/7/15 Ignazio Cassano ignaziocass...@gmail.com

 Hi Vladim, I do not know what is UsePublichEvents 
 where can I check it ?


 2013/7/15 Vadim Rozenfeld vroze...@redhat.com

 Hi Inazio,

 Do you have UsePublishEvents enabled or disabled? If it's on you
 can try turning it off.
 In any case it's better to wait Yan or Dmitry to comment on this
 issue.

 Best regards,
 Vadim.


 - Original Message -
 From: Ignazio Cassano ignaziocass...@gmail.com
 To: agil...@redhat.com
 Cc: spice-devel@lists.freedesktop.org, Vadim Rozenfeld 
 vroze...@redhat.com, Yan Vugenfirer yvuge...@redhat.com
 Sent: Monday, July 15, 2013 5:53:58 PM
 Subject: Re: virtio-net windows drivers

 Hi, I think the virtio net driver is released with
 spice-guest-tool ...
 Is it correct ?
 In other words 
 I installed virtio net and virtio disk drivers contained in
 virtio-win-0.1-59.iso downloaded from fedora.
 Then I installed spice-guest-tools-0.59.exe downloaded from
 spice-space.org.
 Seems spice.-guest-tools have their own net driver or not ?

 2013/7/15 agil...@redhat.com

   Please check on which virtio-net driver version have you
 encountered the
  issues.
 
  Thanks,
  Arnon
 
 
  On 07/15/2013 10:36 AM, Ignazio Cassano wrote:
 
  Many thanks.
  I am wiating  their news.
  At this thime I solved using spice-guest-tools 0.3
 
 
  2013/7/15 agil...@redhat.com
 
   Cc'ing Vadim  Yan, the vio-net windows driver developers.
  I guess they have better answers.
 
  Arnon
 
  On 07/15/2013 09:12 AM, Ignazio Cassano wrote:
 
  Hi, I am sorry If I disturb you again.
  I am using last 

Re: [Spice-devel] problem with spice connecting to multiple monitors

2013-07-16 Thread Uri Lublin

On 07/16/2013 06:09 AM, stonefly128 wrote:

Dear spice development team:
I'm asking for help on the spice when using two monitors in kvm 
virtual machines. This is my test environment:A redhat 6.2 x64_64 
server with kvm;one virtual machine using windows xp sp3 OS with two 
qxl graphics cards, the vm configuration file as follows:



snipped
Inside vm box, i have installed the spice-guest-tools-0.59.exe, and 
following the website http://support.microsoft.com/kb/307873/en-us , i 
configured one *primary monitor*and monitor 2 using the option 
*Extend my Windows desktop onto this monitor* .When I use spice 
connecting to the vm, it will appear two spice windows, spice: 0 and 
spice: 1.
I can drag items across my screen onto alternate monitors, namely 
spice: 1, but my problem is that my mouse is alway s mapped on the 
primary monitor, it can not be mapped to monitor 2. So, how to 
configure my spice when using multiple monitors in windows xp 
kvmvirtual machines.

Look forward to receiving your reply and thanks.


Hello stonefly128,

Try adding a virtio-serial device to your VM and a spice port, install 
virtio-serial driver

and make sure spice vdagent is running.

Uri.

___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel


Re: [Spice-devel] problem with spice connecting to multiple monitors

2013-07-16 Thread Edgar
On 07/16/2013 06:09 AM, stonefly128 wrote:
 Dear spice development team:
 I'm asking for help on the spice when using two monitors in kvm
 virtual machines. This is my test environment:A redhat 6.2 x64_64
 server with kvm;one virtual machine using windows xp sp3 OS with two
 qxl graphics cards, the vm configuration file as follows:

snipped
 Inside vm box, i have installed the spice-guest-tools-0.59.exe, and
 following the website http://support.microsoft.com/kb/307873/en-us , i
 configured one *primary monitor*and monitor 2 using the option
 *Extend my Windows desktop onto this monitor* .When I use spice
 connecting to the vm, it will appear two spice windows, spice: 0 and
 spice: 1.
 I can drag items across my screen onto alternate monitors, namely
 spice: 1, but my problem is that my mouse is alway s mapped on the
 primary monitor, it can not be mapped to monitor 2. So, how to
 configure my spice when using multiple monitors in windows xp
 kvmvirtual machines.
 Look forward to receiving your reply and thanks.

 Hello stonefly128,

 Try adding a virtio-serial device to your VM and a spice port, install
 virtio-serial driver
 and make sure spice vdagent is running.

 Uri.

Dear Uri,
I also found spice multiple monitors issue,it seems that it is related to spice 
client tools.
I configurated the guest with 2 monitor support via oVirt-engine.
when connect to guest use spicec, 2 monitor work well. when connect to same 
guest
use spicy,only primary monitor works.
I have glanced spice-gtk code, It seems that spice-gtk support multiple 
monitors.
would you please help to check this issue.
 
My test environment
oVirt engine:
ovirt-engine-3.2.1
spice-server:
spice-server-0.12.0-12
spicec:
spice-client-0.12.2-3
spicy:
spice-gtk-tools-0.20
spice-gtk-tools-0.19
guest:
Windows7 32bit
WindowsXP sp3 32bit.
 
Thanks.
Best Regards___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Spice-devel] spice-gtk http connect proxy authentification ?

2013-07-16 Thread Alexandre DERUMIER
Hi,

I would like to known if it's planned to add authentification to http 
spice_proxy soon ?

I think It should be easy, 

we just need to be able to parse a proxy url like this

http://username:password@host:port


then replace in spice-session.c

   address = g_proxy_address_new(G_INET_ADDRESS(it-data), pport, http,
+  s-host, port, NULL, NULL);

by 

   address = g_proxy_address_new(G_INET_ADDRESS(it-data), pport, http,
+  s-host, port, username, password);



Best Regards,

Alexandre
___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel