Instalação xen-tools no pfSense

Ajustes do XenServer

1) Primeiramente, vamos localizar nossa VM.

[root@xenserver ~]# xe vm-list

uuid ( RO)           : 6f81867d-9475-44e7-9573-8342583142bd
    name-label ( RW) : vlan002-ip249-pfsense
    power-state ( RO): running

2) Em seguida, vamos listar os vifs (placas de rede) da VM.

[root@xenserver ~]# xe vm-vif-list uuid=6f81867d-9475-44e7-9573-8342583142bd

uuid ( RO)                   : 1abe0b6f-d80f-d2f5-5b8e-dc50e51a5416
          vm-name-label ( RO): pfsense
                 device ( RO): 2
                    MAC ( RO): 5a:8e:34:98:34:98
           network-uuid ( RO): 187eda74-bf20-7503-aff0-2c04f285fe14
     network-name-label ( RO): LAN

uuid ( RO)                   : 0e16ce00-7da0-a5ff-09a1-0dc09fe3f5c1
          vm-name-label ( RO): pfsense
                 device ( RO): 1
                    MAC ( RO): c2:9a:67:9c:1d:12
           network-uuid ( RO): 59f92216-12a3-fba6-16f3-a4cd19ae436b
     network-name-label ( RO): WAN

3) Agora, para cada uuid de interface listado, é necessário executar os passos 4 e 5.

4) Configure uma variável para o uuid.

[root@xenserver ~]# export VIFUUID="uuid" (uuid=IDs listados no passo 2)

[root@xenserver ~]# echo $VIFUUID
1abe0b6f-d80f-d2f5-5b8e-dc50e51a5416

5) Agora, desative as configurações de transferência na interface.

[root@xenserver ~]# xe vif-param-set uuid=$VIFUUID other-config:ethtool-gso="off"
[root@xenserver ~]# xe vif-param-set uuid=$VIFUUID other-config:ethtool-ufo="off"
[root@xenserver ~]# xe vif-param-set uuid=$VIFUUID other-config:ethtool-tso="off"
[root@xenserver ~]# xe vif-param-set uuid=$VIFUUID other-config:ethtool-sg="off"
[root@xenserver ~]# xe vif-param-set uuid=$VIFUUID other-config:ethtool-tx="off"
[root@xenserver ~]# xe vif-param-set uuid=$VIFUUID other-config:ethtool-rx="off"

OBS: Não esqueça de repetir os passos 4 e 5 em todas as interfaces listadas no passo 2.

Agora vamos instalar o xen-tools no pfSense.

1) Instale o xe-guest-utilities no pfSense via SSH

[2.4.4-RELEASE][root@pfsense]/root: pkg install xe-guest-utilities

The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
     xe-guest-utilities: 6.2.0_2 [pfSense]
     xen-guest-tools: 4.6.1 [pfSense]

Number of packages to be installed: 2
21 KiB to be downloaded.

Proceed with this action? [y/N]: y
 [1/2] Fetching xe-guest-utilities-6.2.0_2.txz: 100%    3 KiB   3.5kB/s    00:01    
 [2/2] Fetching xen-guest-tools-4.6.1.txz: 100%   18 KiB  18.0kB/s    00:01    
 Checking integrity… done (0 conflicting)
 [1/2] Installing xen-guest-tools-4.6.1…
 [1/2] Extracting xen-guest-tools-4.6.1: 100%
 [2/2] Installing xe-guest-utilities-6.2.0_2…
 [2/2] Extracting xe-guest-utilities-6.2.0_2: 100%
[2.4.4-RELEASE][root@pfsense]/root: echo 'xenguest_enable="YES"' >> /etc/rc.conf.local
[2.4.4-RELEASE][root@pfsense]/root: ln -s /usr/local/etc/rc.d/xenguest /usr/local/etc/rc.d/xenguest.sh
[2.4.4-RELEASE][root@pfsense]/root: service xenguest start
Starting xenguest.

2) Acesse o pfSense via interface GUI, e realize o ajuste mostrado a seguir.

System > Advanced > Networking >

Marque a opção:

"Disable hardware checksum offload"

Para finalizar, reinicie o pfSense.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *