Once the distribution is installed, you need to apply a basic configuration to your first host, and create a flexVDI Manager instance to get all your physical resources under control. This operation is done with flexvdi-config, a text based tool which allows you to easily accomplish these tasks.
After installing the Host and rebooting for the first time, flexVDI will show a login prompt. To launch flexVDI Config, follow the following steps:
[root@flexhost ~] # flexvdi-config |
The first time you run flexVDI Config, you'll be informed that an initial configuration will be applied for this Host. You can run this operation again by selecting the Initial option in the main menu, but this is rarely needed.
flexVDI Config main menu shows the following options:
flexVDI 2.2 organizes guests in subnets with the help of virtual bridges. A virtual bridge communicates virtual machines among them and with other computers. All the machines that have a network interface connected to the same virtual bridge will be connected to each other, as if they were in the same network segment. Also, to access machines outside the host, one of its physical interfaces has to be attached to that virtual bridge. With the flexvdi-config
tool, you can manage virtual bridges, setup bond and local VLAN interfaces, and configure the TCP/IP information of them all. In this first basic configuration we are going to create a single virtual bridge (vibr0) with one physical interface attached to it (eth0), and configure an IP address. Follow these steps:
You will be informed that a new network bridge named virbr0 has been created. Upon returning to the screen of network bridges, you will see you have a new bridge with that name, without any assigned slave. An isolated network bridge like that can be useful to define a subnet of virtual machines without direct access to the outside.
In order to attach a physical interface to the virtual bridge, just follow these steps:
In a complex network configuration, it may be interesting to separate network traffic in different VLANs. The LocalVLAN option lets you define interfaces that let the host access a VLAN on a virtual bridge. This step only provides VLAN access to the host, it is not needed to provide VLAN access to the flexVDI Manager or other virtual machines. To create a local VLAN interface on virbr0, follow these steps:
A new network interface is created with the name virbr0.id, where id is the VLAN identifier. Thus, through this interface the host is now able to access the VLAN in that virtual bridge.
The TCP / IP submenu lets you define the IP network parameters associated with each interface. We will configure the network bridge virbr0 so that the host can access the Internet through it. This will allow us to update the host and download the flexVDI Manager image later. If you created a local VLAN interface in the previous step, configure that interface instead.
There is a known bug in the distribution flexVDI 2.2 is based on (CentOS 6.5) that affects the access to VLANs. If you want to access a VLAN through a virtual bridge, you MUST configure an IP address for that bridge too, even if it is not required or you will not use it. |
Finally, the DNS option of the Network menu allows you to configure DNS servers for host name resolution. Simply enter the DNS option, and configure the address of the name servers you want to use.
Once you have finished the previous steps, the network settings of your first flexVDI Host have been defined. To apply this configuration, you must leave the Network menu. Then flexVDI-config will state that network settings have changed, so it is required to restart the network service for the changes to take effect. Confirm that you want to perform the operation.
In order to get software updates for the flexVDI Host and download the flexVDI Manager image, you need to register each flexVDI Host on the flexVDI Network. You need Internet access in this Host, and the credentials provided when you registered in the Customer Portal (https://portal.flexvdi.com). Just select Subscription on the main menu, and enter your credentials.
It is recommended to perform an upgrade of the distribution after registering in the flexVDI Network. To do this, select the Update operation from the main menu. flexVDI Config asks for confirmation, and will remind you that this operation requires Internet access and an active subscription to the flexVDI Network. If everything is correct, select Yes and the update process will begin:
If your hosts reach Internet through an HTTP proxy, you need to configure flexVDI Config to use it, BUT ONLY DURING THIS STEP. Some of the advanced configuration steps performed by flexVDI Config include http connections with other componentes of the platform, such as the flexVDI Manager. These connections will probably fail if performed through a proxy.
To use the proxy to perform this single task, do the following:
[root@flexhost ~]# export http_proxy=http://proxyname:proxyport https_proxy=https://proxyname:proxyport |