Как добавить машину в MAAS с мощностью IPMI с помощью CLI

Если у вас есть версия 050d:815f, которая использует чип Realtek rtl8192su, выполните следующие шаги для установки драйверов. Я пробовал его на версии 10.04, но он должен работать и на 11.04. Убедитесь, что у вас есть 050d:815f. lsusb | grep Belkin Создайте каталог для хранения драйвера. sudo mkdir /lib/firmware/RTL8192SU Загрузите драйвер. Убедитесь, что подключение к Интернету включено или используется другим компьютером, и скопируйте его в созданный каталог. sudo wget http://launchpadlibrarian.net/37387612/rtl8192sfw.bin.gz Разархивируйте драйвер. sudo gunzip rtl8192sfw.bin.gz Перезагрузите адаптер. Просто подключите его и снова включите. Свет на адаптере должен начать мигать через несколько секунд, и появится список подключений.

Если он не работает, попробуйте выполнить описанные здесь шаги, чтобы устранить неполадки и получить точную страницу сообщений об ошибках.

Если вы отчаянно пытаетесь сделать это, я бы предложил получение адаптера с этой страницы .

К сожалению, встроенная карта Wi-Fi на моем ноутбуке работает в 30 раз лучше, чем USB-адаптер Belking. Мое широкополосное соединение - 10 Мбит, а скорость загрузки - 0,3 Мбит, что смешно. Удивление, если это проблема с Linux или адаптером. Это мой второй Belking USB, и я бы никогда не купил еще ...

После большего тестирования я обнаружил, что на Windows 7 тот же USB-адаптер работает на 0,8 Мбит в Windows, что всего в 15 раз медленнее, чем встроенный (намного более старый) адаптер на моем ноутбуке, и использует только 8% доступной пропускной способности. Утверждения, что это «Лучшее для скорости и охвата», кажутся смешными. И, похоже, вывод заключается в том, что этот USB-адаптер - это часть дерьма.

0
задан 27 July 2017 в 20:32

3 ответа

Вот пример того, как добавить машину:

maas maasadmin machines create \
    hostname=<hostname> \
    fqdn=<hostname>.maas \
    mac_addresses=<mac_used_for_dhcp> \
    architecture=amd64 \
    power_type=ipmi \
    power_parameters_power_driver=LAN_2_0 \
    power_parameters_power_user=<ipmi_user> \
    power_parameters_power_pass=<ipmi_password> \
    power_parameters_power_address=<mgmt_ip_address>

Входы:

имя хоста: все, что вы хотите пометить своей новой машиной.

[d4 ] имя хоста : адрес mac адаптера на новом компьютере, который получит DHCP-адрес, а затем вернется к MAAS для изображения PXE.

ipmi_user / password: пользователь

ipmi_user / password : IP-адрес платы контроллера вашего компьютера (например, Dell iDRAC)

после этого извлекается из исходного кода MAAS api для создания новой машины.

   """Create a new Machine.

    Adding a server to a MAAS puts it on a path that will wipe its disks
    and re-install its operating system, in the event that it PXE boots.
    In anonymous enlistment (and when the enlistment is done by a
    non-admin), the machine is held in the "New" state for approval by a
    MAAS admin.

    The minimum data required is:
    architecture=<arch string> (e.g. "i386/generic")
    mac_addresses=<value> (e.g. "aa:bb:cc:dd:ee:ff")

    :param architecture: A string containing the architecture type of
        the machine. (For example, "i386", or "amd64".) To determine the
        supported architectures, use the boot-resources endpoint.
    :type architecture: unicode

    :param min_hwe_kernel: A string containing the minimum kernel version
        allowed to be ran on this machine.
    :type min_hwe_kernel: unicode

    :param subarchitecture: A string containing the subarchitecture type
        of the machine. (For example, "generic" or "hwe-t".) To determine
        the supported subarchitectures, use the boot-resources endpoint.
    :type subarchitecture: unicode

    :param mac_addresses: One or more MAC addresses for the machine. To
        specify more than one MAC address, the parameter must be specified
        twice. (such as "machines new mac_addresses=01:02:03:04:05:06
        mac_addresses=02:03:04:05:06:07")
    :type mac_addresses: unicode

    :param hostname: A hostname. If not given, one will be generated.
    :type hostname: unicode

    :param domain: The domain of the machine. If not given the default
        domain is used.
    :type domain: unicode

    :param power_type: A power management type, if applicable (e.g.
        "virsh", "ipmi").
    :type power_type:unicode

    :param power_parameters_{param}: The parameter(s) for the power_type.
        Note that this is dynamic as the available parameters depend on
        the selected value of the Machine's power_type. `Power types`_
        section for a list of the available power parameters for each
        power type.
    :type power_parameters_{param1}: unicode
    """
2
ответ дан 22 May 2018 в 20:11

Вот пример того, как добавить машину:

maas maasadmin machines create \ hostname=<hostname> \ fqdn=<hostname>.maas \ mac_addresses=<mac_used_for_dhcp> \ architecture=amd64 \ power_type=ipmi \ power_parameters_power_driver=LAN_2_0 \ power_parameters_power_user=<ipmi_user> \ power_parameters_power_pass=<ipmi_password> \ power_parameters_power_address=<mgmt_ip_address>

Входы:

имя хоста: все, что вы хотите пометить своей новой машиной.

имя хоста : адрес mac адаптера на новом компьютере, который получит DHCP-адрес, а затем вернется к MAAS для изображения PXE.

ipmi_user / password: пользователь

ipmi_user / password : IP-адрес платы контроллера вашего компьютера (например, Dell iDRAC)

после этого извлекается из исходного кода MAAS api для создания новой машины.

"""Create a new Machine. Adding a server to a MAAS puts it on a path that will wipe its disks and re-install its operating system, in the event that it PXE boots. In anonymous enlistment (and when the enlistment is done by a non-admin), the machine is held in the "New" state for approval by a MAAS admin. The minimum data required is: architecture=<arch string> (e.g. "i386/generic") mac_addresses=<value> (e.g. "aa:bb:cc:dd:ee:ff") :param architecture: A string containing the architecture type of the machine. (For example, "i386", or "amd64".) To determine the supported architectures, use the boot-resources endpoint. :type architecture: unicode :param min_hwe_kernel: A string containing the minimum kernel version allowed to be ran on this machine. :type min_hwe_kernel: unicode :param subarchitecture: A string containing the subarchitecture type of the machine. (For example, "generic" or "hwe-t".) To determine the supported subarchitectures, use the boot-resources endpoint. :type subarchitecture: unicode :param mac_addresses: One or more MAC addresses for the machine. To specify more than one MAC address, the parameter must be specified twice. (such as "machines new mac_addresses=01:02:03:04:05:06 mac_addresses=02:03:04:05:06:07") :type mac_addresses: unicode :param hostname: A hostname. If not given, one will be generated. :type hostname: unicode :param domain: The domain of the machine. If not given the default domain is used. :type domain: unicode :param power_type: A power management type, if applicable (e.g. "virsh", "ipmi"). :type power_type:unicode :param power_parameters_{param}: The parameter(s) for the power_type. Note that this is dynamic as the available parameters depend on the selected value of the Machine's power_type. `Power types`_ section for a list of the available power parameters for each power type. :type power_parameters_{param1}: unicode """
2
ответ дан 18 July 2018 в 09:41

Вот пример того, как добавить машину:

maas maasadmin machines create \ hostname=<hostname> \ fqdn=<hostname>.maas \ mac_addresses=<mac_used_for_dhcp> \ architecture=amd64 \ power_type=ipmi \ power_parameters_power_driver=LAN_2_0 \ power_parameters_power_user=<ipmi_user> \ power_parameters_power_pass=<ipmi_password> \ power_parameters_power_address=<mgmt_ip_address>

Входы:

имя хоста: все, что вы хотите пометить своей новой машиной.

имя хоста : адрес mac адаптера на новом компьютере, который получит DHCP-адрес, а затем вернется к MAAS для изображения PXE.

ipmi_user / password: пользователь

ipmi_user / password : IP-адрес платы контроллера вашего компьютера (например, Dell iDRAC)

после этого извлекается из исходного кода MAAS api для создания новой машины.

"""Create a new Machine. Adding a server to a MAAS puts it on a path that will wipe its disks and re-install its operating system, in the event that it PXE boots. In anonymous enlistment (and when the enlistment is done by a non-admin), the machine is held in the "New" state for approval by a MAAS admin. The minimum data required is: architecture=<arch string> (e.g. "i386/generic") mac_addresses=<value> (e.g. "aa:bb:cc:dd:ee:ff") :param architecture: A string containing the architecture type of the machine. (For example, "i386", or "amd64".) To determine the supported architectures, use the boot-resources endpoint. :type architecture: unicode :param min_hwe_kernel: A string containing the minimum kernel version allowed to be ran on this machine. :type min_hwe_kernel: unicode :param subarchitecture: A string containing the subarchitecture type of the machine. (For example, "generic" or "hwe-t".) To determine the supported subarchitectures, use the boot-resources endpoint. :type subarchitecture: unicode :param mac_addresses: One or more MAC addresses for the machine. To specify more than one MAC address, the parameter must be specified twice. (such as "machines new mac_addresses=01:02:03:04:05:06 mac_addresses=02:03:04:05:06:07") :type mac_addresses: unicode :param hostname: A hostname. If not given, one will be generated. :type hostname: unicode :param domain: The domain of the machine. If not given the default domain is used. :type domain: unicode :param power_type: A power management type, if applicable (e.g. "virsh", "ipmi"). :type power_type:unicode :param power_parameters_{param}: The parameter(s) for the power_type. Note that this is dynamic as the available parameters depend on the selected value of the Machine's power_type. `Power types`_ section for a list of the available power parameters for each power type. :type power_parameters_{param1}: unicode """
2
ответ дан 24 July 2018 в 19:24

Другие вопросы по тегам:

Похожие вопросы: