qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create Solaris 10/64bit Sparc VM using qemu-system-sparc64


From: Gong, Zaiwen
Subject: Re: Create Solaris 10/64bit Sparc VM using qemu-system-sparc64
Date: Tue, 2 Feb 2021 20:05:32 +0000

Hi Artyom,

Another super quick reply 🙂

"You are running emulated Solaris 10 on a sun4v partition", 
--So basically this OpenSPARCT1_Arch.1.5.tar.bz2 is like a tarred Solaris 10 Sparc VM template? Wow, cool! That's exactly what I am looking for.

"That one is tricky. The emulated machine has no devices except for a serial line. I think it should be possible to set up ppp over serial or SLiP, but haven't tried it myself."
--I will try it.

"And can I modify its filesystem size? I need much bigger filesystem"
--I will google on the opensparc related projects and try it.


Thanks,
Zaiwen



From: Artyom Tarasenko <atar4qemu@gmail.com>
Sent: Tuesday, February 2, 2021 2:50 PM
To: Gong, Zaiwen <zgong@bnl.gov>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>; qemu-discuss@nongnu.org <qemu-discuss@nongnu.org>; Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Subject: Re: Create Solaris 10/64bit Sparc VM using qemu-system-sparc64
 
On Tue, Feb 2, 2021 at 8:37 PM Gong, Zaiwen <zgong@bnl.gov> wrote:
>
> Hi Artyom,
>
> Thank you very much for the quick reply. I really appreciate it.
>
> I followed your instructions:
> https://urldefense.com/v3/__https://tyom.blogspot.com/2016/10/qemu-sun4vniagara-target-went-public.html__;!!P4SdNyxKAPE!Uw3XDbBI73uSAu26F1h80aJSdp52dLb1HoUzcZbLeUoABfGJXdNNhMVqygH-jNc$
>
> Here is what I did:
>
> download https://urldefense.com/v3/__http://download.oracle.com/technetwork/systems/opensparc/OpenSPARCT1_Arch.1.5.tar.bz2__;!!P4SdNyxKAPE!Uw3XDbBI73uSAu26F1h80aJSdp52dLb1HoUzcZbLeUoABfGJXdNNhMVqE8NOb8o$  to my machine's folder /home/here/
> $ cd /home/here
> $ tar xfj OpenSPARCT1_Arch.1.5.tar.bz2 ./S10image
> $ /home/here/qemu-5.2.0/build/sparc64-softmmu/qemu-system-sparc64 -M niagara -L /home/here/S10image/ -nographic -m 256 -drive if=pflash,readonly=on,file=/home/here/S10image/disk.s10hw2
>
> Sun Fire T2000, No Keyboard
> Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
> OpenBoot 4.20.0, 256 MB memory available, Serial #1122867.
> [mo23723 obp4.20.0 #0]
> Ethernet address 0:80:3:de:ad:3, Host ID: 80112233.
>
> ok boot –v
> <…>
> Hostname: unknown
> unknown console login: root
> Last login: Tue Feb  2 10:44:51 on console
> Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
> # uname -a
> SunOS unknown 5.10 Generic_118822-23 sun4v sparc sun4v
> # df -kh
> Filesystem             size   used  avail capacity  Mounted on
> /dev/dsk/c0t0d0s0      480M   232M   200M    54%    /
>
>
> So, I am now in a Solaris 10 Sparc machine so easily?

Yes. :-)

> Can you explain the big picture to me?

You are running emulated Solaris 10 on a sun4v partition.

> How could I configure inside/outside network?

That one is tricky. The emulated machine has no devices except for a
serial line. I think it should be possible to set up ppp over serial
or SLiP, but haven't tried it myself.

>And can I modify its filesystem size? I need much bigger filesystem.

Should be possible but I don't remember the details. Try to google on
the opensparc related projects.

> Actually, I don't really understand this line in your instruction:
> $ cd path/to/qemu-sun4v
>
> What is this path/to/qemu-sun4v? Do I miss anything?

You probably don't need this, it was for building qemu from my source
tree. Meanwhile the changes are in the upstream, so it's not
necessary.

>
> ________________________________
> From: Artyom Tarasenko <atar4qemu@gmail.com>
> Sent: Tuesday, February 2, 2021 1:06 PM
> To: Philippe Mathieu-Daudé <f4bug@amsat.org>
> Cc: Gong, Zaiwen <zgong@bnl.gov>; qemu-discuss@nongnu.org <qemu-discuss@nongnu.org>; Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> Subject: Re: Create Solaris 10/64bit Sparc VM using qemu-system-sparc64
>
> On Tue, Feb 2, 2021 at 6:57 PM Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
> >
> > Cc'ing Mark & Artyom.
> >
> > On 2/2/21 5:35 PM, Gong, Zaiwen wrote:
> > > Hi,
> > >
> > >
> > > I have successfully installed a Solaris 9/32bit Sparc VM
> > > using qemu-system-sparc.
> > >
> > >
> > > Now I am trying to install a Solaris 10/64bit Sparc VM
> > > using qemu-system-sparc64.
> > >
> > >
> > > I tried with QEMU emulator version 4.2.0 and 5.2.0
> > > (https://urldefense.com/v3/__https://www.qemu.org/download/*source__;Iw!!P4SdNyxKAPE!TutolgI9tl_9NJbBYQB4Y4AF0LkX3bKXOfbHEe_YTQTQzU6UlKhCnDtr_WV3xwg$
> > > <https://urldefense.com/v3/__https:/www.qemu.org/download/*source__;Iw!!GqivPVa7Brio!P6lKC4vRM8-zlCPVP7_AyG4qRKR2asQn-RjfAeAg-Hdkw4_AM1CDYW8IveplJrpLWg$>), but unfortunately,
> > > I did not succeed in starting installation of Solaris 10 using QEMU.
> > >
> > >
> > > When I tried to boot the Solaris 10/64bit Sparc iso with this command:
> > >
> > >
> > > #qemu-system-sparc64 -m 3G -hda sparc10.img -cdrom
> > > sol-10-u10-ga2-sparc-dvd.iso -prom-env 'auto-boot?=false'
> > >
> > >
> > >
> > > I can't type anything in this console:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >  Can anyone confirm if Solaris 10/64bit Sparc is working
> > > with qemu-system-sparc64?  If not, what's the option to create a Solaris
> > > 10/64bit Sparc VM?
>
> In the upstream QEMU it's currently only possible with niagara (sun4v) target.
> The instructions here:
> https://urldefense.com/v3/__https://tyom.blogspot.com/2016/10/qemu-sun4vniagara-target-went-public.html__;!!P4SdNyxKAPE!TutolgI9tl_9NJbBYQB4Y4AF0LkX3bKXOfbHEe_YTQTQzU6UlKhCnDtrk7zANEQ$
> with a small update here:
> https://urldefense.com/v3/__https://tyom.blogspot.com/2016/11/sun4v-emulation-update.html__;!!P4SdNyxKAPE!TutolgI9tl_9NJbBYQB4Y4AF0LkX3bKXOfbHEe_YTQTQzU6UlKhCnDtrwysZass$
>
> shall still be valid.
>
> Regards,
> Artyom

reply via email to

[Prev in Thread] Current Thread [Next in Thread]