Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - vmware needs kernel headers - SOLVED
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32461
Location: 56N 3W

PostPosted: Fri Apr 12, 2013 7:08 pm    Post subject: Reply with quote

Moriah,

kvm uses kvm-qemu for all of its processors.
Last time I tried it only supports Intel/AMD CPUs

qemu supports all of your CPU emulation too but could not be installed beside kvm-qemu last time I tried.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Fri Apr 12, 2013 7:59 pm    Post subject: Reply with quote

Aha! So since my main need is a replacement for vmware workstation, then kvm looks like the answer. :idea:

In order to perform development on non-x86(_64) type cpu's, I would need to boot from a different disk. OK, I can live with that. I guess I will be installing kvm in the very near future -- as soon as I finish making extensive backups, both filesystem, and drive image. :)

Maybe I could even boot a different gentoo system under kvm, and then run qemu under that vm, so I could have my cake and eat it to, so to speak. :twisted:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2502
Location: Dallas area

PostPosted: Fri Apr 12, 2013 8:28 pm    Post subject: Reply with quote

qemu and kvm have merged.

Qemu is the emulation software, Kvm gives hardware virtualization to the x86* world

Qemu with kvm on x86* style hardware gives near native performance.

Qemu emulating say sparc (no kvm), is done in emulation mode and thus slower (depending on hardware might be faster than a native sparc processor)

You can run multiple virtual machines at the same time (given enough memory, cpu, etc) without much system degradation.


Using qemu/kvm I can run XP near as fast in virtual mode as on the hardware itself. YMMV
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4(2010)
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Wed Apr 17, 2013 3:37 am    Post subject: Reply with quote

I gave up on the ebuild version of vmware workstation; in fact I think I'm giving up on vmware workstation altogether.

I got kvm "sort of" running under 3.7.10-gentoo and need some help working the kinks out. :|

I got it to boot and run the win-xp-pro install cd image to install win-xp.

But there are some problems.

First, the System section of the Control Panel shows that I only have 128 MB of ram in the virtual machine; I will be needing up to 2 gb to run real stuff in it. How do I specify the amount of ram for a vm?

Second, whenever I change screen resolution, the vm crashes with:
Code:

rj@gehazi ~ $ qemu-kvm -hda gentoo-i386.img -cdrom vmware/guests/xp-pro/xp-pro-sp3.iso
VNC server running on `127.0.0.1:5900'
qemu: qemu_mutex_lock: Invalid argument
Aborted


Third, it will only allow me up to 1280x1024 pixels, and that only in 16-bit color. I need 1920x1200 with 32-bit color to run real stuff in the vm. How do I up the frame buffer size of the vm?

Third, and this one is driving me crazy, the mouse pointer generated by win-xp does not follow vncviewer's little mouse dot. There seems to be a multiplier factor problem, as the xp cursor moves in the correct direction, but only about 2/3 as far as the vncviewer dot. I must have something configured wrong. I am using tightvnc to view the framebuffer served by the vm.

If I can get these issues worked out, I will move on to setting up the networking. Since this is on a laptop that sometimes roves to unsecured networks, I want the vm's to be NATted behind the host machine. My vmware setup used dhcp, but static addresses would be better, and probably easier to set up as well.

If all that works, then the only remaining item I can think of would be specifying more than one core to run in a vm, but since the laptop is only a core2duo, that is not a big issue. When I set kvm up on my AMD 8-core server with 16 GB ram, that will become an issue. 8)
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Wed Apr 17, 2013 5:03 am    Post subject: Reply with quote

Fiddled around with the qemu-kvm --help command and got my ram set at 1 gb. :)

I specified -vga vmware and got my 1920x1200 pixel resolution at 24 bits/pixel. :)

Also got the crashing to quit, but I'm not sure how. :?

But the mouse is still not behaving properly. It now looks to be related to acceleration, as if I jerk the mouse really quickly, I can get the xp pointer cursor to get ahead of the vnc dot cursor. With the 1920x1200 resolution I use full screen mode, so I do not fall off the edge of the vnc window, but its still annoying and disorienting. :(

Anybody know how to fix the mouse? :?:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Wed Apr 17, 2013 5:26 am    Post subject: Reply with quote

Victory! By turning of the "enhance pointer precision" option in the mouse section of the windows xp control panel, I got the mouse to behave in a rational manner. :mrgreen:

Now to set up networking -- tomorrow. It's bedtime in Kentucky. :roll:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Wed Apr 17, 2013 5:26 pm    Post subject: Reply with quote

Networking is confusing because the gentoo wiki for kvm is pretty old and kvm seems to have changed a lot since the wiki was written. Is there any up to date information on kvm besides kvm --help? Its useful, but so terse that you need to know the answer to understand it, with the --help only serving as a reminder of the details. It helped me solve some things, but networking is more complex, and I would really like to see current documentation elaborating on the --help stuff.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32461
Location: 56N 3W

PostPosted: Wed Apr 17, 2013 6:16 pm    Post subject: Reply with quote

Moriah,

Cheat - use virt-manager.
Its a GUI kvm manager.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Wed Apr 17, 2013 8:28 pm    Post subject: Reply with quote

Thanks Neddy! That will help initially, but I really want to script everything eventually, as I plan to use kvm not only on my development laptop, but also for isolation on my main internet facing server, which operates unattended much of the time, and must be remotely administered, so I will still need good documentation.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32461
Location: 56N 3W

PostPosted: Wed Apr 17, 2013 9:02 pm    Post subject: Reply with quote

Moriah,

I ssh into my VMs, unless I really mess up then virt-manager provides a fake console.
They may as well be 1000's of miles away because the closest you can get to them is the real hardware and doesn't help. I can't get to a VM console there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Wed Apr 17, 2013 9:26 pm    Post subject: Reply with quote

I have been running vmware workstation for years, but it is having trouble with the 3-series kernels, so it is finally pushing me to go open source and run kvm instead. The folks at vmware will no longer support vmware workstation on gentoo, as it is not listed as a supported distro. I have been meaning to look into open source virtualization tools for some time now, but it took this to shove me into it. :?

I like to run a vnc server on my vm's so there is persistence on the running windows. That way I can disconnect and reconnect and everything is still being displayed in its own window as before. I run an ssh tunnel to protect the rfb protocol, and iptables to prevent the 59xx ports from going out over the ethernet directly. qemu-kvm has a build-in vnc server capability, and it has the alt-ctl-1,2,etc mode switches to get at a qemu console from there, and of course I could still just ssh into it as well.

What I really want is good timely up to date docs on qemu-kvm. :!:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Thu Apr 18, 2013 5:16 am    Post subject: Reply with quote

I installed virt-manager; it pulls in a ton of other stuff!

When I run it (after starting libvirtd) I get:
Code:

Unable to connect to libvirt.

no connection driver available for No connection for URI qemu:///system

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1027, in _open_thread
    self.vmm = self._try_open()
  File "/usr/share/virt-manager/virtManager/connection.py", line 1009, in _try_open
    flags)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: no connection driver available for No connection for URI qemu:///system

in a pop-up error box.

What did I neglect to do? :?:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32461
Location: 56N 3W

PostPosted: Thu Apr 18, 2013 4:46 pm    Post subject: Reply with quote

Moriah,

You can run virt-manager without starting libvirtd an it should open an empty window for you to set up some connections.
Do you run it as root or your nomal user ?
You need to be in the kvm group to run it as a normal user.

Once you get virt-manager to run, the host that you want to connect to to manage KVMs needs to be running libvirtd

I get
Code:
 Unable to connect to libvirt.

Verify that the 'libvirtd' daemon is running.
on startup as I don't normally run libvirtd on my local PV.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pluppets
n00b
n00b


Joined: 10 Apr 2013
Posts: 6
Location: Black Flag, US

PostPosted: Fri Apr 19, 2013 8:08 am    Post subject: VMWare 9.0.1 Reply with quote

Just popping in to report success with:

-Kernel 3.7.10
-VMWare 9.0.1 (or most recent)
-symlink gimmick I posted on the first page

Code:
sudo ln -s /usr/src/linux-3.7.10-gentoo/include/generated/uapi/linux/version.h /usr/src/linux-3.7.10-gentoo/include/linux/version.h


The only (unrelated) issue:

If you re-build your kernel after the VMWare modules are compiled, 'make modules_install' will fault on them, causing everything alphabetically after /misc to fail as well. To fix, just remove the vm*.ko and vsock*.ko files. VMWare can re-install them on startup.

Excuse the lazy asterisk-ing, it's how I roll. :D
_________________
"You're a nice guy, and I hate you for that." ;3
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Thu Apr 25, 2013 4:51 am    Post subject: Reply with quote

I have had some success with qemu-kvm, so I plan to continue along that route. Vmware can pound sand! :twisted:

I have a win-xp-pro system running under kvm now, although I haven't tried audio or usb yet, or snapshots but networking is easier for me, since I know how to do that in gentoo anyway. I can't wait to try migration, but that will have to wait until I have set up some kind of SAN or NAS for networked disk to be visible to multiple hosts.

I am building a gentoo 64-bit system as I type this.

I consider the vmware problem solved: use kvm instead. Open source and no license fees really makes my day! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Fri May 03, 2013 3:27 pm    Post subject: Reply with quote

I am unable to get virt-manager to connect to anything. Likewise, I cannot find much in the way of docs for it eaither. Can you help me get started with it, Neddy?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
midway
Apprentice
Apprentice


Joined: 01 Jun 2012
Posts: 181
Location: somewhr in the blighty

PostPosted: Wed Aug 28, 2013 12:09 pm    Post subject: this works Reply with quote

this works just fine:
http://www.powelltechconsulting.com/install-vmware-tools-on-gentoo/

my set-up:
Linux i686 3.10.7-gentoo on ESX 4.1U3a
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1913
Location: Kentucky

PostPosted: Wed Aug 28, 2013 3:15 pm    Post subject: Reply with quote

I no longer need it. I switched over to qemu with kvm and I'm not looking back! :mrgreen:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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