Skip to main content

Posts

Using docker containers on XCP-ng with Xen Orchestra CE step by step

1. Create a VM In my tutorial I am cloning one existing VM. To install docker and to prepare the xcp-ng host watch the following video .  Or you could also continue to read it is up to you. 2. Inside the VM you have to install docker, openssh-server and ncat? For ubuntu: $ sudo apt install docker.io $ sudo apt install openssh-server $ sudo apt install ncat To use docker has non-root add the user to the docker group inside your VM like this. $ sudo usermod -aG docker $(whoami) Do not forget to logout and login are it may not work with your account To check if docker is running  type the following $ systemctl status docker 3. Then in your XCP-ng host you have to install xscontainer Like this:  $ yum install xscontainer  Followed by executing  $ xe-toolstack-restart to restart the toolstack and use the following command  $ xscontainer-prepare-vm -v vmuuid -u christophe 4. Test your VM with container tab $ sudo docker run hello-world 5. To install portainer exe...

How to migrate a dataset from one pool to another in TrueNAS CORE ?

The migration steps. 1. Stopping the services that use the dataset. (recommended). 2. Replicating the dataset to the new pool. 3. Verify that all data is replicated. 4. Put in operation the new dataset. 5. Delete the old dataset when satisfied (or not).   The video tutorial can be found by clicking on the title or the picture below. How to migrate a dataset from one pool to another in TrueNAS CORE 1. Stopping the services that use the dataset (recommended). Go to the services tab and what I do if not certain of which services are used by the dataset I let only running the services from which I am cetain that they do not use the dataset. Also, control jails and Virtual Machines to be sure that they do not use the dataset. In the video I do not stop the services to show it is possible. 2. Replicate the dataset to the new pool. a. go to Tasks --> Replication Tasks b. add new replication task c. select source location (example select on this system source /mnt/volume1/VM iso) d. sel...

Follow up on using docker on TrueNAS CORE with a video tutorial

In a previous post https://hometinylab.blogspot.com/2020/09/using-docker-on-freenas.html I explain how to install a Virtual Machine in TrueNAS CORE for using docker. In this follow up I made a video tutorial with the steps from the blog. To download Ubuntu Live server go to this link  https://ubuntu.com/download/server  choose option two to download the server ISO. And for the video click on the video title or the image. Using Docker on TrueNAS 12 CORE

How to fix a degraded pool state in TrueNAS ?

The title could also be``How to change a bad drive in TrueNAS?`` and in my case ``How to upgrade the pool storage space?`` but had it the end it was ``How to trouble shoot during this process?``.  The documentation I used can be found had  https://www.ixsystems.com/documentation/freenas/11.2/storage.html#replacing-a-failed-disk How to fix a degraded pool state in TrueNAS ? In my homelab environment I am using, one off the disks is bad in my TrueNAS. I had to detach the faulty drive to be able to boot the server up again. To replace the disk you must have a replacement disk from the same size or bigger. Because I have to upgrade my pool to a bigger capacity I will change all my 2TB drives to 6TB drives but for obvious reasons I will begin with the bad one: ``I like my data``. Before replacing the drive I will scrub the pool and set the faulty drive offline (which was not possible because the drive was not connected). Replace the drive and adding it again to the pool has a repla...

Upgrading XCP-ng 8.1 to 8.2 with yum!

For .x upgrades yum can be used. But iso upgrades are recommended. What is the point having a homelab? So I will try the yum based upgrade. The official documentation can be found at https://xcp-ng.org/docs/upgrade.html#from-command-line . Login has root in your XCP-ng host (use ssh session) Set the VER variable to the version to upgrade to with the command:                          #  export VER=8.2 Download the following files by executing the following commands:                         #  wget https://updates.xcp-ng.org/8/xcp-ng-$VER.repo -O  xcp-ng-$VER.repo                         #  wget https://updates.xcp-ng.org/8/SHA256SUMS -O SHA256SUMS                         #  wget http...

How to install Xen Orchestra Community Edition XOACE?

When using XCP-ng and to be able to use the maximum of Xenserver. Xen Orchestra is one of the more powerful clients for doing this. It is web based and runs on is own VM. In my case I am running XOA in my homelab on my TrueNAS server. The reason I am doing this, is that the memory on the XCP-ng host is very low only 8 GB. I will stay for production reasons with the XOA on my TrueNAS server.  The installation of the XOACE can also be done with a script from Github. The script is well done all the credits go to the maintainers.  https://github.com/ronivay/XenOrchestraInstallerUpdater I did a little video tutorial on how to start with the made VM with XOACE (Xen Orchestra Appliance Community Edition) from the same Github source and made it ready to use. The steps I did in the video: Login has root into the xcp-ng host Execute the following line  bash -c "$(curl -s https://raw.githubusercontent.com/ronivay/XenOrchestraInstallerUpdater/master/xo-appliance.sh)" Note: bash -c "...

What to do with the warning New ZFS version ... after the upgrade to TrueNAS?

This is the follow up on the upgrade of FreeNAS to TrueNAS CORE . Normally after upgrading to another train it is common that a new ZFS version can be used with the existing pools. A manual update has to be done. One thing very  important  is that a rollback to the previous version will not be possible. My  recommendation  is to use the  existing  ZFS for several days and if no problems occur to upgrade the ZFS file system for the pools used. Do not forget to have backup of your data, something can go nasty. In my case after reboot the pools were not showing there drives. A second reboot fixed everything What to do with the warning New ZFS version ... ?