kvm:start
Download and Install Proxmox
Download Proxmox VE
- Go to the official Proxmox website: Proxmox Downloads.
- Download the latest Proxmox VE ISO Installer.
Create a Bootable USB
- Use dd (Linux/macOS) to create a bootable USB.
Linux/macOS: Run the following command:
dd if=proxmox-ve.iso of=/dev/sdX bs=1M status=progress
*(Replace /dev/sdX with your actual USB device.)*
Install Proxmox VE
- Boot from the USB drive.
- Select Install Proxmox VE and follow the installation wizard.
- Configure:
- Target Disk: Select the disk for installation.
- Network: Set the hostname and IP address.
- Administrator Credentials: Create a root password.
- Unordered List ItemComplete the installation and reboot.
After installation, access Proxmox via the web UI: (Login using the root account and the password set during installation.)
Open a browser and navigate to:
https://your-proxmox-ip:8006
Creating a Container in Proxmox
Download a Template
- In the Proxmox web UI, navigate to Datacenter > Storage (local) > CT Templates.
- Click Templates, select a template (e.g.,
debian-12-standard), and Download.
Create a Container (CT)
- Go to Datacenter > Node > Create CT.
- Fill in the details:
- CT ID: Unique container ID.
- Hostname: Container name.
- Password: Set a root password.
- Template: Select the downloaded template.
- Resources: Set CPU, memory, and disk size.
- Network: Configure bridge (
vmbr0for LAN access).
- Click Finish to create the container.
Converting an Unprivileged Container to Privileged
By default, Proxmox creates unprivileged containers. Some applications, such as Samba (for extended attributes), require a privileged container. Since all CTs are unprivileged by default, they must be converted manually.
Steps to Convert an Unprivileged Container to Privileged
- Back Up the Container
- In the Proxmox UI, go to Datacenter > Node > Container (CT_ID) > Backup.
- Select a storage location and create a backup.
- Restore the Container as Privileged
- Go to Datacenter > Node > Storage > Backup.
- Select the backup file and click Restore.
- In the restore window, check the option “Privileged Container”.
- Click Restore to create the privileged container.
Now the container is privileged, allowing Samba to use extended attributes (xattrs) properly.
Note: Running a privileged container reduces security isolation, so use it only when necessary.
Creating a Debian 12 VM in Proxmox
Download the Debian 12 ISO
- Visit the official Debian website: Debian Downloads.
- Download the Debian 12 netinst ISO or the full installation ISO.
- Upload the ISO to Proxmox:
- Go to Datacenter > Node > Storage (local) > ISO Images.
- Click Upload and select the downloaded Debian 12 ISO.
Create a New Debian 12 VM
- In the Proxmox web UI, go to Datacenter > Node > Create VM.
- Fill in the details:
- VM ID: Unique ID for the virtual machine.
- Name: Set a descriptive name (e.g.,
debian12-server). - Click Next.
Select the Debian 12 ISO
- In the OS tab, select:
- Use CD/DVD Image: Choose the uploaded Debian 12 ISO.
- Guest OS Type: Select Linux and Debian 12.
- Click Next.
Configure System Settings
- System:
- Leave defaults unless a specific BIOS type (UEFI/Legacy) is needed.
- Disks:
- Select storage and allocate disk size (e.g.,
20GB). - Use VirtIO SCSI for better performance.
- CPU:
- Assign the number of cores (e.g.,
2).
- Memory (RAM):
- Allocate RAM (e.g.,
2048MBfor a basic setup).
- Network:
- Use the default bridge
vmbr0. - Select VirtIO for best performance.
Start the Installation
- Click Finish to create the VM.
- Start the VM and open the Console.
- Follow the Debian installation steps:
- Select language, region, and keyboard layout.
- Configure network (set hostname, domain).
- Partition disk (use Guided – use entire disk for simplicity).
- Set root password and create a user.
- Select software to install (e.g., SSH server).
- Complete installation and reboot.
Post-Installation Optimizations
- Install Proxmox Guest Utilities for better performance:
apt update && apt install qemu-guest-agent -y
- Enable the guest agent in Proxmox:
- Go to VM > Options.
- Enable QEMU Guest Agent.
Now the Debian 12 VM is fully installed and ready for use in Proxmox.
kvm/start.txt · Last modified: by caponato
