Skip to content

Instantly share code, notes, and snippets.

@reypm
Last active March 27, 2025 13:54
Show Gist options
  • Save reypm/a50eec9173b7cb1aebfd7b40092b17e2 to your computer and use it in GitHub Desktop.
Save reypm/a50eec9173b7cb1aebfd7b40092b17e2 to your computer and use it in GitHub Desktop.
Increase LVM (Ubuntu)

To enable root SSH login in Ubuntu, edit the /etc/ssh/sshd_config file, change the line PermitRootLogin to yes (or uncomment it if it's commented out), save the file, and restart the SSH service using sudo systemctl restart sshd.service.

  • Open the SSH Configuration File:
  • Use a text editor with root privileges to open the sshd_config file: sudo nano /etc/ssh/sshd_config

Find the PermitRootLogin Line

  • Locate the line that starts with PermitRootLogin. It might be commented out with a # at the beginning. Modify the Value:
    • If the line is commented out, remove the # at the beginning.
    • Change the value from prohibit-password (or whatever it is) to yes. The line should look like this: PermitRootLogin yes.
  • Save the Changes:
  • Save the file (Ctrl+X, then Y, then Enter in nano).
  • Restart the SSH Service:
    • Restart the SSH service to apply the changes: sudo systemctl restart sshd.service.
    • You can also use sudo service ssh restart.

Do the following to increase volume size.

Increase/resize disc from GUI console @see https://unix.stackexchange.com/questions/697237/expand-logical-volume-ubuntu-on-proxmox

  • Identify Linux partition:
sudo fdisk -l
  • Extend physical drive partition
growpart /dev/sda 3
  • Instruct LVM that disk size has changed
sudo pvresize /dev/sda3
  • Find Entry with starting LV
lvdisplay
  • Resize LV
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv

@see https://bobcares.com/blog/proxmox-no-qemu-guest-agent-configured/ @see https://pve.proxmox.com/wiki/Qemu-guest-agent

How to Fix the “No QEMU Guest Agent Configured” Message

First, enable QEMU Guest Agent on Proxmox during VM creation or configuration. So, go to the VM configuration menu in Proxmox VE. Then, go to the Options tab and find the checkbox for "Qemu Agent." Make sure this this checkbox is enabled for this specific VM. However, if we are creating a new VM, enable the checkbox during the VM creation process. Then, click “Save” to apply the changes. Next, we need to install and enable the QEMU Guest Agent within the guest operating system. Here are the steps for common Linux distributions:

// Debian/Ubuntu:
sudo apt update
sudo apt install qemu-guest-agent

// CentOS/RHEL:
sudo yum update
sudo yum install qemu-guest-agent

Once installed, enable and start the Guest Agent service:

// Systemd (Most Modern Linux Distros):
sudo systemctl enable qemu-guest-agent
sudo systemctl start qemu-guest-agent

// SysVinit (Older Linux Distros):
sudo chkconfig qemu-guest-agent on
sudo service qemu-guest-agent start

In some cases, a VM reboot can resolve any issues that prevent the Guest Agent from starting correctly. The above steps will help us fix the “No QEMU Guest Agent configured” message in Proxmox VE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment