From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D8A0C61DA4 for ; Thu, 16 Feb 2023 14:30:22 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSfGj-0006XD-2V; Thu, 16 Feb 2023 09:29:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSa7r-0004qt-7e for qemu-devel@nongnu.org; Thu, 16 Feb 2023 04:00:23 -0500 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSa7o-0003I8-HD for qemu-devel@nongnu.org; Thu, 16 Feb 2023 04:00:22 -0500 Received: by mail-lj1-x233.google.com with SMTP id a9so1174712ljr.13 for ; Thu, 16 Feb 2023 01:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=JQlAeGMUz+W0FvjU+Wix+xY+9zeggi3oMBEbyiyjUNA=; b=HAHjnnxQcAB/vFhRO3a6grmiso4aUX3BHuZ+D5DHgznbuatGKu/nGsmLwVTEQsiAlT dhYPl4V9+tzIL5B13R7MuVwxelRtJZJcfe7JNFVEDRB2L73VKMkH2KwVabeot/n2dD8B u5GjYEakbR5hufebIv7WfVwmPXU+ySmxkrJRalj9Z4E1ZxROVi6uWGITtVZ888oQ3vqL VqiWrfRQFVQ9iOSNiF+EiaPUHlUBiD+sU9joKDYYz6osFbjwjSbE8DD/wx4eFsBivZ1p drazDClBS8CFmS1p6mdAVAZA8AbbP00rrZRdGo1VAbZU6MCPQ8NciFZaTHqp675+FiRF tl1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JQlAeGMUz+W0FvjU+Wix+xY+9zeggi3oMBEbyiyjUNA=; b=l8ugJw7/dfgjIu58dc7Y2AL05M4QtxtPW6ocefybbGYLdS0CoxxzAO1e3jdqcaFJD4 cIBPJWzRWv3BrdKCo54KZU7A4ZC1DEib71UfkhHeUAamVVGmvFFWb0EjhTqQJB3OhLFt 4ozEoyoDUwPgZhG6wSQZCOattj94zpm424NPhUtIfKYPIq3u+xkVco/b+nYQHLYzUkal VThumUK+3gWbgs2p/ljwSAhhRtCoCm5omA0fTl9lBZnc0fcldRcAD6FxBODeNJuXNRpC u0wPP3i/B/x3ShdhWZyfS6+C5JObNF8uOeMzlnk0OLQGkmrNrkBUXpGMI4q/ME2SN90o vJ6A== X-Gm-Message-State: AO0yUKU7LiGNKzTr3AxHgUytftQKkHYYbY4w9I0YF6h0eyK08jZ7lX2k 3WiAtV75rcfKtLu9FioHs7vagzfnW88wgKv3vQH/AmmcmYo= X-Google-Smtp-Source: AK7set8+fA0HPAenWNljLMm3hggRt0vrLceycJaw4iB/CevWj0ZUj5geHCJszgZtYg8RhYKGAifi8M6Ct8p+T/bDaD0= X-Received: by 2002:a2e:8e21:0:b0:293:4ffa:a68c with SMTP id r1-20020a2e8e21000000b002934ffaa68cmr1407137ljk.8.1676538017676; Thu, 16 Feb 2023 01:00:17 -0800 (PST) MIME-Version: 1.0 From: ginu samuel Date: Thu, 16 Feb 2023 14:30:05 +0530 Message-ID: Subject: Runnig solaris binary(32 bit) on linux(64 bit) To: qemu-devel@nongnu.org Content-Type: multipart/alternative; boundary="000000000000ff023b05f4cd6cdd" Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=samuel.ginu2010@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 16 Feb 2023 09:29:51 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org --000000000000ff023b05f4cd6cdd Content-Type: text/plain; charset="UTF-8" Hi, I have a requirement to run a Solaris binary ( 32 bit ) on linux (64 bit). Since some of the sources for the binary are not available, recompilation on linux is not possible. So we are trying to run on linux using QEMU the uname output on solaris box is - #uname -sip SunOS sparc sun4v the uname output on linux box is - #uname -siop Linux x86_64 x86_64 GNU/Linux Following are the questions: 1. Is the user mode emulation (of QEMU) the right way to do this? 2. If yes, what would be actual command to do this. The Linux User space emulator ( https://www.qemu.org/docs/master/user/main.html) gives the command : qemu-i386 [-h] [-d] [-L path] [-s size] [-cpu model] [-g port] [-B offset] [-R size] program [arguments...] Is there a suitable command for 64 bit linux to run the program ? 3. Is this the package to install for RHEL as given in documentation? - RHEL/CentOS: yum install qemu-kvm 4. Does the program require Super user privileges to run? Regards, Ginu --000000000000ff023b05f4cd6cdd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
=C2=A0 =C2=A0 I=C2=A0have a requirement to run a S= olaris binary ( 32 bit ) on linux (64 bit).

Since = some of=C2=A0the=C2=A0sources=C2=A0for the binary are not available, recomp= ilation on linux is not possible.

So we are trying= =C2=A0to run on linux using QEMU

the uname output = on solaris box is -=C2=A0
#uname -sip
SunOS sparc sun4v=

the uname output=C2=A0on linux box is -
#uname -siop
Linux x86_64 x86_64 GNU/Linux

<= div>Following are the questions:
1. Is the user mode emulation=C2= =A0(of QEMU) the right way to do this?=C2=A0

2. If= yes, what would be actual command to do this. The=C2=A0Linux User space em= ulator (=C2=A0h= ttps://www.qemu.org/docs/master/user/main.html) gives the command :
qemu-i386 [-h] [-d] [-<=
/span>L path] [-s size] [-cpu model] [-g port] [-B offset] [-R size] program <=
span class=3D"gmail-p" style=3D"box-sizing:border-box">[arguments...=
]
Is there a suitable command for 64 bit linux to run =
the program ?
3.  Is this th=
e package to install for RHEL as given in documentation?
  • RHEL/Cen= tOS:=C2=A0yum ins= tall qemu-kvm


4. Does the program requ= ire Super user privileges to run?

Regar= ds,
Ginu=


--000000000000ff023b05f4cd6cdd--