• Running Debian-sparc64 on qemu

    From Carlos Roberto@21:1/5 to All on Wed Jun 14 17:10:01 2023
    I'm trying to install and run debian-sparc64 on qemu, but I'm having some difficulties...

    My command line for the installation is:

    qemu-system-sparc64 -machine sun4u,usb=off -smp
    1,sockets=1,cores=1,threads=1 -rtc base=utc -m 4096 -boot d -drive file=debian_sparc64.qcow2,if=none,id=drive-ide0-0-1 -cdrom debian-12.0.0-sparc64-NETINST-1.iso -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-1,id=ide0-0-1 -msg timestamp=on -serial mon:telnet::3333,server,wait -nographic -net nic,model=ne2k_pci
    -net user -monitor stdio

    I have created a 120Gb qcow2 drive image
    When I select the disk to format, I get this warning:

    The disk has 328965 cylinders, which is greater than the maximum of 65536.

    And, during the installation, I get this error:

    [ 1205.239608] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [dpkg-deb:11819]
    [ 1229.239264] watchdog: BUG: soft lockup - CPU#0 stuck for 44s! [dpkg-deb:118199]

    what would be the best command line to be able to install and run debian-sparc64 on qemu?
    And, i'm using the last sparc64 release, from today ( 06/14/2023 )

    Ps: I'm using Windows :/

    <div dir="ltr"><div>I&#39;m trying to install and run debian-sparc64 on qemu, but I&#39;m having some difficulties...<br><br>My command line for the installation is: <br><br>qemu-system-sparc64 -machine sun4u,usb=off -smp 1,sockets=1,cores=1,threads=1 -
    rtc base=utc -m 4096 -boot d -drive file=debian_sparc64.qcow2,if=none,id=drive-ide0-0-1 -cdrom debian-12.0.0-sparc64-NETINST-1.iso -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-1,id=ide0-0-1 -msg timestamp=on -serial mon:telnet::3333,server,wait -
    nographic -net nic,model=ne2k_pci -net user -monitor stdio<br></div><div><br></div><div>I have created a 120Gb qcow2 drive image</div><div>When I select the disk to format, I get this warning:<br><br>The disk has 328965 cylinders, which is greater than
    the maximum of 65536.</div><div><br></div><div>And, during the installation, I get this error:<br></div><div><br></div><div>[ 1205.239608] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [dpkg-deb:11819]          <br>[ 1229.239264] watchdog: BUG:
    soft lockup - CPU#0 stuck for 44s! [dpkg-deb:118199]<br></div><div><br></div><div>what would be the best command line to be able to install and run debian-sparc64 on qemu?<br></div><div>And, i&#39;m using the last sparc64 release, from today ( 06/14/2023
    )<br><br></div>Ps: I&#39;m using Windows :/<br></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zach van Rijn@21:1/5 to Carlos Roberto on Wed Jun 14 17:40:02 2023
    ---- On Wed, 14 Jun 2023 09:43:44 -0500 Carlos Roberto wrote ---
    I'm trying to install and run debian-sparc64 on qemu, but I'm having some difficulties...

    My command line for the installation is:

    qemu-system-sparc64 -machine sun4u,usb=off -smp 1,sockets=1,cores=1,threads=1 -rtc base=utc -m 4096 -boot d -drive file=debian_sparc64.qcow2,if=none,id=drive-ide0-0-1 -cdrom debian-12.0.0-sparc64-NETINST-1.iso -device ide-hd,bus=ide.0,unit=0,drive=
    drive-ide0-0-1,id=ide0-0-1 -msg timestamp=on -serial mon:telnet::3333,server,wait -nographic -net nic,model=ne2k_pci -net user -monitor stdio

    IT might not be on your end. Try the 2022-12-09 image:

    https://cdimage.debian.org/cdimage/ports/snapshots/2022-12-09/debian-11.0.0-sparc64-NETINST-1.iso

    I've been having trouble with all the 12.x images and most of the newer 11.x ones.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Carlos Roberto on Wed Jun 14 18:20:01 2023
    Hi Carlos!

    On Wed, 2023-06-14 at 11:43 -0300, Carlos Roberto wrote:
    I'm trying to install and run debian-sparc64 on qemu, but I'm having some difficulties...

    I just uploaded new installation images today which use an updated kernel (6.1.x -> 6.3.x).

    https://cdimage.debian.org/cdimage/ports/snapshots/2023-06-14/

    Can you give it a try with the sparc64 image from there?

    Also, what version of QEMU is that?

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zach van Rijn@21:1/5 to Carlos Roberto on Wed Jun 14 23:10:01 2023
    ---- On Wed, 14 Jun 2023 15:13:04 -0500 Carlos Roberto wrote ---
    Hi Zach and Adrian
    The first test that I did, is with this image that you send, and , I got that bug
    Zach, with the image that you send, I'm able to install, but, when I try to install the addons, the installer are not able to find some valid repo, and, after the install, I got this error

    Here's a quick hack to get past the repo issue with the older media:

    # keys are outdated
    # https://launchpad.net/debian/+source/debian-ports-archive-keyring/+changelog cat > /etc/apt/sources.list <<"EOF"
    deb [trusted=yes] http://deb.debian.org/debian-ports unstable main
    deb [trusted=yes] http://deb.debian.org/debian-ports unreleased main
    EOF
    apt-get update
    apt-get -y upgrade


    # revert to normal
    cat > /etc/apt/sources.list <<"EOF"
    deb http://deb.debian.org/debian-ports unstable main
    deb http://deb.debian.org/debian-ports unreleased main
    EOF
    apt-get update


    # upgrade the kernel
    apt-get -y dist-upgrade
    reboot


    Regarding your GRUB issue, see here, maybe it will help:

    https://www.mail-archive.com/debian-sparc@lists.debian.org/msg27299.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos Roberto@21:1/5 to glaubitz@physik.fu-berlin.de on Wed Jun 14 22:40:01 2023
    Hi Zach and Adrian
    The first test that I did, is with this image that you send, and , I got
    that bug

    Zach, with the image that you send, I'm able to install, but, when I try to install the addons, the installer are not able to find some valid repo,
    and, after the install, I got this error, after select on Grub to start
    debian:

    error: canonicalise devname failed.
    Unhandled Exception 0x0000000000000030
    PC = 0x00000000ffd0f254 NPC = 0x00000000ffd0f258
    Stopping execution

    About qemu, I did the test on two diff machines:
    first: ubuntu aarch64:
    QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.9)
    Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

    seconds: Windows 11 - intel i9 128gb of ram:
    QEMU emulator version 8.0.0 (v8.0.0-12024-gd6b71850be-dirty)
    Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

    I got the same error, on linux and windows, I did the tests with this
    command lines:

    qemu-system-sparc64 -machine sun4u,usb=off -smp
    1,sockets=1,cores=1,threads=1 -rtc base=utc -m 4096 -boot d -drive file=debian_sparc64.qcow2,if=none,id=drive-ide0-0-1 -cdrom debian-12.0.0-sparc64-NETINST-1.iso -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-1,id=ide0-0-1 -msg timestamp=on -serial mon:telnet::3333,server,wait -nographic -net nic,model=ne2k_pci
    -net user -monitor stdio

    and, after fail, I did the test with this command line:

    qemu-system-sparc64 -hda debian_sparc64.qcow2 -cdrom debian-12.0.0-sparc64-NETINST-1.iso -boot d -m 4096 -net nic -net user -nographic

    On Wed, Jun 14, 2023 at 1:10 PM John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hi Carlos!

    On Wed, 2023-06-14 at 11:43 -0300, Carlos Roberto wrote:
    I'm trying to install and run debian-sparc64 on qemu, but I'm having
    some difficulties...

    I just uploaded new installation images today which use an updated kernel (6.1.x -> 6.3.x).

    https://cdimage.debian.org/cdimage/ports/snapshots/2023-06-14/

    Can you give it a try with the sparc64 image from there?

    Also, what version of QEMU is that?

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913


    <div dir="ltr"><div>Hi Zach and Adrian<br></div><div>The first test that I did, is with this image that you send, and , I got that bug</div><div><br></div><div>Zach, with the image that you send, I&#39;m able to install, but, when I try to install the
    addons, the installer are not able to find some valid repo, and, after the install, I got this error, after select on Grub to start debian:<br><br>error: canonicalise devname failed.<br>Unhandled Exception 0x0000000000000030<br>PC = 0x00000000ffd0f254
    NPC = 0x00000000ffd0f258<br>Stopping execution</div><div><br></div><div>About qemu, I did the test on two diff machines:<br></div><div>first: ubuntu aarch64:<br>QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.9)<br>Copyright (c) 2003-2021 Fabrice
    Bellard and the QEMU Project developers<br><br></div><div>seconds: Windows 11 - intel i9 128gb of ram:<br>QEMU emulator version 8.0.0 (v8.0.0-12024-gd6b71850be-dirty)<br>Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers</div><div><
    </div><div>I got the same error, on linux and windows, I did the tests with this command lines:<br><br></div><div>qemu-system-sparc64 -machine sun4u,usb=off -smp
    1,sockets=1,cores=1,threads=1 -rtc base=utc -m 4096 -boot d -drive file=debian_sparc64.qcow2,if=none,id=drive-ide0-0-1 -cdrom debian-12.0.0-sparc64-NETINST-1.iso -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-1,id=ide0-0-1
    -msg timestamp=on -serial mon:telnet::3333,server,wait -nographic -net nic,model=ne2k_pci -net user -monitor stdio

    <br></div><div><br></div><div>and, after fail, I did the test with this command line:<br><br></div><div>qemu-system-sparc64 -hda debian_sparc64.qcow2 -cdrom debian-12.0.0-sparc64-NETINST-1.iso -boot d -m 4096 -net nic -net user -nographic</div></div><br><
    div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 14, 2023 at 1:10 PM John Paul Adrian Glaubitz &lt;<a href="mailto:glaubitz@physik.fu-berlin.de">glaubitz@physik.fu-berlin.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote"
    style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Carlos!<br>

    On Wed, 2023-06-14 at 11:43 -0300, Carlos Roberto wrote:<br>
    &gt; I&#39;m trying to install and run debian-sparc64 on qemu, but I&#39;m having some difficulties...<br>

    I just uploaded new installation images today which use an updated kernel (6.1.x -&gt; 6.3.x).<br>

    &gt; <a href="https://cdimage.debian.org/cdimage/ports/snapshots/2023-06-14/" rel="noreferrer" target="_blank">https://cdimage.debian.org/cdimage/ports/snapshots/2023-06-14/</a><br>

    Can you give it a try with the sparc64 image from there?<br>

    Also, what version of QEMU is that?<br>

    Adrian<br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer<br>
    `. `&#39;   Physicist<br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br> </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alexandre Bencz@21:1/5 to me@zv.io on Thu Jun 15 01:10:01 2023
    I dont think this hack will work.. sinse they cant boot after install

    On Wed, Jun 14, 2023, 18:00 Zach van Rijn <me@zv.io> wrote:

    ---- On Wed, 14 Jun 2023 15:13:04 -0500 Carlos Roberto wrote ---
    Hi Zach and Adrian
    The first test that I did, is with this image that you send, and , I
    got that bug
    Zach, with the image that you send, I'm able to install, but, when I
    try to install the addons, the installer are not able to find some valid repo, and, after the install, I got this error

    Here's a quick hack to get past the repo issue with the older media:

    # keys are outdated
    # https://launchpad.net/debian/+source/debian-ports-archive-keyring/+changelog cat > /etc/apt/sources.list <<"EOF"
    deb [trusted=yes] http://deb.debian.org/debian-ports unstable main
    deb [trusted=yes] http://deb.debian.org/debian-ports unreleased main
    EOF
    apt-get update
    apt-get -y upgrade


    # revert to normal
    cat > /etc/apt/sources.list <<"EOF"
    deb http://deb.debian.org/debian-ports unstable main
    deb http://deb.debian.org/debian-ports unreleased main
    EOF
    apt-get update


    # upgrade the kernel
    apt-get -y dist-upgrade
    reboot


    Regarding your GRUB issue, see here, maybe it will help:


    https://www.mail-archive.com/debian-sparc@lists.debian.org/msg27299.html



    <div dir="auto">I dont think this hack will work.. sinse they cant boot after install</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 14, 2023, 18:00 Zach van Rijn &lt;<a href="mailto:me@zv.io">me@zv.io</a>&gt; wrote:<br></
    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> ---- On Wed, 14 Jun 2023 15:13:04 -0500  Carlos Roberto  wrote --- <br>
     &gt; Hi Zach and Adrian<br>
     &gt; The first test that I did, is with this image that you send, and , I got that bug<br>
     &gt; Zach, with the image that you send, I&#39;m able to install, but, when I try to install the addons, the installer are not able to find some valid repo, and, after the install, I got this error<br>

    Here&#39;s a quick hack to get past the repo issue with the older media:<br>

    # keys are outdated<br>
    # <a href="https://launchpad.net/debian/+source/debian-ports-archive-keyring/+changelog" rel="noreferrer noreferrer" target="_blank">https://launchpad.net/debian/+source/debian-ports-archive-keyring/+changelog</a><br>
    cat &gt; /etc/apt/sources.list &lt;&lt;&quot;EOF&quot;<br>
    deb [trusted=yes] <a href="http://deb.debian.org/debian-ports" rel="noreferrer noreferrer" target="_blank">http://deb.debian.org/debian-ports</a> unstable main<br>
    deb [trusted=yes] <a href="http://deb.debian.org/debian-ports" rel="noreferrer noreferrer" target="_blank">http://deb.debian.org/debian-ports</a> unreleased main<br>
    EOF<br>
    apt-get update<br>
    apt-get -y upgrade<br>


    # revert to normal<br>
    cat &gt; /etc/apt/sources.list &lt;&lt;&quot;EOF&quot;<br>
    deb <a href="http://deb.debian.org/debian-ports" rel="noreferrer noreferrer" target="_blank">http://deb.debian.org/debian-ports</a> unstable main<br>
    deb <a href="http://deb.debian.org/debian-ports" rel="noreferrer noreferrer" target="_blank">http://deb.debian.org/debian-ports</a> unreleased main<br>
    EOF<br>
    apt-get update<br>


    # upgrade the kernel<br>
    apt-get -y dist-upgrade<br>
    reboot<br>


    Regarding your GRUB issue, see here, maybe it will help:<br>

        <a href="https://www.mail-archive.com/debian-sparc@lists.debian.org/msg27299.html" rel="noreferrer noreferrer" target="_blank">https://www.mail-archive.com/debian-sparc@lists.debian.org/msg27299.html</a><br>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zach van Rijn@21:1/5 to Alexandre Bencz on Thu Jun 15 02:50:01 2023
    ---- On Wed, 14 Jun 2023 17:59:06 -0500 Alexandre Bencz wrote ---
    I dont think this hack will work.. sinse they cant boot after install

    In that case, could the installer be used as a rescue disc / shell,
    then the system be updated after correctly mounting partitions
    and chroot'ing into the resulting environment?

    As a data point, using the old image, and then updating to the latest
    available (6.3.x) kernel did not cause any of the issues I'd experienced
    with the newer installers. I have two such systems running stable for
    more than a week now.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)