Impostazioni iniziali nodo

Novembre 30, 2020 By luca@studiomondello.eu

Comando ll = ls -lhA

echo "alias ll='ls -lhA'" >> ~/.bashrc

Proxmox 7 Repository no-subscription

deb http://ftp.it.debian.org/debian bullseye main contrib

deb http://ftp.it.debian.org/debian bullseye-updates main contrib/p>

# security updates/p>

deb http://security.debian.org bullseye-security main contrib/p>

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

Settare quorum a 1

pvecm expected 1

Pacchetti utili

apt install vim htop iotop bwm-ng ethtool screen ifupdown2 lshw parted sysstat -y

Eliminare LVM ed Espandere Local

lvremove /dev/pve/data

lvresize -l +100%FREE /dev/pve/root

resize2fs /dev/mapper/pve-root

Conversione da vmdk a qcow2

qemu-img convert -p -f vmdk -O qcow2 /mnt/pve/datastore/MacchinaVirtuale/disco.vmdk /mnt/pve/ds1618ssd/images/100/vm-100-disk-0.qcow2

Aggiorna Elenco Dischi

qm rescan

Shrink Disk

qemu-img convert -O qcow2 vm-100-disk-1.qcow2 discoshrinkato.qcow2

NFS Server

apt install nfs-kernel-server

echo "/mnt/pve/Datastore 192.168.1.0/255.255.255.0(rw,no_root_squash,subtree_check)" >> /etc/exports

exportfs -a

/etc/init.d/nfs-kernel-server reload