Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
head spinning - need help - virtual machine problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 821
Location: Alaska

PostPosted: Tue Oct 14, 2008 7:02 pm    Post subject: head spinning - need help - virtual machine problems Reply with quote

Can't think -need to step back.
It all started running vmware-server from portage with guest winxp. Using for autocad/photoshopCS3/stuff. Wanted to upgrade kernel so found thread on vmware-server-2.0.* with kernel gentoo-sources-2.6.26.* and managed to get that working with my existing winxp install.

Then had a mistake that caused a reinstall of system - long overdue maybe because of many past errors - but whatever - I reinstalled. I saved my home directory where the vmx and vmdk files reside but lost (forgot) the other related server config files in /var/lib/vmware/. So got gentoo re-installed but now cannot get vmware to see my old vm install. So I began a quest to look at other virtual machine software.

Settled on trying KVM - used the gentoo wiki on it and built it into the kernel like maybe the wiki suggested was do-able (as opposed to modules). I was able to create the gentoo-i386.img as in the example but no other commands were recognized when trying to install winxp. Looked at the kvm-qemu wiki and no commands there were recognized. qemu-system-x86_64 and qemu-img commands not found. I looked around for current how-to but found nothing - didn't spend a whole lot of time because of mounting frustration and having a life outside of gentoo.

So gave kvm up. Spent a bunch more time re-trying vmware-server on command line tools to register my old vm (failed) and then to create a new vm - even that failed with script errors. Uninstalled vmware-server. Thinking of going back to older kernel and portage version of vmware, but since existing vm is converted to newer server, I doubt I can rescue it.

Gave virtualbox a try but cannot get it to install. It chokes on installing virtualbox-modules. Been wasting a bunch of time searching bugs and the forum on similar but not quite applicable posts from others with no luck. Maybe it is newer kernel which I installed - 2.6.27. Maybe I need to re-emerge something like linux-headers but tired of chasing hunches that lead nowhere.
Here's how virtualbox-modules fails:
Code:
ONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mp_r0drv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/r0drv/linux/mp-r0drv-linux.o /var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/r0drv/linux/mp-r0drv-linux.c
In file included from /var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/SUPDRVShared.c:35:
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/SUPDRV.h:104:30: error: asm/semaphore.h: No such file or directory
In file included from /var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/linux/SUPDrv-linux.c:35:
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/SUPDRV.h:104:30: error: asm/semaphore.h: No such file or directory
make[2]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/SUPDRVShared.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/linux/SUPDrv-linux.c: In function 'supdrvOSGipResume':
/var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/linux/SUPDrv-linux.c:1331: error: too many arguments to function 'smp_call_function'
make[2]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/work/vboxdrv] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo'
make: *** [vboxdrv] Error 2
 *
 * ERROR: app-emulation/virtualbox-modules-1.6.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3139:  Called linux-mod_src_compile
 *             environment, line 2411:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                           CC=\"$(get-KERNEL_CC)\"                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"      ${BUILD_FIXES}                                           ${BUILD_PARAMS}                             ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/2.6.27-gentoo/build all
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-1.6.4/temp/build.log'.
Happens on both virtualbox-bin and ose.
Code:
jad ~ # uname -r
2.6.27-gentoo

Code:
jad ~ # eselect kernel list
Available kernel symlink targets:
  [1]   linux-2.6.26-gentoo-r1
  [2]   linux-2.6.27-gentoo *


So help needed it either overcoming problems above or evaluating choices. Not sure about Xen because it seems you need a special xen-sources kernel for that? Maybe there's workarounds.

Virtualbox bin or ose? I want but don't need USB since I have a USB external backup drive I wouldn't mind using. I did see a post where they put a line in fstab to enable USB but it wasn't clear if that works on -ose or if needed just for -bin. More use-ability = better.

thanks for looking! /jd
Back to top
View user's profile Send private message
hirakendu
Guru
Guru


Joined: 24 Jan 2007
Posts: 386
Location: san diego

PostPosted: Tue Oct 14, 2008 8:23 pm    Post subject: Reply with quote

didn't go through every bit of your post, but i strongly suggest virtualbox-bin 2.0.2. i prefer -bin over -ose for more features, and i regard their -bin as *almost* open source. version 1.6 may not play nice with 2.6.27. version 2.0.2 is stable enough that you should unmask (~x86) it.

vmware is very good too, especially workstation, but it seems that their kernel modules are perenially broken. its sad that a company which touts itself as leader in virt tech is so behind in such a simple task ;). other simple things been dynamic clocking. that too its like the last mile - all upper features are very well implemented though. so unless you are using a rhel something with a 10 versions behind kernel, shouldn't expect much luck.
_________________
Helium Sources || Gentoo Minimal Livecd
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 821
Location: Alaska

PostPosted: Tue Oct 14, 2008 9:07 pm    Post subject: Reply with quote

thanks hirakendu,

I can be a bit long winded and that post of mine is a good example of what not to do to get help on any one aspect.

I'll try to unmask vb-2.0.2 and see if that works. /jd

[edit] yeah- the 2.0.2 vbox-modules compiled. Now dloading the binary..
Back to top
View user's profile Send private message
hirakendu
Guru
Guru


Joined: 24 Jan 2007
Posts: 386
Location: san diego

PostPosted: Tue Oct 14, 2008 10:30 pm    Post subject: Reply with quote

aside, its a good idea to do one change at a time and keep things simple ;).
_________________
Helium Sources || Gentoo Minimal Livecd
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 821
Location: Alaska

PostPosted: Tue Oct 14, 2008 10:59 pm    Post subject: Reply with quote

hirakendu wrote:
aside, its a good idea to do one change at a time and keep things simple ;).


where's the danger and excitement in that? :wink:
Back to top
View user's profile Send private message
hirakendu
Guru
Guru


Joined: 24 Jan 2007
Posts: 386
Location: san diego

PostPosted: Tue Oct 14, 2008 11:19 pm    Post subject: Reply with quote

hunky wrote:
hirakendu wrote:
aside, its a good idea to do one change at a time and keep things simple ;).


where's the danger and excitement in that? :wink:


trust me, i love taking stupid risks more than anyone else, but i pay dearly almost every time :D (especially at critical ones :|).
_________________
Helium Sources || Gentoo Minimal Livecd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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