• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

★ Creating a VM

2020-03-30 Published
  • 0关注
  • 0收藏 1819浏览
粉丝:23人 关注:4人

Network Topology

A VM contains a set of files and has its own CPU, memory, network, storage, and BIOS resources. Operating systems and applications can run on VMs in the same way that they run on physical hosts.

VM creation is the foundation of server virtualization and cloud service data centers. The complete VM creation process includes not only the allocation of compute, network, and storage resources but also the installation of an operating system and applications.


UIS supports only one cluster. All hosts and VMs managed by UIS belong to this cluster. You can create a VM in a cluster or on a host.

·            Cluster-based VM creationThe system creates the VM on the host with the lightest load. Load measurement criteria include VM quantity, memory usage, and CPU usage.

·            Host-based VM creationThe system creates the VM on the host that you specify. After the VM is created, the VM runs on the host unless it is migrated by an HA, DRS, DPM, affinity, or anti-affinity policy.

Table 1 Software requirements

Software

Version

H3C UIS 6.5

E0708 or later

 

Configuration Steps

1.       Log in to UIS by using the default username and password admin.

Figure 1 Logging in to UIS

 

2.       Access the VM creation page by using one of the following methods:

¡  Click VMs on the top navigation bar, and then click Add.

Figure 2 Accessing the VM creation page (method 1)

 

¡  Click VMs on the top navigation bar, select a host from the navigation pane, and then click Add.

Figure 3 Accessing the VM creation page (method 2)

 ¡  Click Hosts on the top navigation bar, select a host from the navigation pane, and then click Add VM.

Figure 4 Accessing the VM creation Accessing (method 3)

 

3.       Configure the basic settings as described in Table 2, and then click Next to configure advanced settings or click Finish to finish VM creation.

Figure 5 Configuring basic settings

 

Table 2 Basic settings

Parameter

Description

Alias

Enter an alias for the VM. You can edit the VM"s alias after the VM is created.

Description

Enter a description for the VM. As a best practice to distinguish VMs with the same name, configure different descriptions for the VMs.

Select Host

Select a host for the VM. If you do not select a host, the system creates the VM on the host with the lightest load. Load measurement criteria include VM quantity, memory usage, and CPU usage.

OS

Select an operating system type for the VM. The operating system that you actually install for the VM must be the same as the selected operating system in type and version.

Version

Select an operating system version. The operating system that you actually install for the VM must be the same as the selected operating system in type and version.

CPUs

Specify the number of vCPUs for the VM, which cannot exceed the number of CPUs on the host.

Memory

Specify a memory size for the VM. The maximum memory size available for the VM depends on the physical memory size of the host.

Disk

Specify a disk size for the VM.

 

4.       Click the  icon next to CPU, and then configure the CPU parameters as described in Table 3.

Figure 6 Configuring CPU parameters

 

Table 3 CPU parameters

Parameter

Description

CPU

Specify the number of vCPUs for the VM, which cannot exceed the number of CPUs on the host. However, the total number of vCPUs of VMs on a host can exceed the number CPUs on the host.

In the H3C CAS CVK system, a VM is a process in the operating system of the kernel. The kernel schedules processes through time slices. When the time slice of a process on a CPU runs out, the process will be suspended, and the CPU is passed to the next process. Therefore, the more vCPUs you specify for a VM, the more vCPU time slices will be allocated to the VM and the higher the VM"s performance will be.

CPU Cores

Specify the CPU cores for the VM. The number of CPU cores of a VM cannot exceed that of the host.

Bind Physical CPU

Bind the vCPUs of the VM to one or multiple physical CPUs of the host. Then, the VM can use only the bound physical CPUs.

This feature can reduce cache missings caused by CPU switchover, which improves the performance of the VM. However, this feature causes unbalanced load across the CPUs in the symmetric multi-processing (SMP) system, which might decrease the scheduling efficiency of the whole system.

A vCPU cannot be bound to physical CPUs across NUMA nodes. To ensure successful VM operations (for example, migration, clone, restoration, and import) between two hosts, make sure the source and destination hosts use the same NUMA architecture.

To configure this parameter, you must select a host for the VM.

Operating Mode

Select a CPU operating mode. Options include the following:

·          Compatible—Virtualizes physical CPUs of different models into vCPUs of the same model. This mode features high migration compatibility.

·          Passthrough—Passes physical CPUs to VMs. This mode features low migration compatibility but provides better performance than the Compatible mode. VMs using the passthrough CPU operating mode can be migrated only between hosts with the same CPU model.

Addressing Mode

Select a CPU addressing mode.

A 32-bit operating system supports both the 32-bit and 64-bit addressing modes. A 64-bit operating system supports only the 64-bit addressing mode. If you select the 32-bit addressing mode for a VM using a 64-bit operating system, the VM cannot be started.

Schedule Priority

Select a priority for the processes on the VM to preempt physical CPU resources.

When the physical CPU resources are insufficient, CPU time slices are allocated to VMs with the high, medium, and low priorities in the ratio of 4:2:1.

Reserve

Specify the guaranteed minimum CPU frequency for the VM.

Limit

Specify the maximum clock frequency of the VM, in MHz or GHz. If you leave this parameter empty, the clock frequency is not limited. The value range for this parameter is 10 MHz to the clock frequency of the host.

I/O Priority

Select a priority for the processes on the VM to read/write disks.

When multiple VMs on a host read or write the disk simultaneously, VMs with higher I/O priorities can achieve better performance.

Limit Sharing

Select whether to enable limit sharing. For example, if you enable limit sharing for a VM that has 4 CPU cores and set the maximum host CPU frequency that a single CPU core of the VM can use to 2 GHz, the maximum host CPU frequency is 8 GHz for both the VM and a single CPU core of the VM.

Online Scale Down

Select whether to enable online CPU scale down for the VM.

 

5.       Click the  icon next to Memory, and then configure the memory parameters as described in Table 4.

Figure 7 Configuring memory parameters

 

Table 4 Memory parameters

Parameter

Description

Memory

Specify the maximum memory size of the VM"s operating system, in MB or GB. The value range for this parameter is 512 MB to the maximum memory size of the host.

In the H3C CAS CVK system, memory resources are allocated to VMs on an on-demand basis. Therefore, the total size of memory that you specify for all VMs on a host can exceed the physical memory size of the host. However, memory overcommitment is not recommended in actual production environments because redundant memory resources are required if DRS, HA, DPM, affinity, or anti-affinity services are configured.

Reserve

Specify the memory to be reserved for the VM to the maximum memory of the VM in percentage. 0 indicates that no memory is reserved. When the load of the VM increases and all the reserved memory has been used, the VM can retain the reserved memory even if it is idle.

The host allocates memory to VMs based on the actual memory usage of the VMs.

You can reserve some memory for a VM in case the VM needs more memory after the host memory is exhausted.

Limit

Specify the maximum size of host memory that the VM can use.

Resource Priority

Select a priority for the VM to request memory resources. When the VM requests more memory than its reserved memory, the host makes memory allocation decisions based on the resource priority if memory contention occurs.

Ballooning

Select whether to enable ballooning for the VM. With ballooning enabled, the system dynamically allocates host memory to the VM without shutting down the VM.

HugePages

Select whether to enable the VM to use HugePages memory of the host. You can enable this feature only if the HugePages feature is enabled on the host. HugePages memory is mutually exclusive with memory reservation, memory limit, resource priority, and ballooning.

 

6.       Click the  icon next to Network, and then configure the network parameters as described in Table 5.

Figure 8 Configuring network parameters

 

Table 5 Network parameters

Parameter

Description

Network

Select a vSwitch for the VM. A vSwitch is a software-based IP forwarding and control module. All traffic between VMs and the external network is forwarded through vSwitches.

Port Profile

Select a port profile for the VM. The port profile defines the VLAN, ACL, and network bandwidth settings for the VM.

Virtual Firewall

Select a virtual firewall for the VM. The incoming and outgoing data packets of the VM will be filtered based on the firewall rules.

NIC Type

Select a NIC type for the VM. Options include the following:

·          Common NIC—Provides a transmission rate of 100 Mbps.

·          Intel e1000 NIC—Provides a transmission rate of 1000 Mbps.

·          High-Speed NIC—Provides a transmission rate of 10000 Mbps. High-speed NICs are driven by CVK.

·          SR-IOV Passthrough NIC—VMs use vNICs virtualized from physical NICs. SR-IOV passthrough NICs provide the best performance but require the support of the physical NIC and VMs. This option is available only after you select a host for the VM.

Driver Type

Select a driver type for the SR-IOV passthrough NIC. The value of this parameter is VFIO. This parameter is configurable only when you select SR-IOV Passthrough NIC as the NIC type.

VLAN ID

Specify a VLAN ID for the VM. This parameter is configurable only when you select SR-IOV Passthrough NIC as the NIC type.

Bound IPv4

Enter the IPv4 address bound to the MAC address of the VM’s NIC. If the IP address that you actually specify for the VM"s NIC is different from the bound IPv4 address, the VM"s NIC cannot communicate correctly.

MAC

Select a MAC address assignment mode.

Fast Forwarding

Select whether to enable fast forwarding for the VM. After you enable this feature, the high-speed NIC is simulated in CVK as an independent thread, which improves the network performance of the VM.

This parameter is configurable only when you select High-Speed NIC as the NIC type.

Hot Swappable

Select whether to enable hot NIC swapping for the VM. This parameter is configurable only when you select High-Speed NIC as the NIC type.

MTU

Specify an MTU for the VM"s NIC. This parameter is configurable only when you select Common NIC, High-Speed NIC, or Intel e1000 NIC as the NIC type.

 

7.       Click the  icon next to Disk, and then configure the disk parameters as described in Table 6.

Figure 9 Configuring disk parameters

 

Table 6 Disk parameters

Parameter

Description

Disk

Specify the size of the storage volume used as the disk of the VM.

Type

Select a disk type. Options include the following:

·          Block Device—A block device is also called a raw device, which does not have a file system, for example, a storage LUN on an IP SAN or FC SAN. Block devices are typically used in a virtualization environment that requires high performance, for example, databases and high-performance I/O compute.

·          New File—Create a new empty storage file as the disk of the VM. A disk file is created based on the file system and provides high manageability.

·          Existing File—Select an existing storage file that is not used by other VMs as the disk of the VM.

This parameter is configurable only after you select a host for the VM. If you do not select a host for the VM, the value of this parameter is New File.

Storage Pool

Select a storage pool for the new disk.

File Name

Enter a name for the disk file and select a disk format if a new file is used as the disk. The raw format provides high I/O efficiency but does not support snapshots or fast clone.

Provisioning

Select a storage volume provisioning mode. Options include the following:

·          Thin—Allocates only as much storage space as the storage volume needs for its initial operations when the storage volume is created. If the storage volume needs more storage space later, you can allocate as much storage space as the volume requires based on the specified maximum storage size. This mode provides the lowest performance because it has a high metadata I/O cost.

·          Lazy Zeroed—Allocates the specified maximum storage size to the storage volume when the storage volume is created. Data remaining on the physical device is not erased during creation, but is zeroed out on first write from the VM. This mode provides a low performance causes write amplification problems. The minimum data management unit of the file system is 1 MB. If only 4 KB data is written, the remaining 1020 KB data will be cleared, which results in a high cost.

·          Eager Zeroed—Allocates the specified maximum storage size to the storage volume when the storage volume is created. Data remaining on the physical device is zeroed out during creation. Creating a storage volume using this provisioning mode consumes more time than creating a storage volume using other provisioning modes. This mode provides the highest performance but it does not allocate resources on demand, which wastes resources in virtualization scenarios.

Bus Type

Select a bus type. Options include the following:

·          IDE—Applicable to IDE devices, such as CD-ROM drives. This bus type provides a low performance.

·          USB—Applicable to USB peripherals.

·          High-Speed—Provides the highest performance and is most commonly used.

·          High-Speed SCSI—Provides a low system occupancy and a high transmission rate. To process special or frequent SCSI instructions, select this type.

Cache Mode

Select a data caching mode for the VM. Different caching modes provide different read/write performance.

The following options are available:

·          DirectsyncData[ge1]  is written to the physical disk and then synchronized to the disk file of the VM, which improves data security but reduces efficiency. If[ge2]  the VM uses local disks, select this mode to ensure data security.

·          Writethrough—Data is read from the host cache and written to the host cache and then to the physical disk. This mode provides the lowest write performance but the highest data security.

·          Writeback—Data is written to the VM cache, then to the host cache, and finally to the physical disk. A write operation is completed as soon as the data is written to the host cache. This mode provides the highest efficiency but the lowest data security.

·          None—Data is written to the VM cache and then to the physical disk. This mode provides the highest overall performance in security and performance.

Hot Swappable

Select whether to enable hot disk swapping for the VM. This parameter is configurable only when you select High-Speed as the bus type.

 

8.       Select a floppy drive, and click the  icon next to CD-ROM to configure the CD-ROM drive parameters as described in Table 7.

Figure 10 Configuring floppy drive and CD-ROM drive parameters

 

Table 7 Floppy drive and CD-ROM drive parameters

Parameter

Description

Floppy

Select a floppy drive image. The system will automatically load a high-speed driver compatible with the selected operating system version.

CD-ROM

Select a CD-ROM drive image.

Connection Mode

Select a CD-ROM drive connection mode.

 

9.       To add hardware for the VM, click Add Hardware, and then select the corresponding option.

You can add NICs, disks, CD-ROM drives, floppy drives, GPU devices, USB devices, remote USB devices, PCI devices, and watchdogs for the VM.

Figure 11 Adding hardware

 

Table 8 Hardware parameters

Hardware

Parameter

Description

GPU Device

Resource Pool

Select a resource pool. A resource pool contains all available GPUs in the cluster.

Service Template

Select a service template. The service template defines the priority for the VM to access the scarce resources (such as GPUs and HBA cards) on the host.

Drive Type

Select a driver type for the GPU device. The value of this parameter is fixed at VFIO.

For VMs using a Windows 7 professional operating system, the GPU device"s driver type can only be VFIO.

USB Device

Connection Mode

Select a USB connection standard.

This parameter is available only after you select a host for the VM.

Remote USB Device

Connection Mode

Select a USB connection standard.

This parameter is available only after you select a host for the VM.

PCI Device

Driver Type

Select a driver type for the PCI device.

This parameter is available only after you select a host for the VM.

Watchdog

Add a watchdog for the VM. Interrupt options include Reboot, Power Off, and Migrate.

 

10.    Click Finish.

The created VM will be displayed on the VM management page, and the VM is in shutdown state.

Figure 12 VM management page


 

Key Configuration

该案例对您是否有帮助:

您的评价:1

若您有关于案例的建议,请反馈:

0 comments

No comments

Add Comments:

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作