Skip to contentSkip to conversation

Boot from disk problem

Qemu-devel Ignacio Geli 4 participants 10 messages Nov 25, 2011 – Dec 5, 2011

lore
Share & tools
lore
#0 lore raw

hi all.

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
corrupt label - bad geometry

Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200' >> /etc/format.dat
5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304' >> /etc/format.dat
6) format -d c0t3d0 -t 'QEMU12.0G' then label, y, and quit
7) newfs /dev/dsk/c0t3d0s0 followed by y

another downloaded from:
http://gunkies.org/wiki/Installing_Solaris_2.4_on_Qemu_SPARC

any help will be welcome

Signature · 5 lines
ITECNIS SRL <http:/www.itecnis.com>
        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte
#1 lore raw

Hi,

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Quoted 10 lines

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Andreas

Quoted 57 lines

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
corrupt label - bad geometry

Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

Quoted 1 line
Quoted 1 line

/etc/format.dat

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

Quoted 1 line
Quoted 1 line

/etc/format.dat

6) format -d c0t3d0 -t 'QEMU12.0G' then label, y, and quit
7) newfs /dev/dsk/c0t3d0s0 followed by y

another downloaded from:
http://gunkies.org/wiki/Installing_Solaris_2.4_on_Qemu_SPARC

any help will be welcome

Signature · 5 lines
ITECNIS SRL <http:/www.itecnis.com>
        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#2 lore raw
Quoted 13 lines · Andreas Färber

Hi,

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Quoted 10 lines

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

Quoted 7 lines

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Andreas

Andesas tks for the info.
upgrading to 0.15.1 did not solve the issue.

Adding some info:

QEMU emulator version 0.15.1, Copyright (c) 2003-2008 Fabrice Bellard Linux ws2132 2.6.32-5-openvz-amd64 #1 SMP Mon Oct 3 05:12:50 UTC 2011 x86_64 GNU/Linux Debian squeeze

Regards!

Quoted 57 lines
Quoted 56 lines

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
corrupt label - bad geometry

Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

Quoted 1 line
Quoted 1 line

/etc/format.dat

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

Quoted 1 line
Quoted 1 line

/etc/format.dat

6) format -d c0t3d0 -t 'QEMU12.0G' then label, y, and quit
7) newfs /dev/dsk/c0t3d0s0 followed by y

another downloaded from:
http://gunkies.org/wiki/Installing_Solaris_2.4_on_Qemu_SPARC

any help will be welcome

Signature · 5 lines
ITECNIS SRL<http:/www.itecnis.com>
         Simplicity is the ultimate sophistication

         Ignacio Geli
         Implementación y Soporte
Signature · 5 lines
ITECNIS SRL <http:/www.itecnis.com>
        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte
#3 lore raw
Quoted 10 lines · Ignacio Geli

El 25/11/11 13:01, Andreas Färber escribió:

Hi,

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

I'm not sure if Artyom has submitted all his patches to QEMU yet.

Quoted 61 lines

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Andreas

Andesas tks for the info.
upgrading to 0.15.1 did not solve the issue.

Adding some info:

QEMU emulator version 0.15.1, Copyright (c) 2003-2008 Fabrice Bellard Linux ws2132 2.6.32-5-openvz-amd64 #1 SMP Mon Oct 3 05:12:50 UTC 2011 x86_64 GNU/Linux Debian squeeze

Regards!

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
corrupt label - bad geometry

Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

Quoted 1 line

/etc/format.dat

I'd guess these geometry parameters are not correct for your 12G disk. It's strange though that the installer kernel sees different geometry from the normal boot kernel.

Quoted 4 lines

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

/etc/format.dat

These could also be wrong, but I have no idea what the numbers mean.

Quoted 30 lines

6) format -d c0t3d0 -t 'QEMU12.0G' then label, y, and quit
7) newfs /dev/dsk/c0t3d0s0 followed by y

another downloaded from:
http://gunkies.org/wiki/Installing_Solaris_2.4_on_Qemu_SPARC

any help will be welcome

--

ITECNIS SRL <http:/www.itecnis.com>
Simplicity is the ultimate sophistication

Ignacio Geli
Implementación y Soporte

--

        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte

#4 lore raw

Thks Blue Swirl
Is there any documentation on how to create a disk with the correct geometry, or a place to download one?

thks again.

Quoted 114 lines · Blue Swirl
Quoted 9 lines · Ignacio Geli

El 25/11/11 13:01, Andreas Färber escribió:

Hi,

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

I'm not sure if Artyom has submitted all his patches to QEMU yet.

Quoted 61 lines

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Andreas

Andesas tks for the info.
upgrading to 0.15.1 did not solve the issue.

Adding some info:

QEMU emulator version 0.15.1, Copyright (c) 2003-2008 Fabrice Bellard Linux ws2132 2.6.32-5-openvz-amd64 #1 SMP Mon Oct 3 05:12:50 UTC 2011 x86_64 GNU/Linux Debian squeeze

Regards!

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
corrupt label - bad geometry

Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

Quoted 1 line

/etc/format.dat

I'd guess these geometry parameters are not correct for your 12G disk. It's strange though that the installer kernel sees different geometry from the normal boot kernel.

Quoted 4 lines

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

/etc/format.dat

These could also be wrong, but I have no idea what the numbers mean.

Quoted 30 lines

6) format -d c0t3d0 -t 'QEMU12.0G' then label, y, and quit
7) newfs /dev/dsk/c0t3d0s0 followed by y

another downloaded from:
http://gunkies.org/wiki/Installing_Solaris_2.4_on_Qemu_SPARC

any help will be welcome

--

ITECNIS SRL<http:/www.itecnis.com>
Simplicity is the ultimate sophistication

Ignacio Geli
Implementación y Soporte

--

Simplicity is the ultimate sophistication

Ignacio Geli
Implementación y Soporte

Signature · 5 lines
ITECNIS SRL <http:/www.itecnis.com>
        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte
#9 lore raw
In reply to Andreas Färber
Quoted 14 lines · Andreas Färber

Hi,

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Quoted 10 lines

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

Quoted 5 lines

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Thanks Andreas, I'll update the entry.
For some reason gmail filtered out your email, and I've just founded it just by chance. Sorry for delay.

Quoted 65 lines

Andreas

Quoted 50 lines

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d  File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
    corrupt label - bad geometry

    Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

Quoted 1 line
Quoted 1 line

/etc/format.dat

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

Quoted 1 line
Quoted 1 line

/etc/format.dat

6) format -d c0t3d0 -t 'QEMU12.0G' then label, y, and quit
7) newfs /dev/dsk/c0t3d0s0 followed by y

another downloaded from:
http://gunkies.org/wiki/Installing_Solaris_2.4_on_Qemu_SPARC

any help will be welcome

Quoted 7 lines

--

ITECNIS SRL <http:/www.itecnis.com>
        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte

--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

Signature · 4 lines
Regards,
Artyom Tarasenko

solaris/sparc under qemu blog: http://tyom.blogspot.com/
#5 lore raw
In reply to Blue Swirl
Quoted 6 lines · Blue Swirl
Quoted 5 lines · Ignacio Geli

El 25/11/11 13:01, Andreas Färber escribió:

Hi,

Quoted 7 lines
Quoted 5 lines

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

I'm not sure if Artyom has submitted all his patches to QEMU yet.

This stuff is in. Definitely worked at 0.13 - 0.14 times, but I never had time to check 0.15+.

Quoted 67 lines
Quoted 61 lines

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Andreas

Andesas tks for the info.
upgrading to 0.15.1 did not solve the issue.

Adding some info:

QEMU emulator version 0.15.1, Copyright (c) 2003-2008 Fabrice Bellard Linux ws2132 2.6.32-5-openvz-amd64 #1 SMP Mon Oct 3 05:12:50 UTC 2011 x86_64 GNU/Linux Debian squeeze

Regards!

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d  File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
    corrupt label - bad geometry

    Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

Quoted 1 line

/etc/format.dat

I'd guess these geometry parameters are not correct for your 12G disk. It's strange though that the installer kernel sees different geometry from the normal boot kernel.

Quoted 6 lines
Quoted 4 lines

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

/etc/format.dat

These could also be wrong, but I have no idea what the numbers mean.

In order not to mess with all this numbers I used a pre-defined 1.3G disk in the Solaris format utility and created it with dd:
dd if=/dev/zero of=$1 bs=10k count=133756

Otherwise, Ignacio, are you sure that disk0 is your root FS disk and not something else? Can you post your qemu command line?

Signature · 4 lines
Regards,
Artyom Tarasenko

solaris/sparc under qemu blog: http://tyom.blogspot.com/
#6 lore raw
Quoted 86 lines · Artyom Tarasenko
Quoted 11 lines · Blue Swirl
Quoted 9 lines · Ignacio Geli

El 25/11/11 13:01, Andreas Färber escribió:

Hi,

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

I'm not sure if Artyom has submitted all his patches to QEMU yet.

This stuff is in. Definitely worked at 0.13 - 0.14 times, but I never had time to check 0.15+.

Quoted 70 lines
Quoted 61 lines

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Andreas

Andesas tks for the info.
upgrading to 0.15.1 did not solve the issue.

Adding some info:

QEMU emulator version 0.15.1, Copyright (c) 2003-2008 Fabrice Bellard Linux ws2132 2.6.32-5-openvz-amd64 #1 SMP Mon Oct 3 05:12:50 UTC 2011 x86_64 GNU/Linux Debian squeeze

Regards!

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
corrupt label - bad geometry

Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

Quoted 1 line

/etc/format.dat

I'd guess these geometry parameters are not correct for your 12G disk. It's strange though that the installer kernel sees different geometry from the normal boot kernel.

Quoted 4 lines

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

/etc/format.dat

Quoted 9 lines
Quoted 1 line

These could also be wrong, but I have no idea what the numbers mean.

In order not to mess with all this numbers I used a pre-defined 1.3G disk in the Solaris format utility and created it with dd:
dd if=/dev/zero of=$1 bs=10k count=133756

Otherwise, Ignacio, are you sure that disk0 is your root FS disk and not something else? Can you post your qemu command line?

qemu-system-sparc -M SS-5 -startdate "2009-12-13" -bios /root/ss5.bin -nographic -hda /root/imagenes/solaris.disk -hdb /root/solaris_2.5.1_1197.iso

Thks for your help Artyom. I'll try with a dd, and solaris format utility and I'll let u know

Ignacio

Signature · 5 lines
ITECNIS SRL <http:/www.itecnis.com>
        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte
#7 lore raw
Quoted 101 lines · Ignacio Geli

El 01/12/11 07:29, Artyom Tarasenko escribió:

On Sat, Nov 26, 2011 at 9:01 AM, Blue Swirl <[email protected]> wrote:

On Fri, Nov 25, 2011 at 18:24, Ignacio Geli <[email protected]> wrote:

El 25/11/11 13:01, Andreas Färber escribió:

Hi,

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

I'm not sure if Artyom has submitted all his patches to QEMU yet.

This stuff is in. Definitely worked at 0.13 - 0.14 times, but I never had time to check 0.15+.

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Andreas

Andesas tks for the info.
upgrading to 0.15.1 did not solve the issue.

Adding some info:

QEMU emulator version 0.15.1, Copyright (c) 2003-2008 Fabrice Bellard Linux ws2132 2.6.32-5-openvz-amd64 #1 SMP Mon Oct 3 05:12:50 UTC 2011 x86_64 GNU/Linux Debian squeeze

Regards!

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d  File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
    corrupt label - bad geometry

    Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

/etc/format.dat

I'd guess these geometry parameters are not correct for your 12G disk. It's strange though that the installer kernel sees different geometry from the normal boot kernel.

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

/etc/format.dat

These could also be wrong, but I have no idea what the numbers mean.

In order not to mess with all this numbers I used a pre-defined 1.3G disk in the Solaris format utility and created it with dd:
dd if=/dev/zero of=$1 bs=10k count=133756

Quoted 5 lines

Otherwise, Ignacio, are you sure that disk0 is your root FS disk and not something else? Can you post your qemu command line?

qemu-system-sparc -M SS-5 -startdate "2009-12-13" -bios /root/ss5.bin -nographic -hda /root/imagenes/solaris.disk -hdb /root/solaris_2.5.1_1197.iso

Looking at your command, I don't think it complains about solaris.disk. I think it complains about the iso, which is normal given that we make iso image pretend it's a hard drive.

But why do you boot from the slice d of disk0 ? Please try

boot disk0 -v

and post here a complete log afterwards.

Quoted 4 lines

Thks for your help Artyom. I'll try with a dd, and solaris format utility and I'll let u know

Ignacio

Quoted 9 lines

--

        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte

--
Regards,
Artyom Tarasenko

solaris/sparc under qemu blog: http://tyom.blogspot.com/

#8 lore raw
Quoted 110 lines · Artyom Tarasenko
Quoted 100 lines · Ignacio Geli

El 01/12/11 07:29, Artyom Tarasenko escribió:

On Sat, Nov 26, 2011 at 9:01 AM, Blue Swirl<[email protected]> wrote:

On Fri, Nov 25, 2011 at 18:24, Ignacio Geli<[email protected]> wrote:

El 25/11/11 13:01, Andreas Färber escribió:

Hi,

Am 25.11.2011 16:23, schrieb Ignacio Geli:

Im trying to run a solaris 2.5.1 vm acording the instructions of i found in this blog:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html#uds-search-results

I'm not sure if Artyom has submitted all his patches to QEMU yet.

This stuff is in. Definitely worked at 0.13 - 0.14 times, but I never had time to check 0.15+.

compile my qemu with:
git clone git://git.savannah.nongnu.org/qemu.git
cd qemu
./configure --target-list=sparc-softmmu
make
(version 0.13.50)

That 2009 blog is outdated: QEMU now lives in
git://git.qemu.org/qemu.git
and should be at 0.15.93 (1.0-rc3). Compare http://qemu.org for details.

CC'ed sparc maintainer and Artyom.

Andreas

Andesas tks for the info.
upgrading to 0.15.1 did not solve the issue.

Adding some info:

QEMU emulator version 0.15.1, Copyright (c) 2003-2008 Fabrice Bellard Linux ws2132 2.6.32-5-openvz-amd64 #1 SMP Mon Oct 3 05:12:50 UTC 2011 x86_64 GNU/Linux Debian squeeze

Regards!

Ive downloaded the ss5.bin bios (sparc station 5)) I have the solaris disk and i can do the installation but can't get the disk to boot.

I can boot from the cd, mount and check the /etc/system file it has the "set scsi_options=0x58" option i set to make it work, still not working:

Here is the output:

/ok boot disk0:d
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0:d File and args:
SunOS Release 5.5.1 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING:
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0 (sd1):
corrupt label - bad geometry

Label says 1310720 blocks, Drive says 883120 blocks
Cannot mount root on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:d fstype ufs
panic: vfs_mountroot: cannot mount root
rebooting...
Resetting ... /

maybe the disk is wrong
ive try several disk one following these instructions:
1) qemu-img create -f qcow2 file.qcow2 12G
2) Add -drive file=file.qcow2,unit=3 to your qemu startup
3) Boot single user
4) echo 'disk_type="QEMU12.0G":ctlr=SCSI:ncyl=49152:acyl=0:pcyl=49152:nhead=16:nsect=32:rpm=7200'

/etc/format.dat

I'd guess these geometry parameters are not correct for your 12G disk. It's strange though that the installer kernel sees different geometry from the normal boot kernel.

5) echo 'partition="QEMU12.0G":disk="QEMU12.0G":ctlr=SCSI:2=0,25165824:0=0,20971520:6=40960,4194304'

/etc/format.dat

These could also be wrong, but I have no idea what the numbers mean.

In order not to mess with all this numbers I used a pre-defined 1.3G disk in the Solaris format utility and created it with dd:
dd if=/dev/zero of=$1 bs=10k count=133756

Quoted 5 lines

Otherwise, Ignacio, are you sure that disk0 is your root FS disk and not something else? Can you post your qemu command line?

qemu-system-sparc -M SS-5 -startdate "2009-12-13" -bios /root/ss5.bin -nographic -hda /root/imagenes/solaris.disk -hdb /root/solaris_2.5.1_1197.iso

Looking at your command, I don't think it complains about solaris.disk. I think it complains about the iso, which is normal given that we make iso image pretend it's a hard drive.

Quoted 5 lines

But why do you boot from the slice d of disk0 ? Please try

boot disk0 -v

and post here a complete log afterwards.

Arytom tks I really sorry don't know why i was doing it from the slice d. I boot from the solaris disk, format and label the disk and install again. it works now but the problem was the slice d

Thkst all and I apologize again

Quoted 20 lines
Quoted 4 lines

Thks for your help Artyom. I'll try with a dd, and solaris format utility and I'll let u know

Ignacio

Quoted 9 lines

--

Simplicity is the ultimate sophistication

Ignacio Geli
Implementación y Soporte

--
Regards,
Artyom Tarasenko

solaris/sparc under qemu blog: http://tyom.blogspot.com/

Signature · 5 lines
ITECNIS SRL <http:/www.itecnis.com>
        Simplicity is the ultimate sophistication

        Ignacio Geli
        Implementación y Soporte