LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-08-2010, 03:29 PM   #1
danilo2
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Rep: Reputation: 0
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?)

Last edited by danilo2; 01-08-2010 at 03:39 PM.
 
Old 01-09-2010, 02:09 PM   #2
tboyer
LQ Newbie
 
Registered: Dec 2009
Distribution: RHEL
Posts: 16

Rep: Reputation: 1
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 --
 
Old 01-10-2010, 07:31 AM   #3
danilo2
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tboyer View Post
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?
 
Old 01-11-2010, 05:06 AM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 832

Rep: Reputation: 91
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?
 
Old 01-11-2010, 06:16 AM   #5
tboyer
LQ Newbie
 
Registered: Dec 2009
Distribution: RHEL
Posts: 16

Rep: Reputation: 1
Quote:
Originally Posted by danilo2 View Post
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.
 
Old 01-11-2010, 10:32 AM   #6
martdj2
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
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.
 
Old 01-11-2010, 03:15 PM   #7
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
Quote:
Originally Posted by danilo2 View Post
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
 
Old 01-31-2010, 06:11 PM   #8
danilo2
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 01-31-2010, 06:24 PM   #9
danilo2
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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?

Last edited by danilo2; 01-31-2010 at 06:33 PM.
 
Old 02-01-2010, 04:59 AM   #10
danilo2
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
Old 02-17-2010, 01:32 PM   #11
carbine
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
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...
 
Old 02-18-2010, 04:10 AM   #12
danilo2
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Hi!
I was talking with developers and after some tests - Spice doesn't currently run on Win 7
 
Old 02-19-2010, 10:56 AM   #13
carbine
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
I got the client running on my W7 desktop with similar performance to running it on FC12.
 
Old 02-19-2010, 12:21 PM   #14
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 832

Rep: Reputation: 91
I have a win7 x32 VM working more or less, but I used the XP drivers, which is not the best idea
 
Old 02-20-2010, 04:25 PM   #15
danilo2
LQ Newbie
 
Registered: Jan 2010
Posts: 9

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kvm/ qemu + spice nixfreakz Linux - Virtualization and Cloud 1 12-17-2009 08:17 AM
Unable to create a KVM in Fedora 7, please HELP lighthouse Fedora 3 04-16-2009 08:14 AM
LXer: Virtualization With KVM On A Fedora 10 Server LXer Syndicated Linux News 0 03-22-2009 09:20 AM
KVM and Fedora Core 5 jimbo1954 Linux - General 4 10-16-2006 09:40 AM
SPICE on Fedora Core 3 LoGic82 Fedora 6 07-22-2005 08:04 PM


All times are GMT -5. The time now is 03:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration