Home Automation post header

Install Jeedom on Proxmox VE

In this post we are going to see how to install Jeedom in a virtual machine in Proxmox VE.

¿Why?

As explained in this post, the installation of Jeedom using a Raspberry Pi ended up resulting in a failure of the SD card and causing me to have to reinstall the whole system again.

Perhaps I could have opted to continue using a Raspberry Pi with an external hard drive, but finally settled on a mini PC for, among others, the following reasons:

  • To be able to allocate more or less resources to Jeedom.
  • Have a single physical machine where you can run different servers.
  • Simplify the backup process.

Create the virtual machine

To Install Jeedom we are going to use a new virtual machine in which we will install the latest version of Debian that we can download here. We will choose the amd64 version.

We are going to use a netinstall image for two reasons; because of its small size and because this way we make sure that the installation is fully up-to-date.

In this post I explain how to create a virtual machine.

The Hardware configuration used is:

  • 1 socket with two cores
  • 1GB of RAM
  • 1 HDD 16GB
  • 1 Network card
  • 1 CD-ROM drive
  • 1 USB device

As the operating system version I have chosen Linux 5.x – 2.6 Kernel.

Install the Operating System

After starting the virtual machine, the following screen will appear on the console, where we will choose “Install”.

Next we will choose the language, our location and the keyboard distribution.

After this it will ask us to give a name to our machine:

And the domain; if we do not have a domain we will leave this field blank:

The next thing will be to define the password of the root user, which we must confirm on the next screen:

Next, it will ask us to create a local user because for security reasons it is not convenient to work with the root user. First it will ask us for the descriptive name of the user and then the name of the account. After this, it will ask us to create the password for this user and confirm it.

Now it’s time to configure the hard drive and partitions. We are going to use the first option “Guided – Use entire disk”:

Then the hard disk to install will appear, we continue and on the next screen we are going to select “Separate /home partition”; in this way if we need to reinstall the operating system we will not lose our /home since it will be in a different partition from the main one.

On the next screen a summary will appear with the information on how our hard drive will be configured.

After accepting this screen, the operating system installation will begin.

Once the installation reaches 100%, a screen will appear indicating that we can insert another CD or DVD for the installation of packages. We have chosen to install from the network, so all our packages will be downloaded from the Debian repositories on the Internet, so we will say No.

In the following screens we will configure the repositories.

First we will choose our location; On the next screen we will see a list with the different servers that are available. I have chosen the first of them.

Once the server has been chosen, on the next screen it will ask us if we want to configure a network proxy. If we do not use any proxy to connect to the internet, we leave it blank.

We will finish configuring the basic packages of our installation and it only remains if we want to participate in the popularity-contest that anonymously sends statistics of the most used packages. Here everyone can choose what they think is convenient.

Once this is done, the next step is to choose the packages that we want to install on our system. As we are going to use it as a server, we do not need any graphical environment; we also don’t need to install any web server as it will be installed when we launch the Jeedom installation script.

We will select only the 2 options that you see in the image:

Once the installation is complete, it’s time to install the boot loader (GRUB). In our case, as we do not have more operating systems installed, we select Yes on the first screen and in the next we indicate the disk where to install it.

A final screen will appear asking us to remove the CD-ROM; We will do this in the properties of the CD-ROM drive on the hardware screen of the virtual machine and then restart by clicking on “Continue”.

With this we finish the installation of the operating system in the virtual machine.

Operating system settings

Once the virtual machine has restarted, we will log in with the user created during the installation and execute the following command to find out the IP address assigned to the machine:

ip addr show

Now we should create an entry in our DHCP server so that the virtual machine always has the same IP address; The MAC address of the network card can be seen in the properties of the network card within the Hardware page of the virtual machine.

For security reasons the root user cannot connect via SSH. Here we have 2 options: either we enable this user to be able to access by SSH, or we configure our user so that he can launch commands through sudo.

Let’s see how we can do the second:

The first thing we must do is change to the root user. To do this we write the command su – (between su and – there is a space) in the console, and enter the password of the root user.

We will install sudo with the command apt-get install sudo. Once installed, we are going to add our user in the /etc/sudoers file so that it can use the sudo command. We will execute the command nano /etc/sudoers, with this we will open the text editor where we will look for the following lines and add the line indicated in red:

# User privilege specification
root    ALL=(ALL:ALL) ALL
nuestro_usuario    ALL=(ALL:ALL) ALL

We save and close with CTRL+X. Next we return to our user using the exit command.

Now we will install QEMU Guest Agent with the following commands:

sudo apt-get update
sudo apt-get install qemu-guest-agent
sudo systemctl start qemu-guest-agent

Install Jeedom

Once the above is finished, we go with the installation of Jeedom; for this we are going to execute the following commands:

# Download the installation script
wget https://raw.githubusercontent.com/jeedom/core/stable/install/install.sh

# We give the file execution permissions
chmod +x install.sh


# We launch the script with the parameters -w installation path and -m root password for mysql
./install.sh -w /var/www/html -m Jeedom

Once the installation is finished, we restart the virtual machine and we will be able to access our Jeedom using the IP address of our server in the web browser.

If you have made it this far, thank you very much! If you have any questions, do not hesitate to leave them in the comments and I will do my best to help.

And don’t forget to subscribe to receive an email when new articles are published.

Don’t miss any new post!

We don’t spam! Read more in our privacy policy

Leave a Comment

Your email address will not be published.