• Home
    • English
    • 中文
  • About Us
  • Services
    • SEO Services
    • Website Design Service
  • Projects
  • Docs
  • Blog
    • Affiliate
    • Ecommerce
    • Frontend
    • linux
      • nginx
    • PHP
      • Magento
      • wordpress
    • Python
    • SEO
    • Web
  • Contact Us

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

What's Hot

Design a plugin for wordpress woocommerce to display a tab to show attachment download

2024-04-06

TranslatePress v2.6.9 – WordPress Translation Plugin

2023-12-25

A Linux batch script converting pictures to webp format

2023-07-10
Facebook Twitter Instagram
  • 中文
  • English
Facebook Twitter Instagram Pinterest VKontakte
Weilai Tech Weilai Tech
  • Home
    • English
    • 中文
  • About Us
  • Services
    • SEO Services
    • Website Design Service
  • Projects
  • Docs
  • Blog
    • Affiliate
    • Ecommerce
    • Frontend
    • linux
      • nginx
    • PHP
      • Magento
      • wordpress
    • Python
    • SEO
    • Web
  • Contact Us
Weilai Tech Weilai Tech
Home»virtualization»Add and Use ISO Library Storage Repository in Xen XCP-ng
virtualization

Add and Use ISO Library Storage Repository in Xen XCP-ng

OxfordBy Oxford2021-12-26No Comments3 Mins Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
Share
Facebook Twitter LinkedIn Pinterest Email
https://computingforgeeks.com/add-and-use-iso-library-storage-repository-xen-xcp-ng/

In our previous articles we walked you through the installation of XCP-ng Hypervisor and how to manage XCP-ng Hypervisor with XenCenter | XCP-ng Center. Once the hypervisor and management from XenCenter is configured, configuration of networking and storage repositories can be performed. In Xen virtualization Storage Repository is the place for your VM disks (VDI SR) and storage of  ISO files. In this guide we look at how you can configure ISO Library Storage Repository in Xen and upload some ISO files to it.

There are two types of ISO SR that can be configured in Xen:

  • NFS ISO – This SR type handles CD images stored as files in ISO format available as an NFS share.
  • Windows File Sharing (SMB/CIFS) – This SR type handles CD images stored as files in ISO format available as a Windows (SMB/CIFS) share.

Configure new ISO Storage Repository in Xen

We’ll be using XenCenter/XCP-ng Center in this setup but Xen Orchestra can also be used to achieve the same.

NFS Server is needed for the storing ISO images. We’ll configure NFS share on a Linux server.

Step 1: Install NFS Server

Use the commands below to install NFS Server on Ubuntu / Debian system:

# Debian / Ubuntu
sudo apt update
sudo apt install nfs-kernel-server -y

Install NFS Server on CentOS 8 / CentOS 7:

sudo yum -y install nfs-utils

Once NFS Server is installed use the commands below to enable the service:

sudo systemctl enable --now rpcbind nfs-server

Step 2: Configure NFS Share

Create ISO Library directory in your NFS Server:

sudo mkdir -p /mnt/isos

Configure NFS Share by editing the file /etc/exports

$ sudo vim /etc/exports
# Examples
/mnt/isos *(rw,no_root_squash,no_subtree_check) #Allow access from any IP
/mnt/isos 192.168.20.0/24(rw,no_root_squash,no_subtree_check) #Allow access only from hosts in subnet 192.168.20.0/24
/mnt/isos 192.168.20.10/24(rw,no_root_squash,no_subtree_check) #Allow access only from single host IP 192.168.20.10

Export your shares

$ sudo exportfs -rrv
exporting 192.168.20.0/24:/mnt/isos

On CentOS NFS Server

If you have Firewalld running allow NFS service:

$ sudo firewall-cmd --add-service=nfs --permanent
$ sudo firewall-cmd --reload

#If use NFSv3 allow the following
$ sudo firewall-cmd --add-service={nfs3,mountd,rpc-bind} --permanent
$ sudo firewall-cmd --reload

Step 3: Add ISO Storage Repository

Open your XenCenter/XCP-ng Center console and click “Storage” > “New SR” on the toolbar.

Configure ISO Library Storage Repository Xen XCP ng 01

In the next screen choose “ISO library“

Configure ISO Library Storage Repository Xen XCP ng 02 02

Give the storage repository a name. The default can be used without renaming.

Configure ISO Library Storage Repository Xen XCP ng 03 02

Enter NFS share path inside “Share Name” box. Example: 192.168.20.2:/mnt/isos

Where:

  • 192.168.20.2 is the IP Address of NFS server
  • /mnt/isos is the path to ISO files directory as exported in NFS server.
Configure ISO Library Storage Repository Xen XCP ng 04 02

For Windows File Sharing SMB/CIFS the share name will have format like \server\sharename

Confirm storage repository has been added and visible.

Configure ISO Library Storage Repository Xen XCP ng uuid

Step 4: Add ISO files to NFS share

Let’s download some ISO files to the NFS share.

Switch to nfs share directory:

sudo su -
cd /mnt/isos

Download ISO files to the directory. See below examples;

# Ubuntu 20.04 ISO
wget https://releases.ubuntu.com/20.04.2/ubuntu-20.04.2-live-server-amd64.iso

# CentOS 8 Stream Minimal ISO
wget http://centos.mirror.liquidtelecom.com/8-stream/isos/x86_64/CentOS-Stream-8-x86_64-20210406-boot.iso

# Debian 10 netinstall ISO
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.9.0-amd64-netinst.iso

Confirm if ISO files can be seen on the XCP-ng server end:

Configure ISO Library Storage Repository Xen XCP ng 06

In our next guide we’ll discuss installation of Linux and Windows virtual machines from the ISO files in the ISO Library.

More guides on Virtualization:

 Configure NFS Filesystem as OpenNebula Datastores

How To Add Compute Host to oVirt Virtualization

OpenNebula LXD Node Installation on Debian

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Avatar photo
Oxford

Related Posts

how to use docker to run php5.6 plus apache

2023-05-15

Running the Apache HTTP Server with PHP inside Docker

2023-05-15

Compile a Jekyll project without installing Jekyll or Ruby by using Docker

2022-01-07

run jekyll on docker

2022-01-06
Recent Posts
  • Design a plugin for wordpress woocommerce to display a tab to show attachment download
  • TranslatePress v2.6.9 – WordPress Translation Plugin
  • A Linux batch script converting pictures to webp format
  • Hearing aid listed company official website SEO case
  • how to use docker to run php5.6 plus apache
December 2021
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Oct   Jan »
Tags
app branding design digital Docly docs etc faq fix github Helpdesk Image issue magento Manual marketing memecached Photography planing seo sequrity tips Travel ui/ux web WordPress 爬虫
Editors Picks
About Us

Guangzhou Weilai Technology is a foreign trade integrated marketing service provider focusing on Google as the drainage center and marketing self-built website as the carrier.

Email Us: [email protected]
Contact: +86 18676917505

Facebook Pinterest YouTube LinkedIn
Recent Posts
  • Design a plugin for wordpress woocommerce to display a tab to show attachment download
  • TranslatePress v2.6.9 – WordPress Translation Plugin
  • A Linux batch script converting pictures to webp format
  • Hearing aid listed company official website SEO case
  • how to use docker to run php5.6 plus apache
From Flickr
Website Design Case
© 2024 Copyright by Guangzhou Weilai Technology Co.,Ltd..
  • Home
  • About Us
  • SEO Services
  • Website Design Service
  • Projects
  • Blog
  • Contact Us

Type above and press Enter to search. Press Esc to cancel.