[08:20 nsg01 ~]# xsconsole
bash -c "$(curl -s http://xoa.io/deploy)"
[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]#
fdisk -l
lsblk
cfdisk /dev/sdc
xe host-list
xe sr-create host-uuid<hostid> name-label=<nameLabel> shared=false device-config:device=<devicePath> type=lvm content-type=user
xe sr-create host-uuid=7749xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxb0 name-label-"hsg04d2" shared=false device-config=/dev/sdb type=lvm content-type=user
lsblk
cfdisk /dev/sdc
xe host-list
cd /srv/
mkdir pass_drives
cd pass_drives
ln -s /dev/sdc
xe sr-create name-label=Pass_Drives type=udev content-type=disk device-config:location=/srv/pass_drives
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 ~]#