Ultimate Guide: Installing & Optimizing Proxmox VE
Prepared By: Lâm Trịnh Chí Tài (Gyn)
From bare metal to a fully optimized virtualization host in 15 minutes.
1. Prerequisites
Before we begin, ensure you have the Proxmox VE ISO downloaded. Mount the ISO to a USB drive using tools like Rufus or Ventoy, plug it into your server, and boot from USB.
2. Core Installation Steps
Step 1: License Agreement. At the EULA screen, simple click "I Agree" to proceed.
Step 2: Target Disk. Select the physical hard drive where you want Proxmox installed. If you have multiple drives, use the dropdown menu to select the correct one.
Step 3: Localization. Set your Country, Time Zone, and Keyboard Layout.
Step 4: Credentials. Set a strong password for the root account and provide a valid email address for system notifications.
Step 5: Network Configuration. Assign a Hostname (FQDN) and set a Static IP. This IP will be your gateway to the Web GUI later.
Step 6: Finalize. Review your settings. Make sure to check "Automatically reboot after successful installation" and click Install.
3. First Login
After the server reboots, you will see a CLI login screen displaying your management URL.
Open your web browser and navigate to https://YOUR-IP:8006. Login using:
- Username: root
- Password: (The one you set earlier)
4. Pro Tip: Merge Partitions (Storage Optimization)
Step A: Remove local-lvm
Navigate to Datacenter > Storage. Select local-lvm and click Remove.
Step B: CLI Operations
Open the Shell from the top-right corner of the node view.
Run the following commands in order:
1. Remove the logical volume:
lvremove /dev/pve/data
(Type 'y' and Enter to confirm)
2. Resize the root volume to use all available space:
lvresize -l +100%FREE /dev/pve/root
3. Resize the filesystem to match the new volume size:
resize2fs /dev/mapper/pve-root
Step C: Verify Changes
Check your storage summary. You should now see a significant increase in the local storage capacity.
Step D: Reconfigure 'local' Storage
Go to Datacenter > Storage, select local and click Edit.
Under Content, ensure all types are selected (Disk image, ISO image, Container template, etc.) so you can store everything here.
5. Resource Management
Uploading ISO Images
To create VMs, you need ISO files (like Windows or Linux installers). Go to local > ISO Images > Upload.
Select your downloaded ISO file from your computer and upload it.
Downloading Container Templates (LXC)
For lightweight containers, use templates. Go to local > CT Templates > Templates.
Search for a template (e.g., "ubuntu") and click Download.
Wait for the "TASK OK" message.
Hướng dẫn Toàn tập: Cài đặt & Tối ưu hóa Proxmox VE
Hướng Dẫn Được Tạo Bởi: Lâm Trịnh Chí Tài (Gyn)
Từ máy chủ trắng đến hệ thống ảo hóa hoàn chỉnh chỉ trong 15 phút.
1. Chuẩn bị
Trước khi bắt đầu, hãy đảm bảo bạn đã tải file ISO Proxmox VE. Mount file ISO vào USB (dùng Rufus hoặc Ventoy), cắm vào máy chủ và khởi động từ USB.
2. Các bước Cài đặt Cốt lõi
Bước 1: Thỏa thuận bản quyền. Tại màn hình EULA, nhấn "I Agree" để tiếp tục.
Bước 2: Chọn ổ cứng. Chọn ổ cứng vật lý bạn muốn cài Proxmox. Nếu có nhiều ổ, hãy kiểm tra kỹ menu thả xuống.
Bước 3: Vị trí & Thời gian. Thiết lập Quốc gia (Country), Múi giờ (Time Zone) và Bàn phím.
Bước 4: Bảo mật. Đặt mật khẩu mạnh cho tài khoản root và nhập email để nhận thông báo hệ thống.
Bước 5: Cấu hình Mạng. Đặt Hostname (FQDN) và IP Tĩnh (Static IP). Đây sẽ là địa chỉ để bạn truy cập trang quản lý sau này.
Bước 6: Hoàn tất. Kiểm tra lại thông tin. Đảm bảo tích chọn "Automatically reboot after successful installation" rồi nhấn Install.
3. Đăng nhập lần đầu
Sau khi máy chủ khởi động lại, màn hình CLI sẽ hiện ra cùng địa chỉ URL quản lý.
Mở trình duyệt web và truy cập https://IP-CUA-BAN:8006. Đăng nhập với thông tin:
- Username: root
- Password: (Mật khẩu bạn đã đặt ở trên)
4. Mẹo chuyên gia: Gộp phân vùng (Tối ưu lưu trữ)
Bước A: Xóa local-lvm
Truy cập Datacenter > Storage. Chọn local-lvm và nhấn nút Remove.
Bước B: Thao tác dòng lệnh (CLI)
Mở cửa sổ Shell từ góc trên bên phải của giao diện node.
Chạy lần lượt các lệnh sau:
1. Xóa logical volume cũ:
lvremove /dev/pve/data
(Gõ 'y' và Enter để xác nhận)
2. Mở rộng root volume để chiếm toàn bộ dung lượng trống:
lvresize -l +100%FREE /dev/pve/root
3. Cập nhật file system để nhận diện dung lượng mới:
resize2fs /dev/mapper/pve-root
Bước C: Kiểm tra kết quả
Kiểm tra lại dung lượng lưu trữ. Bạn sẽ thấy phân vùng local đã tăng dung lượng đáng kể.
Bước D: Cấu hình lại 'local'
Vào Datacenter > Storage, chọn local và nhấn Edit.
Tại mục Content, hãy chọn tất cả các loại dữ liệu (Disk image, ISO image, Container template,...) để bạn có thể lưu mọi thứ ở đây.
5. Quản lý Tài nguyên
Upload file ISO
Để tạo máy ảo (VM), bạn cần file ISO (như bộ cài Windows hoặc Linux). Vào local > ISO Images > Upload.
Chọn file ISO từ máy tính của bạn và tải lên.
Tải Container Templates (LXC)
Để chạy các container nhẹ, hãy dùng Template. Vào local > CT Templates > Templates.
Tìm kiếm template (ví dụ: "ubuntu") và nhấn Download.
Đợi khi bảng log hiện "TASK OK" là hoàn tất.