Previous Topic: Ubuntu 12.04 i386Next Topic: Ubuntu 10.04 i386


Ubuntu 12.04 x86_64

You can install this distro in your appliance.

Note: We recommend creating a separate partition for /usr volume to allow you to move the volume later. This allows you to create a volume that is read-only and shared between appliance instances as well as conserve disc space. You must verify that the distro that you are installing supports the separation. If you create multiple partitions and do not separate later, some filesystem counters will not report correctly.

Follow these steps:

  1. Upload the installation DVD to the /vol/_impex/ directory.
  2. Open the grid shell and initialize the installation with the following command:
    util iso2class app_name=Ubuntu-1204_x64 install_size=5G console_type=graphic iso_volume1=ubuntu-12.04.4-server-amd64.iso os=linux virt_mode=xen_pv,xen_hvm cpu=0.5 mem=1.5G bw=1M
    

    The following prompt appears:

    When you have finished installing from iso_volume1 and are ready to reboot so that remaining volume(s) become available, press [Enter]
    
  3. Access the AppLogic GUI, select the Ubuntu-1204_x64 application, and click the Login (graphic) icon.

    The Ubuntu installation wizard displays a series of panels for you to select your preferences. After you make your selections on each panel, press Enter to advance to the next one.

  4. For some panels, you can make your own choices or accept default values, but for the following panels, select the following values:
    1. Ubuntu menu: select Install Ubuntu Server.
    2. Detect keyboard layout: select No.
    3. Primary network interface: select eth1.
    4. Continue without the default route: select Yes.
    5. Name server addresses: select Continue without adding any servers.
    6. Define Full name, Username, and password for the new user.
    7. Encrypt your home directory: select No , and skip the http proxy information.
    8. Partitioning method: select Manual, and then select the sda device.
    9. Create a new empty partition table on this device: select Yes, and on the next panel, select the FREE SPACE line.
    10. How to use this free space: select Create a new partition for a root / filesystem.
    11. New partition size: enter 2 GB.
    12. Type for the new partition: select Primary.
    13. Location for the new partition: select Beginning.
    14. Partition settings: set the following values:
      • Use as: Ext3 as the file system
      • Mount point: /
    15. Select Done setting up the partition and press Enter.
    16. Select the FREE SPACE line to create a second partition for the /usr tree.
    17. How to use this free space: select Create a new partition.
    18. New partition size: enter 3.4 GB.
    19. Type for the new partition: select Primary.
    20. Partition settings: set the following values:
      • Use as: Ext3 as file system
      • Mount point: /usr
    21. Select Done setting up the partition and press Enter.
  5. Select Finish partitioning and write changes to disk to commit your changes to disk volume.
    1. Do you want to return to the partitioning menu: select No.
    2. Write the changes to disks: select Yes, and skip the http proxy information.
    3. How do you want to manage upgrades on this system: select No automatic updates.
    4. Choose software to install: select OpenSSH server and Manual package selection.
  6. In Aptitude, press / to display a search box, enter 386, select libc6-i386,and press +.

    The package is highlighted.

  7. Press q to exit Aptitude and select Yes to confirm.

    Aptitude closes and you are returned to a progress screen in the Ubuntu installation wizard.

  8. Complete the Ubuntu installation wizard:
    1. Wait until the progress screen completes and all required software is installed.
    2. GRUB install devices: select the GRUB loader on the /dev/xvda.
    3. Install the GRUB boot loader to the master boot record: select Yes
    4. Installation complete: select Continue

    The Ubuntu installation wizard closes.

  9. Complete the installation:
    1. Return to the grid shell.

      The following prompt still appears:

      When you have finished installing from iso_volume1 and are ready to reboot so that remaining volume(s) become available, press [Enter]
      
    2. Press Enter, Y, Enter.

      The following prompt appears:

      When you have finished with the installation, press [Enter] to continue
      
    3. Press Enter, Y, Enter.

      A prompt appears to specify whether to install msi/APK.

    4. Press 2, Enter to select NOT to install the msi/APK.

      A prompt appears to specify whether to call hvm2pv now.

    5. Press 2, Enter to select NOT to call hvm2pv now.

      You now should have an Ubuntu 12.04 application named Ubuntu-1204_x64 running.

    6. Enter the following command to stop the application:
      app stop Ubuntu-1204_x64
      
    7. Specify the device schema:
      • Open the application GUI, right-click on the singleton, and select Modify Boundary.
      • On the General tab, in the Virtualization section, click Advanced, select IDE and /dev/hdX, and click OK.
      • On the Volumes tab, select the consecutive hd* (hda,hdb,hdc...) devices for all volumes (where hda is the boot volume), click OK, and save the application.
    8. Enter the following command to call the hvm2pv utility:
      util hvm2pv name=Ubuntu-1204_x64:main.iso2class
      

      The following prompt appears:

      Is the pre-requisite software installed?
      
    9. Press Y, Enter.

      A confirmation prompt appears.

    10. Press Y, Enter to confirm the Ubuntu OS and 64-bit architecture.

      A prompt appears to set up a new root password.

    11. Press N, Enter to NOT set up a password.

      A prompt appears to press any key when ready.

    12. Press Enter to boot the appliance in PV mode.

      Note: The appliance should boot successfully in both PV and HVM modes.

      A prompt appears to delete the original boot volume.

    13. Press Y, Enter to perform the cleanup.

    You now have the managed Ubuntu 12.04 x64 appliance capable of booting in PV and HVM modes.

  10. To enable the text console for PV and HVM modes, execute the following commands on the running appliance:
    sed 's/tty1/ttyS0/g' </etc/init/tty1.conf>/etc/init/ttyS0.conf
    sed 's/tty1/hvc0/g' </etc/init/tty1.conf>/etc/init/hvc0.conf