=====Proxmox======
====Setup====
apt install sudo
apt-get install bash-completion
====Alias====
Add to "/etc/bash.bashrc":
#custom
alias ll='ls -alh'
alias ..='cd ..'
alias ...='cd ../..'
alias ss='sudo su -'
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
====Repository====
"/etc/apt/sources.list.d/pve-no-subscription.list":
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
"/etc/apt/sources.list.d/pve-enterprise.list":
#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
====Recommended====
The os-prober package scans all the partitions of your host including those of you guests VMs to create dual-boot GRUB entries. If you didn't install Proxmox VE as a dual boot besides another Operating System you can safely remove the os-prober package.
apt remove os-prober
====Misc====
Sophos UTM
====Install on Debian====
https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Stretch
https://pve.proxmox.com/wiki/ZFS_on_Linux#_zfs_administration
https://blog.programster.org/zfs-cheatsheet
===ZFS===
https://github.com/zfsonlinux/zfs/wiki/Debian
apt install --yes dpkg-dev pve-headers-$(uname -r) linux-image-amd64
#apt install --yes dpkg-dev linux-headers-$(uname -r) linux-image-amd64
apt-get install zfs-dkms zfsutils-linux
/sbin/modprobe zfs
/sbin/zpool list -HpPLo name,size,alloc,free,frag,dedup,health
zpool import #show available pools
zpool import zfsdata0 #import pool "zfsdata0"
zpool status #show status
zpool iostat -v #show details
zpool list #show zfs pools, size, usage
zpool scrub zfsdata0 #
Example:
zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zfsdata0 928G 29.2G 899G - 6% 3% 1.00x ONLINE -
pvesm zfsscan
pvesm list zfsdata0
==Disks==
zfs list #show disks
zfs destroy zfsdata0/vm-102-disk-1 #delete disk "zfsdata0/vm-102-disk-1" in pool "zfsdata0"
====Path====
^Use^Path in "/var/lib/vz/*"^
|VM images |images//|
| ISO images |template/iso/|
| Container templates |template/cache/|
|Backup files |dump/|
|Snippets |snippets/|
====VM====
VM´s configuration files are stored in:
/etc/pve/qemu-server
Controll:
qm list #show all vm´s, info and status
qm stop 102 #stop vm with ID 102
qm start 102 #start vm with ID 102
qm status 102 #status
====Storage====
Storage information stored in:
/etc/pve/storage.cfg
Example:
zfspool: zfsdata0
pool zfsdata0
content rootdir,images
sparse 1
Commands:
pvesm status #show storage pool
Check also on:
https://pve.proxmox.com/wiki/Storage
====Network====
# /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto enp4s0
iface enp4s0 inet static
address 192.168.2.2
netmask 255.255.255.0
gateway 192.168.2.2
broadcast 192.168.2.255
network 192.168.2.0
dns-nameservers 192.168.2.2
dns-search local
# dns-* options are implemented by the resolvconf package, if installed
auto eno1
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.1.2
netmask 24
bridge-ports eno1
bridge-stp off
bridge-fd 0
====Commands====
pveversion -v
cat /etc/pve/nodes/${HOSTNAME}/qemu-server/100.conf
====Links====
https://hope-this-helps.de/serendipity/archives/archives/Proxmox-Qemu-konvertieren-einer-HDD-611.html