place proper variables in xen notes

This commit is contained in:
2023-06-20 15:19:26 +02:00
parent d10c6b2f9e
commit e1d69bbcf2
2 changed files with 32 additions and 26 deletions

View File

@@ -4,17 +4,22 @@ tags: [ "Documentation", "xe", "virtualization", "volume" ]
---
# Make a local iso repository
```bash
mkdir -p */var/opt/xen/ISO_Store*
STORE_PATH=/var/opt/xen/ISO_Store
```
```bash
xe sr-create name-label=*LocalISO* type=iso device-config:location=*/var/opt/xen/ISO_Store* device-config:legacy_mode=true content-type=iso
mkdir -p $STORE_PATH
```
```bash
xe sr-create name-label="$STORAGE_NAME" type=iso device-config:location=$STORE_PATH device-config:legacy_mode=true content-type=iso
```
This creates a UUID for the new directory:
`e94e25bb-bcdc-801b-b62a-b51b686a3bdc`
> e94e25bb-bcdc-801b-b62a-b51b686a3bdc
# Main Console