netstack

documents index

xcp-ng

Install server

  1. Use Install xcp-ng Homepage USB key to boot and install
    • Server Name: nsgXX
    • Special: xxxx#xxxxst
    • IP: DHCP (MAC tied to IP via DHCP later)
  2. GUI Admin
    • ssh into system and yum update reboot LT-video ```bash cat@cats-Mac-mini ~ % ssh root@192.168.2.38 root@192.168.2.38’s password: Last login: Tue Sep 22 21:34:28 2020 from cats-mac-mini [08:19 nsg01 ~]# yum upgrade Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Excluding mirror: updates.xcp-ng.org
    • xcp-ng-base: mirrors.xcp-ng.org Excluding mirror: updates.xcp-ng.org
    • xcp-ng-updates: mirrors.xcp-ng.org No packages marked for update [08:20 nsg01 ~]# shutdown -r now ```
    • Checkout the console
      [08:20 nsg01 ~]# xsconsole
      
    • XOA Appliance install
      bash -c "$(curl -s http://xoa.io/deploy)"
      
    • XOA Quick Deploy https://192.168.2.38 go to the just installed servers webpage LT-video
    • Windows xenadmin Client XOA github NOTE: Not good with 8.1 and is lacking upgrades
    • XOA build from source Tutorial - How To Build Xen Orchestra From Source Using XenOrchestraInstallerUpdater

Create local ISO repository xcp-ng doc

  1. ssh to ng01 server create Local_ISO directory and pull down small debian LT-video
    [08:20 nsg01 ~]# cd /
    [08:55 nsg01 /]# mkdir Local_ISO
    [08:55 nsg01 /]# cd Local_ISO/
    [08:55 nsg01 Local_ISO]# pwd
    /Local_ISO
    [09:11 nsg01 Local_ISO]# wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.5.0-amd64-netinst.iso
    --2020-09-23 09:14:15--  https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.5.0-amd64-netinst.iso
    Resolving cdimage.debian.org (cdimage.debian.org)... 194.71.11.173, 194.71.11.165, 2001:6b0:19::173, ...
    Connecting to cdimage.debian.org (cdimage.debian.org)|194.71.11.173|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://caesar.ftp.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-10.5.0-amd64-netinst.iso [following]
    --2020-09-23 09:14:16--  https://caesar.ftp.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-10.5.0-amd64-netinst.iso
    Resolving caesar.ftp.acc.umu.se (caesar.ftp.acc.umu.se)... 194.71.11.142, 2001:6b0:19::142
    Connecting to caesar.ftp.acc.umu.se (caesar.ftp.acc.umu.se)|194.71.11.142|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 365953024 (349M) [application/x-iso9660-image]
    Saving to: ‘debian-10.5.0-amd64-netinst.iso’
    100%[================================================================================================================================>] 365,953,024 7.18MB/s in 29s 
    2020-09-23 09:14:47 (12.2 MB/s) - ‘debian-10.5.0-amd64-netinst.iso’ saved [365953024/365953024]
    [09:14 nsg01 Local_ISO]#
    
  2. Go to XOA - New - Storage and create Local ISO storage LT-video
    • Host: nsg01
    • Name: Local ISO
    • Description: Small ISO storage for server bootstrap
    • Select Storge Type: ISO SR - Local
    • Path: /Local_ISO
    • Click Create
  3. Verify iso XOA - Home - Storages - Local ISO - Disk to verify debian iso

Add Remote Storage

  1. Go to XOA - New - Storage and create FreeNAS NFS storage LT-video
    • Host: nsg01
    • Name: FreeNAS NFS
    • Description: FreeNAS NFS storage on local network
    • Select Storge Type: VDI SR - NFS
    • Server: 192.168.2.83
    • Path: (should query the server) /mnt/nspool/
    • Click Create

Add Local Disks

Notes

Tutorials

Setup disk on hsg03

root@192.168.1.123's password: 
Last login: Mon May 25 20:20:31 2020 from 192.168.1.120
[17:01 hsg03 ~]# ls
CentOS-7-x86_64-DVD-2003.iso
[17:01 hsg03 ~]# lsblk
NAME                                                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb                                                               8:16   0 136.7G  0 disk 
├─sdb2                                                            8:18   0   512M  0 part 
├─sdb3                                                            8:19   0 136.2G  0 part 
└─sdb1                                                            8:17   0  1007K  0 part 
sda                                                               8:0    0 136.7G  0 disk 
├─sda4                                                            8:4    0   512M  0 part 
├─sda2                                                            8:2    0    18G  0 part 
├─sda5                                                            8:5    0     4G  0 part /var/log
├─sda3                                                            8:3    0  95.2G  0 part 
│ └─VG_XenStorage--b4394697--21e5--f609--94dc--97817d48b2c3-MGT 253:0    0     4M  0 lvm  
├─sda1                                                            8:1    0    18G  0 part /
└─sda6                                                            8:6    0     1G  0 part [SWAP]
[17:04 hsg03 ~]# xe host-list
uuid ( RO)                : 9d41f57b-2da4-492d-8a7e-79309ec72ac7
          name-label ( RW): hsg03
    name-description ( RW): Default install


uuid ( RO)                : de0ae348-63d3-402f-aeba-04091be1bca9
          name-label ( RW): hsg02
    name-description ( RW): Default install


uuid ( RO)                : 7749899f-1c7b-465f-9123-4e0dc59077b0
          name-label ( RW): hsg08
    name-description ( RW): Default install


uuid ( RO)                : 5f64dbdf-781e-4b86-be03-6be544870402
          name-label ( RW): hsg04
    name-description ( RW): Default install


[17:05 hsg03 ~]# xe sr-create host-uuid=9d41f57b-2da4-492d-8a7e-79309ec72ac7  name-label=hsg03d2 shared=false device-config:device=/dev/sdb type=lvm content-type=user
729d3457-7a10-17d8-0e8f-68bd0042b712
[17:06 hsg03 ~]#