Festplatte zu CT hinzufügen

Lockslay

Member
Nov 27, 2020
115
1
23
50
Hallo zusammen,

ich habe als CT ein Templat für nextcloud installiert und eingerichtet.
Jetzt wollte ich eine Festplatte hinzufügen und diese als Datenplatte für meine Nextcloud nutzen.

Bei einer VM habe ich das schonmal eingerichtet.

## Festplatten anzeigen ##
lsblk

## Disk-ID der gewünschten Festplatte herausfinden ##
ls -la /dev/disk/by-id/

## Festplatte der entsprechenden VM per Befehl zuweisen ##
qm set 101 -scsi1 /dev/disk/by-id/ata-WDC_....

## Platte in GUI Übersicht der VM anzeigen ##

#### Proxmox HDD an LXC durchreichen ####

## Create GPT Table ##
parted /dev/sda "mklabel gpt"

## Create partition on disk ##
parted /dev/sda "mkpart primary ext4 1M -1"

## Create Datasystem on drive ##
mkfs -t ext4 /dev/sda1

## Create Mount Directory ##
mkdir /media/disk

## mounf via fstab##
nano /etc/fstab

/dev/sda1 /media/disk ext4 defaults 0 1

Aber bei einem Container habe ich da meine Probleme, wie kann ich meiner Nextcloud eine Festpalatte hinzufügen?

Gruß Lockslay
 
Hallo,

was ist den ein "unprivilegierter Container?" Ich habe ein LXC im Standart eingerichtet.
 
Der LXC ist unprivilegiert wenn du beim Erstellen nicht den Haken bei der Checkbox "unprivileged container" entfernt hast.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!