/** * This document is maintained by ClearCenter. Please contact ClearCenter for approval to make changes to this document. */
ClearVM currently supports a single NIC for VMs and a second NIC which can be used for storage of VM images. If you need to provision multiple NICs for your virtualized guest you can use VLANs to accomplish this task. Your virtual machine can use VLANs only or a combination of tagged and untagged interfaces depending on the support of your switch that ClearVM is connected to. You must have a switch that supports tagged, untagged, or simultaneously tagged and untagged packets. Most modern, managed switches will do.
For using virtual routers such as ClearOS in gateway mode, this howto will be essential to success.
You will need to have a ClearVM server that is set up and provisioned in such a way as to be able to get to the Internet. For the purposes of my demonstration, I have a ClearVM server set up as a DHCP client and can initialize its drive from the Web-based administration portal for ClearVM.
As mentioned, you will also need a switch capable of VLAN support. In my demonstration I will be using a 3 port wireless access point that has VLAN support as well for both tagged and untagged packets. For the port that I have connected to my ClearVM server on the switch, I've configured it for VLAN 10 and have included the ability to still communicate on VLAN 1 (the default). Confirm that you can still talk to your ClearVM server once you configure this switch port.
In this example, I have set up ClearOS 7 on ClearVM according to this guide as opposed to using a VM template from the 'Store'. By default, ClearOS will see the one NIC and automatically configure for 'Private Server Mode'. Use VNC on the LAN that the ClearVM is connected to to manage the ClearOS host that is running. Log into the interface. In the 'Network Interfaces' section, click 'Add VLAN Interface'.
Set up the interface on ClearOS similar to the image below.
Repeat this process for as many VLANs as needed in your eventual deployment. In some cases, you may want one or the other role in ClearOS to be on the default interface which is the same network as the management for ClearVM. In other cases, you may want all NICs on VLANs only and have your management for ClearVM out of band. Be sure to match the VLANs with the configuration and network topology of the switch that it is connected to.
You may even want your ClearVM server behind the virtualized ClearOS box. If you do, you will need to stage the implementation in order to ensure that you have connectivity to ClearVM. You should also have a plan in case your virtual router stops working and you need to manage it out of band.