From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HEf6V-00052p-9v for garchives@archives.gentoo.org; Wed, 07 Feb 2007 05:12:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l175B9ZK026262; Wed, 7 Feb 2007 05:11:09 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l1755ZFw019457 for ; Wed, 7 Feb 2007 05:05:36 GMT Received: by ug-out-1314.google.com with SMTP id z38so93819ugc for ; Tue, 06 Feb 2007 21:05:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=OR394DT9DKd35luk/1u8FK5j0+03LZokk47oUKZzYziTYR2oKXpzmuwgN7fpibU0+Nz9X9+YHSmwYy+eyQJhafqZBSln0DxIc0tb0gH9G5eiv2soDAQGurzex9fXW3yukEIdLhf8CM2G4P0QTDYsSQrgPcW/k+jX9vNVJ0woc3s= Received: by 10.78.201.2 with SMTP id y2mr2061053huf.1170824735553; Tue, 06 Feb 2007 21:05:35 -0800 (PST) Received: by 10.78.12.16 with HTTP; Tue, 6 Feb 2007 21:05:35 -0800 (PST) Message-ID: Date: Wed, 7 Feb 2007 00:05:35 -0500 From: "Jason Weisberger" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Gentoo VMWare image works on Intel but not AMD. Are they not interchangeable? In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17433_27771734.1170824735506" References: X-Archives-Salt: 5e96827a-f646-4e57-aff0-af5e62b6f4f3 X-Archives-Hash: 8420b30ab1a45acd0295a9639fbb42f8 ------=_Part_17433_27771734.1170824735506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Daevid, If your Gentoo installation was compiled with march=p4 or the like, your image will not work on an AMD machine. The way to have them interchangeable is to use march=i686 mtune=p4, that way there are no cpu-specific instructions compiled into your binaries. mtune will just adjust the scheduling to fit the pipeline of your most used arch. The one piece of hardware that cannot be virtualized on an x86 machine is unfortunately the cpu, unless of course you're running a new cpu with Intel Virtualization or AMD's Pacifica. Even then, it can't deal with incompatible binaries. You'll not just have to recompile your kernel, but your entire system with the new cflags for it to work interchangeably. Jason Weisberger On 2/5/07, Daevid Vincent wrote: > > I have a VMWare Workstation image of Gentoo Linux that I transfer between > my > desktop and my notebook (for LAMP/Ruby development) and it works fantastic > on both. Both are running WindowsXP as the host VMWare. Both are Pentium4. > > > Recently, I tried to share the image with a co-worker and it pukes out > about > the time it does some udev stuff at the top of starting up. The (rc.init?) > scripts start breaking and spewing lots of errors and ultimately doesn't > mount the filesystem properly. We are able to manually mount it later, but > then lost of other things are broken. VMware doesn't have any errors we > could find, not even in the logs. It seems to be an OS issue. > > Does the host CPU make a difference? I thought it was all emulated? I > tried > to recompile the kernel with the generic '386 CPU settings and removed all > power mgmt etc, and the same issue happens. > > Can I not transfer between Intel and AMD CPUs? Is there some magic thing > in > the kernel I need to set so it can work on both? > > We attempted several times and tried using VMWare player and also VMWare > workstation. > > It would really suck to have to have him re-compile everything just to get > > the same dev environment setup as mine. > > I also posted this on the VMWare forums in case anyone cares: > http://www.vmware.com/community/thread.jspa?threadID=71079 > > -- > gentoo-user@gentoo.org mailing list > > -- Jason Weisberger jbdubbs@gmail.com ------=_Part_17433_27771734.1170824735506 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Daevid,

If your Gentoo installation was compiled with march=p4 or the like, your image will not work on an AMD machine.  The way to have them interchangeable is to use march=i686 mtune=p4, that way there are no cpu-specific instructions compiled into your binaries.  mtune will just adjust the scheduling to fit the pipeline of your most used arch.  The one piece of hardware that cannot be virtualized on an x86 machine is unfortunately the cpu, unless of course you're running a new cpu with Intel Virtualization or AMD's Pacifica.  Even then, it can't deal with incompatible binaries.  You'll not just have to recompile your kernel, but your entire system with the new cflags for it to work interchangeably.

Jason Weisberger

On 2/5/07, Daevid Vincent < daevid@daevid.com> wrote:
I have a VMWare Workstation image of Gentoo Linux that I transfer between my
desktop and my notebook (for LAMP/Ruby development) and it works fantastic
on both. Both are running WindowsXP as the host VMWare. Both are Pentium4.

Recently, I tried to share the image with a co-worker and it pukes out about
the time it does some udev stuff at the top of starting up. The (rc.init ?)
scripts start breaking and spewing lots of errors and ultimately doesn't
mount the filesystem properly. We are able to manually mount it later, but
then lost of other things are broken. VMware doesn't have any errors we
could find, not even in the logs. It seems to be an OS issue.

Does the host CPU make a difference? I thought it was all emulated? I tried
to recompile the kernel with the generic '386 CPU settings and removed all
power mgmt etc, and the same issue happens.

Can I not transfer between Intel and AMD CPUs? Is there some magic thing in
the kernel I need to set so it can work on both?

We attempted several times and tried using VMWare player and also VMWare
workstation.

It would really suck to have to have him re-compile everything just to get
the same dev environment setup as mine.

I also posted this on the VMWare forums in case anyone cares:
http://www.vmware.com/community/thread.jspa?threadID=71079

--
gentoo-user@gentoo.org mailing list




--
Jason Weisberger
jbdubbs@gmail.com ------=_Part_17433_27771734.1170824735506-- -- gentoo-user@gentoo.org mailing list