# Proxmox

Proxmox VE ist eine auf Debian basierende Open-Source-Virtualisierungsplattform zum Betrieb von virtuellen Maschinen mit einem Webinterface zur Einrichtung und Steuerung von x86-Virtualisierungen.

# LXC Container Root PW zurücksetzen

To reset the root password in an LXC container, you can use the lxc-attach command to gain access to the container’s shell, where you can then change the password.

1. Identify Your Container: First, list all available containers to identify the one you need to access:

```
lxc-ls --fancy
```

2. Attach to the Container: Use the lxc-attach command followed by the container name to attach to the container’s shell:

```
lxc-attach -n container_name
```

3. Reset the Root Password: Once attached, use the passwd command to change the root password:

```
passwd
```

You’ll be prompted to enter and confirm the new password.

1. Exit the Container: Type exit to leave the container shell.

# VMID ändern

### LVM-Thin

<p class="callout info">Backups werden bei diesen Schritten nicht umbennent und müssen manuell umbennent werden.</p>

<p class="callout warning">Bevor die nächsten Schritte durchgeführt werden. Muss die VM heruntergefahren werden.</p>

#### Anzeigen der virtuellen Disken

Mit dem Befehl `lvs` werden alle LVM Disken angezeigt:

```bash
lvs
```

```bash
LV             VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data           pve twi-aotz--   1.71t             13.67  0.54                            
  root           pve -wi-ao----  96.00g                                                    
  swap           pve -wi-ao----   8.00g                                                    
  vm-101-disk-0  pve Vwi-aotz--   4.00m data        14.06                                  
  vm-101-disk-1  pve Vwi-aotz-- 100.00g data        75.88                                  
  vm-101-disk-2  pve Vwi-aotz--   4.00m data        1.56                                   
  vm-1022-disk-3 pve Vwi-a-tz--   4.00m data        1.56                                   
  vm-1030-disk-0 pve Vwi-aotz--   4.00m data        14.06                                  
  vm-1030-disk-1 pve Vwi-aotz--  32.00g data        100.00                                 
  vm-1031-disk-0 pve Vwi-aotz--   4.00m data        14.06                                  
  vm-1031-disk-1 pve Vwi-aotz--  32.00g data        100.00                                 
  vm-1040-disk-0 pve Vwi-aotz--   4.00m data        14.06                                  
  vm-1040-disk-1 pve Vwi-aotz-- 100.00g data        100.00 
```

#### Umbennen einer Disk

Mit dem Befehl `lvrename` kann die Disk unbennt werden.

```bash
lvrename pve/vm-1022-disk-3 pve/vm-1040-disk-3
```

#### VM Konfiguration Datei anpassen

<p class="callout info">Diese Schritte können auch mit einem GUI durchgeführt werden. Bspw. WinSCP</p>

Anschliessend müssen nun die IDs der Disken in der `[vmid].conf` anngepasst werden, diese befindet sich im Pfad `/etc/pve/nodes/host/qemu-server`.

```
cd /etc/pve/nodes/epyc/qemu-server
ls
```

```
nano 1022.conf
```

Alle Disk Einträge müssen dann angepasst werden in unserem Beispiel sind es folgende:

```
efidisk0: local-lvm:vm-1040-disk-0,efitype=4m,format=raw,size=528K
scsi0: local-lvm:vm-1040-disk-1,cache=writeback,format=raw,iothread=1,size=100G,ssd=1
```

##### WinSCP

[![image.png](https://docs.corestream.ch/uploads/images/gallery/2024-10/scaled-1680-/znGdpwp4q35lz7Vb-image.png)](https://docs.corestream.ch/uploads/images/gallery/2024-10/znGdpwp4q35lz7Vb-image.png)

#### Konfigurationsdatei umbennen

Zum Schluss muss noch die Konfigurationsdatei selbst mit der auf die neue ID umbennent werden:

```
mv 1022.conf 1040.conf
```

### ZFS

**ZFS:**  
Hier heißt der Befehl `zfs list`. Der Name der VM sähe wahrscheinlich so in der Art aus:

<div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code" id="bkmrk-code%3A"><div class="bbCodeBlock-title">Code:</div><div class="bbCodeBlock-content" dir="ltr"></div></div>```
NAME                            USED  AVAIL  REFER  MOUNTPOINT
rpool/data/vm-100-disk-0       56K   736G    56K  -
```

  
Und lässt sich mit `zfs rename` umbenennnen:

<div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code" id="bkmrk-code%3A-1"><div class="bbCodeBlock-title">Code:</div><div class="bbCodeBlock-content" dir="ltr"></div></div>```
zfs rename rpool/data/vm-101-disk-0 rpool/data/vm-1001-disk-0
```

# Backup Log bereinigen

[https://forum.proxmox.com/threads/cleaning-up-log-files-from-old-backups.22929/](https://forum.proxmox.com/threads/cleaning-up-log-files-from-old-backups.22929/)

[![image.png](https://docs.corestream.ch/uploads/images/gallery/2025-01/scaled-1680-/AmG34ogy0XO7C8BM-image.png)](https://docs.corestream.ch/uploads/images/gallery/2025-01/AmG34ogy0XO7C8BM-image.png)

# Proxmox Backup Server

# How To: Setup Synology NFS for Proxmox Backup Server Datastore

[https://www.derekseaman.com/2023/04/how-to-setup-synology-nfs-for-proxmox-backup-server-datastore.html](https://www.derekseaman.com/2023/04/how-to-setup-synology-nfs-for-proxmox-backup-server-datastore.html)

# Cluster Node entfernen



# Cluster auflösen



# VM- und LXC-Konfiguration aus dem RAM wiederherstellen



# Extend LVM after VM Disk resize

<div class="n6owBd awi2gc" data-hveid="CAEQAA" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" id="bkmrk-to-extend-lvm-in-a-l" jsaction="" jscontroller="TDBkbc" jsuid="V4OGbe_s"><span data-processed="true" data-subtree="aimfl,mfl">To extend LVM in a Linux VM after a disk resize in Proxmox, resize the partition, expand the Physical Volume (</span><div data-processed="true" data-xpm-copy-root="">![](https://docs.corestream.ch/uploads/images/gallery/2026-04/pqHUzXCufVUEbxAx-embedded-image-psxz6jly.gif)<div data-processed="true">  
</div></div>), and extend the Logical Volume ( <div data-processed="true" data-xpm-copy-root="">![](https://docs.corestream.ch/uploads/images/gallery/2026-04/eqxzPtjig8OLSYXw-embedded-image-hfzj0jux.gif)<div data-processed="true">  
</div></div>). The core commands to run inside the VM are `growpart /dev/sda 2` (adjust device), `pvresize /dev/sda2`, and `lvresize -l +100%FREE /dev/mapper/vg-lv`.<span class="uJ19be notranslate" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_z,V4OGbe_10"><span class="vKEkVd" data-animation-atomic="" data-processed="true" data-wiz-attrbind="class=V4OGbe_y/TKHnVd"><span aria-hidden="true" data-processed="true"> </span><button aria-label="Proxmox Support Forum (+2) – Zugehörige Links ansehen" class="rBl3me IWyTpf pjvauc" data-amic="true" data-hveid="CAEQAw" data-icl-uuid="a10afb9b-e360-4524-9925-6624d2fee588" data-processed="true" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQye0OegQIARAD" data-wiz-attrbind="disabled=V4OGbe_y/C5gNJc;aria-label=V4OGbe_y/bOjMyf;class=V4OGbe_y/UpSNec" tabindex="0"></button></span></span><div class="Fwa2Od" data-animation-skip="" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQ3s0SegQIARAE" jsaction="" jscontroller="Pwlgo" jsuid="V4OGbe_11">  
</div></div><div class="Fsg96" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" id="bkmrk-" jsaction="rcuQ6b:&V4OGbe_1j|npT2md" jscontroller="KHhJQ" jsuid="V4OGbe_1j">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" id="bkmrk-steps-to-extend-lvm-" jsaction="" jscontroller="a7qCn" jsuid="V4OGbe_1k" role="heading">Steps to Extend LVM After Proxmox Disk Resize<span class="txxDge notranslate" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_1m,V4OGbe_1n"><span class="vKEkVd" data-animation-atomic="" data-processed="true" data-wiz-attrbind="class=V4OGbe_1l/TKHnVd"><button aria-label="Zugehörige Links ansehen" class="rBl3me" data-amic="true" data-hveid="CAIQAA" data-icl-uuid="48b9668e-02a9-4ef5-8765-c51658baf1ac" data-processed="true" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQye0OegQIAhAA" data-wiz-attrbind="disabled=V4OGbe_1l/C5gNJc;aria-label=V4OGbe_1l/bOjMyf;class=V4OGbe_1l/UpSNec" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true"><svg fill="currentColor" focusable="false" height="12px" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>1. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Resize Disk in Proxmox:** Go to the VM's **Hardware** tab, select the hard disk, click **Resize**, and add the desired amount.</span>
2. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Scan for New Space (Inside VM):** The VM might not see the space immediately. Rescan the SCSI bus:</span><div class="r1PmQe" data-hveid="CAMQAg" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_1z,V4OGbe_1y" jsaction="" jscontroller="HP6Sjf" jsuid="V4OGbe_1x"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash <div data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQh9gSegQIAxAE" jsaction="" jscontroller="cXTEid" jsuid="V4OGbe_20"><button aria-label="Codetext in Zwischenablage kopieren." class="FTsWP RmjGdc IsqrXb" data-processed="true" data-sfc-cb="KjsqPd=&V4OGbe_20:UEmoBd" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="disabled=V4OGbe_21/ggNWmb" id=""><span aria-hidden="true" class="I36Cje" data-processed="true"><svg aria-hidden="true" data-sfc-cb="" data-sfc-root="c" fill="currentColor" height="18px" jsaction="" jscontroller="ZfypCb" jsuid="V4OGbe_24" viewbox="0 -960 960 960" width="18px"></svg></span></button></div></div><div class="pCTyYe" data-processed="true" dir="ltr"></div></div></div></div>```
    echo 1 > /sys/class/block/sda/device/rescan
    # Replace sda with your disk identifier found via lsblk
    
    ```
3. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Expand Partition (If needed):** Use `growpart` to expand the partition containing the LVM PV. For example, if LVM is on `/dev/sda2`:</span><div class="r1PmQe" data-hveid="CAMQBg" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_2d,V4OGbe_2c" jsaction="" jscontroller="HP6Sjf" jsuid="V4OGbe_2b"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash <div data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQh9gSegQIAxAI" jsaction="" jscontroller="cXTEid" jsuid="V4OGbe_2e"><button aria-label="Codetext in Zwischenablage kopieren." class="FTsWP RmjGdc IsqrXb" data-processed="true" data-sfc-cb="KjsqPd=&V4OGbe_2e:UEmoBd" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="disabled=V4OGbe_2f/ggNWmb" id=""><span aria-hidden="true" class="I36Cje" data-processed="true"><svg aria-hidden="true" data-sfc-cb="" data-sfc-root="c" fill="currentColor" height="18px" jsaction="" jscontroller="ZfypCb" jsuid="V4OGbe_2i" viewbox="0 -960 960 960" width="18px"></svg></span></button></div></div><div class="pCTyYe" data-processed="true" dir="ltr"></div></div></div></div>```
    growpart /dev/sda 2
    
    ```
    
    <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">*If `growpart` is not installed, use `apt install cloud-utils-growpart` or `yum install cloud-utils-growpart`*.</span>
4. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Resize Physical Volume (PV):** Tell LVM the partition is larger:</span><div class="r1PmQe" data-hveid="CAMQCg" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_2u,V4OGbe_2t" jsaction="" jscontroller="HP6Sjf" jsuid="V4OGbe_2s"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash <div data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQh9gSegQIAxAM" jsaction="" jscontroller="cXTEid" jsuid="V4OGbe_2v"><button aria-label="Codetext in Zwischenablage kopieren." class="FTsWP RmjGdc IsqrXb" data-processed="true" data-sfc-cb="KjsqPd=&V4OGbe_2v:UEmoBd" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="disabled=V4OGbe_2w/ggNWmb" id=""><span aria-hidden="true" class="I36Cje" data-processed="true"><svg aria-hidden="true" data-sfc-cb="" data-sfc-root="c" fill="currentColor" height="18px" jsaction="" jscontroller="ZfypCb" jsuid="V4OGbe_2z" viewbox="0 -960 960 960" width="18px"></svg></span></button></div></div><div class="pCTyYe" data-processed="true" dir="ltr"></div></div></div></div>```
    pvresize /dev/sda2
    
    ```
5. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Extend Logical Volume (LV):** Extend the LVM to use all new free space:</span><div class="r1PmQe" data-hveid="CAMQDg" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_36,V4OGbe_35" jsaction="" jscontroller="HP6Sjf" jsuid="V4OGbe_34"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash <div data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQh9gSegQIAxAQ" jsaction="" jscontroller="cXTEid" jsuid="V4OGbe_37"><button aria-label="Codetext in Zwischenablage kopieren." class="FTsWP RmjGdc IsqrXb" data-processed="true" data-sfc-cb="KjsqPd=&V4OGbe_37:UEmoBd" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="disabled=V4OGbe_38/ggNWmb" id=""><span aria-hidden="true" class="I36Cje" data-processed="true"><svg aria-hidden="true" data-sfc-cb="" data-sfc-root="c" fill="currentColor" height="18px" jsaction="" jscontroller="ZfypCb" jsuid="V4OGbe_3b" viewbox="0 -960 960 960" width="18px"></svg></span></button></div></div><div class="pCTyYe" data-processed="true" dir="ltr"></div></div></div></div>```
    lvextend -l +100%FREE /dev/mapper/vgname-lvname
    # Use 'lvs' to find your correct volume group/logical volume name
    
    ```
6. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Resize Filesystem:** Update the filesystem to use the new space.</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**For ext4:** `resize2fs /dev/mapper/vgname-lvname`</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**For XFS:** `xfs_growfs /`</span>