• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. User Guide
  4. Virtualization
  5. XenServer on BMS
  6. Configuring the vNIC for the Service VM

Configuring the vNIC for the Service VM

To enable service VMs created on the XenServer BMS to communicate with the ECSs in the same VPC or provide services to the Internet, configure vNICs for the service VMs.

NOTE:

For how to create a VM on the XenServer BMS, see the official Citrix website or other channels. The vNIC selected during VM creation must be associated with the xapi NIC created in 8 of section Configuring the User-defined VLAN NIC for the BMS.

Procedure

  1. Log in to a VM.
  2. Run the following command to enable the vNIC on the VM:

    ip link set eth0 up

  3. Run the following command to set the IP address of the vNIC to an IP address in the user-defined subnet segment in section Creating a User-defined Network (except x.x.x.1):

    ip address add 10.10.10.2/24 dev eth0

  4. Run the following command to configure a default route for the VM:

    route add default gw 10.10.10.1

NOTE:

The NIC name (eth0), IP address (10.10.10.2/24), and gateway address (10.10.10.1) in the preceding command are examples. Configure them based on the actual planning.

After the preceding operations are complete, service VMs can communicate with ECSs in the same VPC. You can run the ping command to verify the communication.