个人工具

“UbuntuHelp:Installation/Sparc”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/Installation/Sparc}} {{Languages|php5}} == Introduction == This page describes an network install of Ubuntu 6.06.1 on a Sun Fire T2000 server wh...)
 
 
(未显示2个用户的10个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Installation/Sparc}}
 
{{From|https://help.ubuntu.com/community/Installation/Sparc}}
{{Languages|php5}}
+
{{Languages|UbuntuHelp:Installation/Sparc}}
 
+
 
+
 
== Introduction ==
 
== Introduction ==
 
 
This page describes an network install of Ubuntu 6.06.1 on a Sun Fire T2000 server which features the UltraSPARC T1 (Niagara) processor from a Solaris system. There is a fair amount of Solaris and T2000 specific information included, but all SPARC installs are similar and Linux users will find much of this information useful.
 
This page describes an network install of Ubuntu 6.06.1 on a Sun Fire T2000 server which features the UltraSPARC T1 (Niagara) processor from a Solaris system. There is a fair amount of Solaris and T2000 specific information included, but all SPARC installs are similar and Linux users will find much of this information useful.
 
 
== Dapper does not support T2000 rev 2 ==
 
== Dapper does not support T2000 rev 2 ==
 
 
In order to install Ubuntu on T2000 rev 2 of the hardware you will need at least Edgy.
 
In order to install Ubuntu on T2000 rev 2 of the hardware you will need at least Edgy.
 
 
== Getting the installer booted ==
 
== Getting the installer booted ==
 
+
This install uses the netboot method as described in [[UbuntuHelp:Installation/Netboot|Installation/Netboot]]. These instructions describe the differences for SPARC.
This install uses the netboot method as described in Installation/Netboot. These instructions describe the differences for SPARC.
+
 
+
 
* Make sure your T2000 has the latest firmware on it. Earlier hardware needs to be updated through the service processor (which is fairly easy to do). The instructions are for installing the upgrade in this was described in [http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections&queryKey5=121359&toDocument=yes this patch], but the newest firware at time of writing is [http://sunsolve.sun.com/search/document.do?assetkey=1-21-123482-02-1 here].
 
* Make sure your T2000 has the latest firmware on it. Earlier hardware needs to be updated through the service processor (which is fairly easy to do). The instructions are for installing the upgrade in this was described in [http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections&queryKey5=121359&toDocument=yes this patch], but the newest firware at time of writing is [http://sunsolve.sun.com/search/document.do?assetkey=1-21-123482-02-1 here].
I did my upgrade as follows:
+
I did my upgrade as follows:
<pre><nowiki>
+
<pre><nowiki>
 
sc> flashupdate -s 129.159.51.6 -f /tftpboot/123482-01/Sun_System_Firmware-6_2_0-Sun_Fire_T2000.bin
 
sc> flashupdate -s 129.159.51.6 -f /tftpboot/123482-01/Sun_System_Firmware-6_2_0-Sun_Fire_T2000.bin
  
第31行: 第23行:
 
User Requested SC Shutdown
 
User Requested SC Shutdown
 
sc> Connection to 129.159.51.25 closed by foreign host.
 
sc> Connection to 129.159.51.25 closed by foreign host.
</nowiki></code>
+
</nowiki></pre>
 
+
 
* Download the [http://archive.ubuntu.com/ubuntu/dists/dapper-updates/main/installer-sparc/current/images/sparc64/netboot/2.6/boot.img sparc netboot image]
 
* Download the [http://archive.ubuntu.com/ubuntu/dists/dapper-updates/main/installer-sparc/current/images/sparc64/netboot/2.6/boot.img sparc netboot image]
 
+
* to use dhcp instead of rarp (used in the following steps) you need to type 'boot net:dhcp <other options>' instead of 'boot net <other options>'
* Configure the system to network boot. I had problems getting DHCP to work so ended up using RARP. To do that put the T2000's MAC address into <code><nowiki>/etc/ethers</nowiki></code>, enable ARP: <code><nowiki>svcadm enable rarp</nowiki></code>. You then need to work out what the file name the client will attempt to download via tftp. You can either calculate the hex value of the IP address or you can do it manually as follows.
+
* it is possible to use 'net[0-3]:dhcp' instead of 'net:dhcp' to directly address an specific port
 
+
* It is also possible to use neither and to specify the boot image to use, which can be over TFTP, HTTP or HTTPS.
Connect to the console of the T2000 and kick off a network boot while listening on your server with snoop:
+
=== To configure RARP ===
 
+
* Configure the system to network boot. I had problems getting DHCP to work so ended up using RARP. To do that put the T2000's MAC address into <code><nowiki>/etc/ethers</nowiki></code>, enable ARP: <code><nowiki>svcadm enable rarp</nowiki></code>. You then need to work out what the file name the client will attempt to download via tftp.
In one window connected to your boot server start snoop (or tcpdump on Linux) listening to traffic from the T2000. Wait for the TFTP Read request, this gives you a file name.
+
To calculate the HEX value of the IP address:
<pre><nowiki>
+
<pre><nowiki>
root@storage6-51 # snoop 00:14:4F:02:88:70
+
# echo <<YOUR_IP>> | awk -F. '{ printf("%0.2x%0.2x%0.2x%0.2x\n", $1,$2,$3,$4) }' | tr '[a-z]' '[A-Z]'
Using device /dev/bge0 (promiscuous mode)
+
</nowiki></pre>
OLD-BROADCAST -> (broadcast)  RARP C Who is 0:14:4f:2:88:70 ?
+
''e.g.''
storage6-51 -> t2000-1      RARP R 0:14:4f:2:88:70 is 129.159.51.24, t2000-1
+
<pre><nowiki>
    t2000-1 -> BROADCAST    TFTP Read "819F3318" (octet)
+
# echo 172.16.24.72 | awk -F. '{ printf("%0.2x%0.2x%0.2x%0.2x\n", $1,$2,$3,$4) }' | tr '[a-z]' '[A-Z]'
</nowiki></code>
+
AC101848
 
+
</nowiki></pre>
In another window kick off a boot:
+
* Put the <code><nowiki>boot.img</nowiki></code> file you downlaoded earlier into your <code><nowiki>/tftpboot</nowiki></code> directory and create a symbolic link to it with the target of the link as the HEX value you just calculated.
<pre><nowiki>
+
* Bring up your LOM and bring the box to it's Openboot Prompt (OK).
telnet 129.159.51.25
+
* At the prompt, start the client with <code><nowiki>boot net debconf/priority=low DEBIAN_FRONTEND=text</nowiki></code>
Trying 129.159.51.25...
+
* If you value your sanity, you will remember to specify DEBIAN_FRONTEND=text. You will also probably want to add the remote installation over SSH if it is safe to do so within your environment.
Connected to 129.159.51.25.
+
Escape character is '^]'.
+
 
+
Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
+
Use is subject to license terms.
+
 
+
 
+
Sun(tm) Advanced Lights Out Manager CMT v1.0.1
+
 
+
Please login: admin
+
Please Enter password: *****
+
 
+
 
+
sc> break -y
+
sc> console
+
Enter #. to return to ALOM.
+
 
+
{0} ok boot net
+
 
+
SC Alert: Host System has Reset
+
 
+
SC Alert: Host system has shut down.
+
+
 
+
Sun Fire T200, No Keyboard
+
Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
+
OpenBoot 4.19.0, 32760 MB memory installed, Serial #67274864.
+
Ethernet address 0:14:4f:2:88:70, Host ID: 84028870.
+
 
+
 
+
 
+
Rebooting with command: boot net
+
Boot device: /pci@780/pci@0/pci@1/network@0  File and args:
+
100 Mbps full duplex  Link up
+
Requesting Internet Address for 0:14:4f:2:88:70
+
</nowiki></code>
+
 
+
Drop back to the system controller (press <code><nowiki>#.</nowiki></code>), send a break then get back on the console (<code><nowiki>break -yc</nowiki></code>).
+
 
+
* Put the <code><nowiki>boot.img</nowiki></code> file downloaded earlier into <code><nowiki>/tftpboot</nowiki></code> and create a sybolic link to it with the name the client requested above. Then re-start the network boot on the client with <code><nowiki>boot net debconf/priority=low DEBIAN_FRONTEND=text BOOT_DEBUG=2</nowiki></code>. The additional options tell the installer to give you more debug info and aren't strictly neccessary. The "DEBIAN_FRONTEND=text" make installing over the 9600 baud serial link less painful (though only marginally). All things being well you should see the client boot the Ubuntu installer.
+
 
* Be sure to use <code><nowiki>tftpd</nowiki></code>, not <code><nowiki>tftpd-hpa</nowiki></code> or any other tftpd...
 
* Be sure to use <code><nowiki>tftpd</nowiki></code>, not <code><nowiki>tftpd-hpa</nowiki></code> or any other tftpd...
 
+
=== To use a TFTP or HTTP server with no use of RARP or DHCP ===
 +
* Place the <code><nowiki>boot.img</nowiki></code> image you downloaded earlier into the TFTP or HTTP root of your boot server. You may also want to take the time to rename it something more obvious such as ubuntu-hardy-sparc-boot.img.
 +
* Bring your box up to the Openboot prompt and type:
 +
<pre><nowiki>
 +
setenv network-boot-arguments host-ip=<<MY_IP>>,router-ip=<<MY_ROUTER>>,subnet=mask=<<MY_SUBNET>>,hostname=<<MY_HOSTNAME>>,file=tftp://<<TFTP_ADDRESS>>/boot.img
 +
</nowiki></pre>
 +
''Note: There can't be any spaces between one value and the next paramater name''
 +
Here's a real life example:
 +
<pre><nowiki>
 +
setenv network-boot-arguments host-ip=172.16.24.72,router-ip=172.16.24.1,subnet-mask=255.255.248.0,hostname=foo.infra.local,file=tftp://172.16.24.23/ubuntu-hardy-sparc-boot.img
 +
</nowiki></pre>
 +
* The setenv command should be echoed back to you. Now boot the client:
 +
<pre><nowiki>
 +
boot net debconf/priority=low DEBIAN_FRONTEND=text
 +
</nowiki></pre>
 +
''Note: I '''think''' that it's possible to boot with
 +
<pre><nowiki>
 +
boot net debconf/priority=low DEBIAN_FRONTEND=text -o prompt
 +
</nowiki></pre>
 +
which will ask you for the network settings, but I've not tried yet.''
 +
''n.b. This should also work for HTTP. If you want to load the image over
 +
HTTPS, I'd advise reading the (very good) Solaris Network Boot
 +
documentation ([http://docs.sun.com/app/docs/doc/817-5504]), in particular
 +
the section on WANBoot installation and Protecting data by using HTTPS.''
 
== Installer options ==
 
== Installer options ==
 
 
* The installer asks some fairly simple stuff about language and keyboard layout and is documented elsewhere. Following that the network is detected, you may need to manually configure some of the settings if you don't have DHCP set up. If you need a default route to get to your install server or your http proxy you'll need to add it manually here.
 
* The installer asks some fairly simple stuff about language and keyboard layout and is documented elsewhere. Following that the network is detected, you may need to manually configure some of the settings if you don't have DHCP set up. If you need a default route to get to your install server or your http proxy you'll need to add it manually here.
 
+
* When the installer has setup the network you are ready to point it to an ubuntu mirror. I used the default mirror for my country (UK) which worked fine. When the installer asks if you want to use a proxy. Unless you have a direct connection to the Internet, '''do not leave this blank'''. Even if you are doing an install from local images you still need access to the internet as this is the only way the installer seems capable of validating the signed packages! If you don't do this you will get an error message about kernel modules and you won't get much further. You have been warned!
* When the installer has setup the network you are ready to point it to an ubuntu mirror. I used the default mirror for my country (UK) which worked fine. When the installer asks if you want to use a proxy <b>DO NOT LEAVE THIS BLANK</b> unless you have direct access to the internet. Evening if you are doing an install from local images you still need access to the internet as this is the only way the installer seems capable of validating the signed packages! If you don't do this you will get an error message about kernel modules and you won't get much further. You have been warned!
+
* Once you get to the partitioning screen, you need to work around the following issue [[UbuntuWiki:sparc/KnownIssues|(see|also sparc/KnownIssues)]]:
 
+
"The first partition at the beginning of the disk cannot be software RAID or LVM. The installer will not offer the options when in manual partitioning mode. Create a 1 MB empty partition at the beginning of the disk and start creating your RAID/LVM partitions from there. This is not a bug but the only known way at the moment to protect the partition table stored in the first 512 bytes of the disk."
* Once you get to the partitioning screen, you need to work around the following issue [https://wiki.ubuntu.com/sparc/KnownIssues (see also sparc/KnownIssues)]:
+
I created a 1MB partition (which took up about 5MB), then marked it as "do not use", then created a small swap partition (512MB) and made root the size of the rest of the disk.
 
+
"The first partition at the beginning of the disk cannot be software RAID or LVM. The installer will not offer the options when in manual partitioning mode. Create a 1 MB empty partition at the beginning of the disk and start creating your RAID/LVM partitions from there. This is not a bug but the only known way at the moment to protect the partition table stored in the first 512 bytes of the disk."
+
 
+
I created a 1MB partition (which took up about 5MB), then marked it as "do not use", then created a small swap partition (512MB) and made root the size of the rest of the disk.
+
 
+
 
* When prompted which kernel to install I selected the default (linux-sparc64-smp).
 
* When prompted which kernel to install I selected the default (linux-sparc64-smp).
 
 
* I accepted the default X server driver (fbdev). The T2000 is a server and thus doesn't have a video card by default so it shouldn't matter in this case.  
 
* I accepted the default X server driver (fbdev). The T2000 is a server and thus doesn't have a video card by default so it shouldn't matter in this case.  
 
 
That should be it!
 
That should be it!
 
 
----
 
----
CategoryDocumentation
+
[[category:CategoryInstallation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年12月16日 (二) 18:58的最新版本

Introduction

This page describes an network install of Ubuntu 6.06.1 on a Sun Fire T2000 server which features the UltraSPARC T1 (Niagara) processor from a Solaris system. There is a fair amount of Solaris and T2000 specific information included, but all SPARC installs are similar and Linux users will find much of this information useful.

Dapper does not support T2000 rev 2

In order to install Ubuntu on T2000 rev 2 of the hardware you will need at least Edgy.

Getting the installer booted

This install uses the netboot method as described in Installation/Netboot. These instructions describe the differences for SPARC.

  • Make sure your T2000 has the latest firmware on it. Earlier hardware needs to be updated through the service processor (which is fairly easy to do). The instructions are for installing the upgrade in this was described in this patch, but the newest firware at time of writing is here.

I did my upgrade as follows:

sc> flashupdate -s 129.159.51.6 -f /tftpboot/123482-01/Sun_System_Firmware-6_2_0-Sun_Fire_T2000.bin

SC Alert: System poweron is disabled.
Username: root
Password: *******

.........................

Update complete. Reset device to use new software.
sc> resetsc
Are you sure you want to reset the SC [y/n]?  y
User Requested SC Shutdown
sc> Connection to 129.159.51.25 closed by foreign host.
  • Download the sparc netboot image
  • to use dhcp instead of rarp (used in the following steps) you need to type 'boot net:dhcp <other options>' instead of 'boot net <other options>'
  • it is possible to use 'net[0-3]:dhcp' instead of 'net:dhcp' to directly address an specific port
  • It is also possible to use neither and to specify the boot image to use, which can be over TFTP, HTTP or HTTPS.

To configure RARP

  • Configure the system to network boot. I had problems getting DHCP to work so ended up using RARP. To do that put the T2000's MAC address into /etc/ethers, enable ARP: svcadm enable rarp. You then need to work out what the file name the client will attempt to download via tftp.

To calculate the HEX value of the IP address:

# echo <<YOUR_IP>> | awk -F. '{ printf("%0.2x%0.2x%0.2x%0.2x\n", $1,$2,$3,$4) }' | tr '[a-z]' '[A-Z]'

e.g.

# echo 172.16.24.72 | awk -F. '{ printf("%0.2x%0.2x%0.2x%0.2x\n", $1,$2,$3,$4) }' | tr '[a-z]' '[A-Z]'
AC101848
  • Put the boot.img file you downlaoded earlier into your /tftpboot directory and create a symbolic link to it with the target of the link as the HEX value you just calculated.
  • Bring up your LOM and bring the box to it's Openboot Prompt (OK).
  • At the prompt, start the client with boot net debconf/priority=low DEBIAN_FRONTEND=text
  • If you value your sanity, you will remember to specify DEBIAN_FRONTEND=text. You will also probably want to add the remote installation over SSH if it is safe to do so within your environment.
  • Be sure to use tftpd, not tftpd-hpa or any other tftpd...

To use a TFTP or HTTP server with no use of RARP or DHCP

  • Place the boot.img image you downloaded earlier into the TFTP or HTTP root of your boot server. You may also want to take the time to rename it something more obvious such as ubuntu-hardy-sparc-boot.img.
  • Bring your box up to the Openboot prompt and type:
setenv network-boot-arguments host-ip=<<MY_IP>>,router-ip=<<MY_ROUTER>>,subnet=mask=<<MY_SUBNET>>,hostname=<<MY_HOSTNAME>>,file=tftp://<<TFTP_ADDRESS>>/boot.img

Note: There can't be any spaces between one value and the next paramater name Here's a real life example:

setenv network-boot-arguments host-ip=172.16.24.72,router-ip=172.16.24.1,subnet-mask=255.255.248.0,hostname=foo.infra.local,file=tftp://172.16.24.23/ubuntu-hardy-sparc-boot.img
  • The setenv command should be echoed back to you. Now boot the client:
boot net debconf/priority=low DEBIAN_FRONTEND=text

Note: I think that it's possible to boot with

boot net debconf/priority=low DEBIAN_FRONTEND=text -o prompt

which will ask you for the network settings, but I've not tried yet. n.b. This should also work for HTTP. If you want to load the image over HTTPS, I'd advise reading the (very good) Solaris Network Boot documentation ([1]), in particular the section on WANBoot installation and Protecting data by using HTTPS.

Installer options

  • The installer asks some fairly simple stuff about language and keyboard layout and is documented elsewhere. Following that the network is detected, you may need to manually configure some of the settings if you don't have DHCP set up. If you need a default route to get to your install server or your http proxy you'll need to add it manually here.
  • When the installer has setup the network you are ready to point it to an ubuntu mirror. I used the default mirror for my country (UK) which worked fine. When the installer asks if you want to use a proxy. Unless you have a direct connection to the Internet, do not leave this blank. Even if you are doing an install from local images you still need access to the internet as this is the only way the installer seems capable of validating the signed packages! If you don't do this you will get an error message about kernel modules and you won't get much further. You have been warned!
  • Once you get to the partitioning screen, you need to work around the following issue (see|also sparc/KnownIssues):

"The first partition at the beginning of the disk cannot be software RAID or LVM. The installer will not offer the options when in manual partitioning mode. Create a 1 MB empty partition at the beginning of the disk and start creating your RAID/LVM partitions from there. This is not a bug but the only known way at the moment to protect the partition table stored in the first 512 bytes of the disk." I created a 1MB partition (which took up about 5MB), then marked it as "do not use", then created a small swap partition (512MB) and made root the size of the rest of the disk.

  • When prompted which kernel to install I selected the default (linux-sparc64-smp).
  • I accepted the default X server driver (fbdev). The T2000 is a server and thus doesn't have a video card by default so it shouldn't matter in this case.

That should be it!