Help installing Proxmox

  • Thread starter Thread starter PVazquez
  • Start date Start date
P

PVazquez

Guest
Hi all.

First say that my English is very bad. I'm using google translate.

I'm starting in the world of virtualization and I decided to start with Proxmox 2.0.

I find the following questions.

My server has two network interfaces. I want to install a firewall (Zentyal).
How do you configure the network interfaces in proxmox?
Can you tell me some example?

Another thing I do not understand is: When is best to use bridge and bond?
I think what I need is to configure 2 interfaces in bridge mode, but not how.

Another question is when is best to use qcow2 and raw? Does this depend on operating systems?

Thanks for your help and sorry for my ignorance.

Help installing Proxmox
 
You need boning for loadbalancing of interfaces or failover. An other use of bonding is to get higher bandwith. For example you have two 1GB/s interfaces. So you have nearly 2GB/s. On the bond interface you can define some vlans if you want. With this vlan interfaces you can create bridges.

Code:
pmx-00:~# cat /etc/network/interfaces 
# Physical interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual


# 802.3ad
auto bond0
iface bond0 inet manual
    slaves eth0 eth1
    bond_miimon 100
    bond_mode 4


# VLANS
auto bond0.101
iface bond0.101 inet manual
    vlan-raw-device bond0


auto bond0.102
iface bond0.102 inet manual
    vlan-raw-device bond0


auto bond0.110
iface bond0.110 inet manual
    vlan-raw-device bond0


auto bond0.111
iface bond0.111 inet manual
    vlan-raw-device bond0


auto bond0.120
iface bond0.120 inet manual
    vlan-raw-device bond0

# Bridges
auto vmbr0
iface vmbr0 inet static
    address 10.0.8.101
        netmask 255.255.255.0
        gateway 10.0.8.1
    bridge_ports bond0.102
    bridge_stp off
    bridge_fd 0


auto vmbr1
iface vmbr1 inet manual
    bridge_ports bond0.101
    bridge_stp off
    bridge_fd 0


auto vmbr2
iface vmbr2 inet manual
        bridge_ports bond0.110
        bridge_stp off
        bridge_fd 0


auto vmbr3
iface vmbr3 inet manual
        bridge_ports bond0.111
        bridge_stp off
        bridge_fd 0


auto vmbr4
iface vmbr4 inet manual
        bridge_ports bond0.120
        bridge_stp off
        bridge_fd 0

This is an example configuration. You need to give vmbr0 or eth0 an ip address. If you use eth0 in bonding you need to give vmbr0 the ip address.
This config has bonding, vlans and a bridge for every vlan.

In future please use the forum search or the wiki. You will find nearly everything.
 
Hec Hi, thanks for replying.
I'll explain what I do.

Router: 192.168.1.1
Proxmox configuration in / etc / network / interfaces

Code:
---------

# Physical interfaces

auto lo
inet loopback iface what
iface eth0 inet manual
iface eth1 inet manual

# 802.3ad

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 4

# VLANS

self bond0.101
inet manual iface bond0.101
vlan-raw-device bond0

self bond0.102
inet manual iface bond0.102
vlan-raw-device bond0

self bond0.103
inet manual iface bond0.110
vlan-raw-device bond0

# Bridges

self vmbr0
inet static iface vmbr0
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports bond0.101
bridge_stp off
bridge_fd 0

# Why not set up these vlan?

self vmbr1
inet manual iface vmbr1
bridge_ports bond0.102
bridge_stp off
bridge_fd 0

self vmbr2
inet manual iface vmbr2
bridge_ports bond0.103
bridge_stp off
bridge_fd 0

So I have 3 vlan and load balancing with 2 Gb / s. Am I right?

Now I want to install a VM in Proxmox to have a firewall and other services (Zentyal)
An interface will be networked to the router and another with the lan, am I right?

So ...

Zentyal settings in / etc / network / interfaces

# Physical interfaces

auto lo
inet loopback iface what
iface eth0 inet manual
iface eth1 inet manual

# Bridges

self vmbr0
inet static iface vmbr0
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports bond0.101
bridge_stp off
bridge_fd 0

self vmbr1
vmbr1 iface inet stacic
address 192.168.2.1
netmask 255.255.255.0
192,168 gateway.???.??? - Can you help?
bridge_ports bond0.102
bridge_stp off
bridge_fd 0

The third vlan I can use it to install another virtual machine Proxmox (w2k8 server) A lab machine.
Can you help with the network settings?

I am so lost and do not understand the network configurations.

Sorry for my English, is google translate.



* I implemented the configuration and I've lost access. I think something is wrong.
 
Last edited by a moderator:
You need only on one bridge a ipaddress. All other vlans are also setup. But the don't have an ip address.
Do you have configured the trunk on the switch?

Is the second part the interface config from the kvm?
The interfaces are eth0 and eth1. The bridges are visible only on the proxmox host.
Which should be lan and which should be wan from the interfaces. Only the wan need an defaultgateway. The other interface only ip and netmask.
 
Last edited:
I do not understand your post.
I'll explain my situation.
I have a router with 5 ports LAN.
The router is only connected to the server with 2 NIC and my personal PC.
There is only one network. Network: 192.168.1.0 - Router: 192.168.1.1
The server has 2 NICs. We agreed that we do load balancing as you have explained.
This I do not know how. I have no knowledge to set this.

Now I will install a virtual machine on Proxmox. A Zentyal.
Zentyal running multiple services, including firewall.
I understand that firewall must have two interfaces.
Interface 1: Network with router.
Interface 2: Network with my personal PC.
I do not know if I'm explaining it. Your can understand me?

According you've explained to me ...

CODE IN PROXMOX
# Physical interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
# 802.3ad
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 4
# VLANS
auto bond0.101
iface bond0.101 inet manual
vlan-raw-device bond0
auto bond0.102
iface bond0.102 inet manual
vlan-raw-device bond0
# Bridges
auto vmbr0
iface vmbr0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports bond0.101
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet manual
bridge_ports bond0.102
bridge_stp off
bridge_fd 0

Can you tell me if this is correct?
If this is ok, then ...

What is the second vlan?
vlan101 - 192.168.1.0
In this vlan are:
Router - 192.168.1.1
Proxmox - 192.168.1.2
Zentyal server (firewall) - 192.168.1.3
vlan102 -???
Zentyal server (firewall) -???.???.???.???
Personal PC -???.???.???.???

Can you understand me?
 
First of all you can't only put two patchkabels in a homerouter and thinking about 802.3ad! This will not work. You need a manageable switch which can this feature. To have a firewall and a "router" as seperate devices didn't make any sense. I would take something like a alix oder an atom box with pfsense as firewall. I don't virtualisized firewalls. How will you control the traffic if the default gw is you nat device. I don't think that this is a real router. If you have only one network you need no vlans.

Bonding and vlans are for some complex setups. As you write you use a proxmox server at home with only one network. For this you didn't need bonding and you didn't need vlans as i think. I see that you don't have the right hardware for such a setup.
 
True, I have not the hardware for that configuration.

What settings do you recommend?

I want to have this:

Router - 192.168.1.1
PfSense - 192.168.1.2
192.168.2.1

Proxmox Server (has 2 NIC) - NIC1-NIC2-192.168.2.200 192.168.2.100 ¿?
Zentyal VM - 192.168.2.101
Moodle VM - 192.168.2.102
Prestashop VM - 192.168.2.103
Lab Server 2K8 VM - 192.168.2.151
Unix VM lab - 192.168.2.152

Personal computer - 192.168.2.11

This is correct?
How I can configure Proxmox to take this?
 
I would do following:

Buy something like that: http://www.applianceshop.eu/index.php/firewalls/opnsense/opnsense-desktop-and-wallmountable.html
So you there is no more need for your router. With the pfsense you can do routing, natting, firewall, vpn, dhcp, dns,...

Go with the WAN into the pfsense and with the private network out to the proxmox host.
Configure simple on vmbr0 with interface eth0. You need no vlan or bonding.
Configure a small dhcp range or usw fixed ips for your clients.