lk/virtualization/xen/xen_basics.md

44 lines
554 B
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
2022-02-04 08:24:02 +00:00
title: "Xen Volume Management"
tags: [ "Documentation", "xe", "virtualization", "volume" ]
2022-01-16 18:20:39 +00:00
---
2020-01-02 00:04:35 +00:00
# Make a local iso repository
2023-06-20 13:19:26 +00:00
```bash
STORE_PATH=/var/opt/xen/ISO_Store
```
```bash
2023-06-20 13:19:26 +00:00
mkdir -p $STORE_PATH
```
2020-01-02 00:04:35 +00:00
```bash
2023-06-20 13:19:26 +00:00
xe sr-create name-label="$STORAGE_NAME" type=iso device-config:location=$STORE_PATH device-config:legacy_mode=true content-type=iso
```
2020-01-02 00:04:35 +00:00
This creates a UUID for the new directory:
2023-06-20 13:19:26 +00:00
> e94e25bb-bcdc-801b-b62a-b51b686a3bdc
2020-01-02 00:04:35 +00:00
2020-02-24 08:46:06 +00:00
# Main Console
```bash
xsconsole
```
2020-02-24 08:46:06 +00:00
# Volumes
List volumes:
```bash
lvs
```
2020-02-24 08:46:06 +00:00
List groups:
```bash
vgs
```
2020-01-02 00:04:35 +00:00