LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   KVM with spice fedora 12 problem (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/kvm-with-spice-fedora-12-problem-780928/)

danilo2 01-08-2010 03:29 PM

KVM with spice fedora 12 problem
 
Hi!
I'm trying to run windows on kvm with spice drivers on my fedora now but I've got a problem.
When I normal run windows (with wirtual machine manager) everything is ok, but windows is soooo sloowww, - mouse is moving about 10 fps :/ )
I heard that kvm is the fastest way to
I'm doing everything as is described on this page:
http://www.linux-kvm.com/content/rhe...leased-windows
and after I write command in termianl (even as root):

/usr/libexec/qemu-spice \
-hda /home/virt/w7.img \
-m 1024 \
-qxl 1 \
-spice port=5930,disable-ticketing &

then I've got the same output in my terminal as the author, but ... nothing happens next - I cannot wrote nothing in console - it's like hanged (of course i can ctrl+c)
When I run then system with virt machine manager - it behaves normal - it doesn't discover any new devices (as it should - on those site was described, it should).

What should I do?
(Is it true that kvm with spice is a lot faster than vmware?)

tboyer 01-09-2010 02:09 PM

Check the xml file...
 
Speed issue: Check the xml file, and make sure the first line is

<domain type='kvm'>

If domain type is 'qemu', it's doing the emulation purely in software, and it's dog slow. Shut down the guest, change it, restart /etc/init.d/libvirt.

Don't know about the Spice issue.

-- tim --

danilo2 01-10-2010 07:31 AM

Quote:

Originally Posted by tboyer (Post 3820470)
Speed issue: Check the xml file, and make sure the first line is

<domain type='kvm'>

If domain type is 'qemu', it's doing the emulation purely in software, and it's dog slow. Shut down the guest, change it, restart /etc/init.d/libvirt.

Don't know about the Spice issue.

-- tim --

Sorry, but which xml? :(

dyasny 01-11-2010 05:06 AM

I've used spice, and it is faster than vnc by far. It also allows to watch divx movies and youtube videos right inside the remote console.

but I haven't tried the suggested stuff from the link above. There is room for comments in there, why not poste the question on that forum, and get your questions answered by the people who wrote the tutorial and know all the pitfalls?

tboyer 01-11-2010 06:16 AM

Quote:

Originally Posted by danilo2 (Post 3821083)
Sorry, but which xml? :(

Whatever the name of your guest is. For instance, I've got

[root@defiant xmdata_backup]# virsh list
Id Name State
----------------------------------
3 princeton running
4 challenger running
5 roosevelt running
6 melbourne running
14 buran running
15 dg running

so the file's going to be /etc/libvirt/qemu/princeton.xml. At least, in RHEL; I assume fedora's the same.

martdj2 01-11-2010 10:32 AM

Though I don't know much about KVM (setting up my server currently to try it out), it might be good to check the obvious: Does your cpu support virtualization? Without it, you're basically just using qemu and that will be slow.

feinbein 01-11-2010 03:15 PM

Quote:

Originally Posted by danilo2 (Post 3819398)
and after I write command in termianl (even as root):

/usr/libexec/qemu-spice \
-hda /home/virt/w7.img \
-m 1024 \
-qxl 1 \
-spice port=5930,disable-ticketing &

then I've got the same output in my terminal as the author, but ... nothing happens next - I cannot wrote nothing in console - it's like hanged (of course i can ctrl+c)
When I run then system with virt machine manager - it behaves normal - it doesn't discover any new devices (as it should - on those site was described, it should).

What should I do?
(Is it true that kvm with spice is a lot faster than vmware?)

Hi Danilo,
you need to install spice-client from the same fedora-repo as the server and the run:

/usr/bin/spicec --host localhost --p 5930
from the same machine or

/usr/bin/spicec --host <server-ip> --p 5930
from another machine

Do not expect to much though before you have installed the qlx drivers in your guest. The whole thing is still pretty beta (alpha?)

See also:
http://www.linux-kvm.com/content/get...pice-fedora-12
http://www.spice-space.org/docs/spice_user_manual.pdf

danilo2 01-31-2010 06:11 PM

Hi!
sorry, that I didn't post for so long, but I had exams on my univesrity and I hadn't time to mess up with spice;]
now I can play wuith it :)
so:
dyasny -> I thought that these people, who wrote this tutorial may see this post, but you're right, when it would not work I would mail them :)

tboyer -> maybe I'm doing soething wrong, but when i run your's command, I got:
virsh list
Id Name State
----------------------------------
and nothing else (with or without running windows in "virtual machine manager"

martdj2 -> yes my cpu supports it.

feinbein -> Thank you:) I've got installed spice-client
but when I run your command I got:
/usr/bin/spicec --host localhost --p 5930
/usr/bin/spicec: invalid option '--p'

but
/usr/bin/spicec --host localhost -p 5930
does'nt give any errors and infos , so it works , i think, but I don't see any changes.

Should I always run "/usr/bin/spicec --host localhost -p 5930" before running windows?
tommorow I'll try to install the qlx drivers and i hope it will work :)

danilo2 01-31-2010 06:24 PM

Ok I've tried to do everything like in this tutorial:
http://www.linux-kvm.com/content/get...pice-fedora-12
and when I'm running the script:
/usr/libexec/qemu-spice \
-hda /home/virt/w7/w7.img \
-m 512 \
-qxl 1 \
-spice port=5930,disable-ticketing &
(I run it as root)
I have very similar sentences as in the picture in this tutorial (http://www.linux-kvm.com/sites/defau...piceoutput.png)
and what happens? It waits about 20 seconds and EVERY 20 seconds it writes:
"
vdi_port_io_map: base 0xc010 size 0x10
vdi_port_ram_map: addr 0xc1000000 size 0x10000
ram_map: addr 0xc4000000 size 0x4000000
vram_map: addr 0xc8000000 size 0x1000
rom_map: addr 0xc8002000 size 0x2000
ioport_map: base 0xc020 size 0x8
ram_map: addr 0xc4000000 size 0x4000000
vram_map: addr 0xc8000000 size 0x1000
rom_map: addr 0xc8002000 size 0x2000
ioport_map: base 0xc020 size 0x8
qxl_display_resize
qxl_reset
handle_dev_input: detach
handle_dev_input: attach
create_cairo_context: using cairo canvas
"
or very similar outputs always with sentence "create_cairo_context: using cairo canvas" on the end.

EDIT:
I noticed something very interesting!
When I "ctrl+c" this infinite loop, that i described above, I can run spice with "/usr/bin/spicec --host localhost -p 5930" ! but only once - when i close it I again have to run:
/usr/libexec/qemu-spice \
-hda /home/virt/w7/w7.img \
-m 512 \
-qxl 1 \
-spice port=5930,disable-ticketing &

and after about 20 seconds I have to "ctrl+c" it and I can run spice again. Hmm I suppose that it is n't THE way to run spice?
and additional 1 question:
how can I install the spice drivers when I've got no internet connection on windows? can I make it wokring some way?

danilo2 02-01-2010 04:59 AM

Ok I think I managed to run spice good way - in one terminal I run the script form the tutprial and in second terminal I run "/usr/bin/spicec --host localhost -p 5930"

One problem is that windows doesn't discover "new hardware" and i can't install the drivers.
In control panel->devicemanager->display adapters I've got only "standard VGA Graphics Adapter" and even If I try to update manually drivers of this device I've got message that the "best drivers" are already installed.
Am I making something wrong?

carbine 02-17-2010 01:32 PM

I'm having a similar issue.

Image was created as a FC12 x86_64 image using KVM. QXL driver was loaded from here:

http://www.rpmfind.net/linux/RPM/fed...13.x86_64.html


xdriinfo says "not direct rendering capable."

X was not running during driver install.

Host is an FC12 x86_64 machine.

The guest runs great unless I have X running. :)

Any ideas what I'm missing here? This driver can't be in use is what I'm figuring...

danilo2 02-18-2010 04:10 AM

Hi!
I was talking with developers and after some tests - Spice doesn't currently run on Win 7 :(

carbine 02-19-2010 10:56 AM

I got the client running on my W7 desktop with similar performance to running it on FC12.

dyasny 02-19-2010 12:21 PM

I have a win7 x32 VM working more or less, but I used the XP drivers, which is not the best idea

danilo2 02-20-2010 04:25 PM

Hi! How have you installed spice drivers in windows 7?
For me (adn developers I was talking with) it was impossible!


All times are GMT -5. The time now is 02:36 PM.