Create Baremetal server

Bare metal server

Creating a physical server

Specific of work with physical servers

Bare metal 在云中是为单个租户部署在专用物理硬件上的机器.

从常规的Cloud接口管理物理服务器, 服务器上没有安装虚拟化软件.

虚拟服务器和裸金属服务器有什么区别?

A virtual server in the cloud does not interact directly with a physical computer; it uses a software layer called a hypervisor. 虚拟化环境负责分配CPU等物理计算资源, RAM, and Storage for each instance. 这些实例的计算资源是从共享物理硬件中分配的,所创建的虚拟服务器数据部署在共享物理硬件上. The hypervisor acts as a traffic cop of sorts, 将裸金属的资源定向和分配给每个新虚拟机, ensuring they don't disrupt each other.

虚拟服务器的缺点是性能有限, which can be critical for some applications.

Bare metal 是否被认为是一种更高性能的解决方案.

In this case, 所有物理服务器资源都分配给单个用户,可以提供比类似的虚拟服务器更好的性能. Resources are not shared, as in the case of instance, and the hypervisor level is not required, 哪个允许应用程序分配更多的计算资源.

 

Please, note! Bare metal images:

由于裸金属基础设施的特点, 创建兼容的自定义映像需要一个特殊的程序来为物理服务器构建映像,并需要从专用存储库中编写代码.

betway体育已经准备了非常详细的说明,所有必要的文件都可以通过链接获得 http://github.com/G-Core/baremetal-dib-elements

 

Creating Bare metal server in the Cloud

Physical machines are created inside the project. 您可以使用默认项目或创建一个新项目(获取更多信息), 参见文章“如何创建和删除项目”).

Note! 默认情况下,物理服务器不可用于订购. To create a physical server, you need to request a quota change.

物理机的配额根据服务器类型执行-“基本”, “High-frequency”, “Infrastructure”. For more information on managing quotas, see the "Quotas" article.

进入项目内部,选择“Baremetal”→“Create Baremetal Server”.

1._________________.png

您将看到用于配置和创建新服务器的页面

 

  1. Select the region to create the machine in. 可以订购Baremetal的区域突出显示.

  2. Select the image to install. 您可以从准备好的模板或之前上传的自定义映像中选择一个系统. 有关上载图片的详细资料,请参阅Images" article. Please, note! 裸金属服务器只能使用准备好的映像(有关详细信息), see the section Bare metal images)mceclip3.png4._____________.png

  3. Select the server type. 目前,“高频”和“基础设施”服务器可用.5.____________.png

  4. Add network interfaces. You can create a public and private interface. 6.__________.pngIf you have created networks before时,在下拉列表中选择已创建的网络. 要创建一个新网络,单击Add a new network按钮,并输入网络名称. Note! 在创建网络时,需要选择“Baremetal network”(VLAN)选项. 

    7.__________.png                            创建网络后,您应该配置子网(云中的计算机的地址范围). If you have early created subnets, select the created subnet from the drop-down list.

    To create a new subnet, click on the Add a new subnetwork button, enter the subnet name, 并设置子网的CIDR范围(有效子网掩码范围为:16-24): 

    • 10.0.0.0 - 10.255.255.255
    • 172.16.0.0 - 172.31.255.255
    •  192.168.0.0 - 192.168.255.255

    Only private IPv4 addresses can be used in subnets. 8._Subnet.png

    Please, note!

    创建Baremetal服务器后,您将无法为其附加外部网络. 服务器上的网络不能超过6个. 

  5. 为服务器的远程连接添加SSH密钥或生成一个新的密钥. For more information about adding a key, see the 通过SSH文章连接到实例或裸金属服务器. 您可以通过SSH连接到除Windows服务器之外的所有计算机.

    9._SSH.png
    如果选择Windows Server操作系统,需要设置Admin用户的密码. 它可以包含拉丁字母(a-zA-Z)、数字(0-9)和特殊字符(!#$%&'()*+,-./:;<=>?@[]^_{|}~). Valid length is from 8 to 16 characters. You can connect to the Windows server from Control Panel or from your computer using the RDP protocol.

    10._Admin.png
  6. In "Additional options", 您可以添加元数据,以供运行在虚拟机上的cloud-init代理处理. 为此,在“User data”字段中插入脚本.

    11._User_data.png
    例如,您可以插入一个允许连接到Linux服务器的脚本 directly from your Control Panel or via SSH using a password (连接到Windows服务器不需要这个脚本). Enter this code with the password chosen by you into the User data field:

    #cloud-config
    password: your password
    chpasswd: { expire: False }
    ssh_pwauth: True

    使用指定的密码,您将能够连接到服务器. 不需要显式地指定密码, you can enter its hash (the same password, only in a converted form; the system will be able to read it, but for a person, it looks like a random set of symbols). Then, even if someone gets into the system, 他或她不会知道密码-只有哈希将存储在里面. 系统只会向知道密码的用户开放.

    To generate a hash, you can use the Python script:

    #!/usr/bin/env python3
    # based on http://stackoverflow.com/a/17992126/117471
    # pip3 install passlib
    import sys
    from getpass import getpass
    from passlib.hash import sha512_crypt
    passwd = input() if not sys.stdin.isatty() else getpass()
    print(sha512_crypt.hash(passwd , rounds = 5000 ))
  7. 标记是构成计算机描述元数据的键-值对. Also, you can tag your server. 要做到这一点,激活Tags选项,并设置必要的选项. 标记是构成Baremetal机器描述元数据的键-值对.12._Tags.png

  8. 如果您想创建多个具有相同配置的Baremetal机器, 指定所需的数字(最大值受您的 quotas) 并添加名称(只允许使用拉丁字符、下划线、空格和点). To complete the configuration, click on "Create server" button, and then the server will be deployed in the cloud.13._Create.png

 

Features of working with Baremetal servers.

Baremetal服务器有几个重要的限制:

  • You can not add an external Volume to the server
  • You can not change the Volume configuration
  • 服务器上的网络数量不能超过6个
  • After the Bare metal server was deployed, 私网接口只能通过操作系统手动挂载/解绑定
Was this article helpful?
Recently viewed articles