MAAS Installation Process summary under Ubuntu12.04

Source: Internet
Author: User
Sort out the installation process of MAAS. MAAS, which was promoted by Ubuntu12.04, has been tossing for two days. In my understanding, MAAS is something that ubuntu does based on the interfaces provided by cobbler. 1: Install maas. Generally, maas is recommended to be a separate machine. So when you start the CD, a maas option will be available. Select an installation. You can also install the maas package. The two feel a little different. So it is best to sort out the installation process of MAAS. MAAS, which is promoted by Ubuntu 12.04, has been around for two days.

In my understanding, MAAS is something that ubuntu does based on the interfaces provided by cobbler.

1: Install maas

In general, we recommend that you use a separate machine for maas. So when you start the CD, a maas option will be available. Select an installation. You can also install the maas package. The two feel a little different. Therefore, the best method is to install it on a CD, and select maas for installation.

2: Set dhcp and tftp

Try not to configure dhcp and tftp on the maas server. I have encountered many unexpected problems. When the network traffic is high, the IP address cannot be obtained. In my experiment environment, we can set up Louis's DDwrt to tell the node what the tftp server address is.

If you want to install it on a maas machine as well, refer to https://wiki.edubuntu.org/SecurityTeam/TestingMAAS

3. modify the configuration file

If you directly run maas-import-isos, it will download both 32bit and 64bit content, and the download speed is very slow. We need to do some work.

1: Download 64-bit Ubuntu 12.04 only

2: Set the temporary download path and put the downloaded content under the directory. This can reduce the download time abroad.

Two files under the/etc/maas Directory: import_isos and import_ephemerals

Note that the comment-out content is used by default. If you want to modify it, remove the comment. Red indicates the content I modified.

# Cat import_isos
# RELEASES = "oneiric precise"
RELEASES = "precise"
# ARCHES = "amd64 i386"
ARCHES = "amd64"
# PRIORITY = "critical"
# LOCALE = "en_US"
# INTERFACE = "eth0"
# CONSOLE = "ttyS0, 9600n8"
# KOPTS = "priority = $ PRIORITY locale = $ LOCALE netcfg/choose_interface = $ INTERFACE console = $ CONSOLE"
# IMPORT_EPHEMERALS = 1

This is the ephemerals file, and the last line is to specify a temporary path. You can modify it as needed.

# Cat import_ephemerals
# Get default settings from maas_import_iso
[! -F/etc/maas/maas_import_iso] |./etc/maas/maas_import_iso

# REMOTE_IMAGES_MIRROR = "https://cloud-images.ubuntu.com"
# ISCSI_TARGET_IP = "" # defaults to cobbler server setting
# EPH_KOPTS_CONSOLE = "console =$ {CONSOLE:-ttyS0, 9600n8 }"
# EPH_KOPTS_ISCSI = "ip = dhcp iscsi_target_name = @ iscsi_target @ iscsi_target_ip = @ iscsi_target_ip @ iscsi_target_port = 3260"
# EPH_KOPTS_ROOT = "root = cloudimg-rootfs ro"
# EPH_KOPTS_LOGGING = "log_host = @ server_ip @ log_port = 514"
# EPH_UPDATE_CMD = ""
# TARGET_NAME_PREFIX = "iqn.2004-05.com. ubuntu: maas :"
# DATA_DIR = "/var/lib/maas/ephemeral"
# RELEASES = "precise"
ARCHES = "amd64"
# ARCHES = "amd64 i386"
# KSDIR = "/var/lib/cobbler/kickstarts"
# KICKSTART = "$ KSDIR/maas-commissioning.preseed"
# TARBALL_CACHE_D = "" # set to cache downloaded content
TARBALL_CACHE_D = "/opt"

4: Download essential tools

It may be related to my network. maas, he is stupid now. He needs to download things from a foreign official website, not in mirror, but not in China.

Mini. iso

Http://mirrors.sohu.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/

Download mini. iso to your local device. Put it in:/var/lib/cobbler/isos

And rename it
Precise-x86_64-mini.iso

Download ephemerals

Https://maas.ubuntu.com/images/ephemeral/releases/precise/release-20120424/

Download a 200 MB object. Put it in a directory. The directory will be specified later. Decompress the package. The above example is put in the/opt directory.

5: Run maas-import-isos

At this time, you run

Maas-import-isos

It takes about 1 minute to complete the operation.

6: Set the Logon account

Maas createsuperuser

The installation prompt can be entered. This is to set the Logon account on the web interface.

7. access the web

Http: // ip/MAAS

Remember: MAAS must be capitalized.

Enter the user name and password you defined above to access.

8: set local repo

Apt-get install debmirror

By default, maas ubuntu 12.04 is not updated. Therefore, you need to manually set it.

# Cobbler repo edit -- name = precise-x86_64 -- keep-updated = True

At this time, you can

# Cobbler reposync

You can create a local source. You can see it through ip/cobbler.

After this round, I became familiar with cobbler.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.