Create an LXC Container on Proxmox 4.1

With our server installed we are going to  create our first VM using LXC.

Imagen10

We have to select the node where we want to create the VM (if we have a cluster we could pick any node), the VMID, the hostname (FQDN or not) and the root password:

Imagen11

Next step is select the storage that contains the templates and pick one for the new machine (you can download from here or have your own).

Imagen12

Go next and put the disk and the storage that should contain the VM (be careful with this value, since you won’t be able to change it easily).

Imagen13

Next we have to set the CPU Limit and CPU Units for the machine.

Imagen14

We also have to set the memory assigned to the machine…

Imagen15

… and the network parameters.

Imagen16

We could set a different DNS Server or just leave the same of the host.

Imagen17

As final step

Continue Reading

Install Proxmox 4.1

First thing to do is download and burn the ISO file of Proxmox VE Server 4.1:

http://www.proxmox.com/en/downloads/item/proxmox-ve-4-1-iso-installer

Boot and pick the installation process.

Imagen01

Agree with the EULA.

Imagen02

Select the Hard drive to install the OS.

Imagen03

 

Set up the TimeZone and the Location.

Imagen04

Set the root password and an email.

Imagen05

Specify the hostname (FQDN) and network parameters.

Imagen06

Wait until the installation process is finished.

Imagen08

 

Reboot the system and ready to start managing it through th GUI https://192.168.1.133:8006/

Imagen09

Continue Reading

How to set IP over Infiniband.

With Infiniband be could gain more speed for data transfer between 2 nodes. There are a lot of ways to use Infiniband. In this particular case we will use it for TCP/IP connection. It’s not the fastest method for data transfer but it’s just a start. We could user iSCSI over Infiniband as well. We will work with QLE7342 Card on Debian Jessie.

  • First we will configure some kernel options on grub. We just need to modify this line in /etc/default/grub
    • GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
  • for
    • GRUB_CMDLINE_LINUX_DEFAULT=”quiet options ib_qib singleport=1 krcvqs=2″
  • (Here you could find the configuration for your processor)

 

  • We update grub’s configuration:
    • update-grub
  • And reboot the server.

 

  • Once again on our server, we have to install the Infiniband tools and some dependencies:
    • apt-get install -y build-essential infiniband-diags opensm
  • Next we need to add the modules to /etc/modules:

# Protocol modules
# Common modules
rdma_ucm
ib_umad
ib_uverbs

# IP

Continue Reading

How to Mount an iScsi device.

These steps work with Debian Jessie and a Fibrechannel QLogic ISP2432 card.

  • Then we need to update:
    • apt-get update
  • And install the multpath package:
    • apt-get install multipath-tools
  • Once we have Multipath installed, we need to rescan looking for any device:
    •   for host in $(ls -1d /sys/class/fc_host/*); do echo “1” > ${host}/issue_lip; done
    •   for host in $(ls -1d /sys/class/scsi_host/*); do echo “- – -” > ${host}/scan ; done
  • After that we could check the devices:
    • multipath -ll
  • That command list all the devices detected.
  • To set the storage for autodetect and automont we have to find the ID with:
    • /lib/udev/scsi_id -g -u -d /dev/sdb
  • This is a simple example of the file /etc/multipath.conf that
  • Continue Reading