Install Proxmox VE on Debian Squeeze: Difference between revisions
(updated to eliminate errors) |
A.lauterer (talk | contribs) (add note that this is for an old outdated version) |
||
(38 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{Note|Article about Proxmox VE 2. | {{Note|Article about the old stable Proxmox VE 2.x releases}} | ||
== Introduction == | |||
=Introduction= | The installation of a supported Proxmox VE server should be done via [[Bare-metal_ISO_Installer]]. In some case it makes sense to install Proxmox VE on top of a running Debian Squeeze 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Squeeze ISO was used: [http://cdimage.debian.org/debian-cd/6.0.7/amd64/iso-cd/debian-6.0.7-amd64-netinst.iso PC Network Installer v6.0.7]. | ||
The installation of a supported Proxmox VE server should be done via [[Bare-metal_ISO_Installer]]. In some case it makes sense to install Proxmox VE on top of a running Debian Squeeze 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Squeeze ISO was used: [http://cdimage.debian.org/debian-cd/6.0. | |||
Suggested partition layout with LVM: | Suggested partition layout with LVM: | ||
Line 12: | Line 11: | ||
LVM: | LVM: | ||
LV VG Attr LSize Origin Snap% Move Log Copy% Convert | LV VG Attr LSize Origin Snap% Move Log Copy% Convert | ||
data pve -wi-ao 30.69g | data pve -wi-ao 30.69g | ||
root pve -wi-ao 3.72g | root pve -wi-ao 3.72g | ||
swap pve -wi-ao 1.86g | swap pve -wi-ao 1.86g | ||
=Install a standard Debian Squeeze(amd64)= | We recommend to use ext3 filesystem for best performance. | ||
== Install a standard Debian Squeeze(amd64) == | |||
Install a standard Debian Squeeze (amd64), for details see [http://www.debian.org Debian]. Go for a LVM based partitioning and a fixed IP and take care that you have enough free space for snapshots (needed for online backup with vzdump) | Install a standard Debian Squeeze (amd64), for details see [http://www.debian.org Debian]. Go for a LVM based partitioning and a fixed IP and take care that you have enough free space for snapshots (needed for online backup with vzdump) | ||
=Install Proxmox VE= | Please make sure that your hostname is resolvable via /etc/hosts, i.e you need an entry in /etc/hosts which assigns an IP address to that hostname. | ||
==Adapt your sources.list== | |||
== Install Proxmox VE == | |||
=== Adapt your sources.list === | |||
Adapt your sources.list and add the Proxmox VE repository: | Adapt your sources.list and add the Proxmox VE repository: | ||
Line 35: | Line 38: | ||
</pre> | </pre> | ||
Add the Proxmox VE repository key | a. Add the Proxmox VE repository key<br/> | ||
< | b. Update your repository and system<br /> | ||
<pre> | |||
<pre>aptitude update | wget -O- "http://download.proxmox.com/debian/key.asc" | apt-key add - | ||
aptitude full-upgrade</pre> | aptitude update | ||
aptitude full-upgrade | |||
</pre> | |||
==Install Proxmox VE Kernel== | === Install Proxmox VE Kernel === | ||
<pre>aptitude install pve-kernel-2.6.32- | <pre> | ||
aptitude install pve-firmware | |||
aptitude install pve-kernel-2.6.32-19-pve | |||
</pre> | |||
Reboot and make sure to select Proxmox VE Kernel on the boot loader (grub2). | Reboot and make sure to select Proxmox VE Kernel on the boot loader (grub2). | ||
<pre>reboot</pre> | |||
Optional - install Kernel headers: | Optional - install Kernel headers: | ||
<pre>aptitude install pve-headers-2.6.32- | <pre>aptitude install pve-headers-2.6.32-19-pve</pre> | ||
==Install Proxmox VE packages== | === Install Proxmox VE packages === | ||
Make sure you are running the Proxmox VE Kernel, otherwise the installation will fail. | Make sure you are running the Proxmox VE Kernel, otherwise the installation will fail. | ||
Check the currently active Kernel: | Check the currently active Kernel: | ||
<pre>uname -a | <pre>uname -a | ||
Linux 2.6.32- | Linux 2.6.32-19-pve ... </pre> | ||
Install the Proxmox VE packages | a. Install the Proxmox VE packages<br/> | ||
b. Configure pve-redirect for apache2<br/> | |||
<pre>aptitude install proxmox-ve-2.6.32 | c. And restart apache<br/> | ||
<pre> | |||
aptitude install proxmox-ve-2.6.32 | |||
a2ensite pve-redirect.conf | |||
/etc/init.d/apache2 restart | |||
</pre> | |||
Install the rest of needed packages: | Install the rest of needed packages: | ||
<pre>aptitude install ntp ssh lvm2 postfix ksm-control-daemon vzprocps</pre> | <pre>aptitude install ntp ssh lvm2 postfix ksm-control-daemon vzprocps open-iscsi</pre> | ||
Accept the suggestion to remove Exim and configure postfix according to your network. | Accept the suggestion to remove Exim and configure postfix according to your network. | ||
=Connect to the Proxmox VE web interface= | == Connect to the Proxmox VE web interface == | ||
Connect to the admin web interface (<nowiki>https://youripaddress:8006</nowiki>) and configure the vmbr0 and review all other settings, finally reboot to check if everything is running as expected. | Connect to the admin web interface (<nowiki>https://youripaddress:8006</nowiki>) and configure the vmbr0 and review all other settings, finally reboot to check if everything is running as expected. | ||
[[Image:Screen-vmbr0-setup-for-pve2.png||Adapt vmbr0 settings]] | [[Image:Screen-vmbr0-setup-for-pve2.png||Adapt vmbr0 settings]] | ||
=Optional: Developer Workstations with Proxmox VE and X11= | == Optional: Developer Workstations with Proxmox VE and X11 == | ||
Proxmox VE is primarily used as virtualization platform with NO additional software installed. In some case it makes sense to have a full desktop running on Proxmox VE, for example for developers using Proxmox VE as their primary workstation/desktop. | Proxmox VE is primarily used as virtualization platform with NO additional software installed. In some case it makes sense to have a full desktop running on Proxmox VE, for example for developers using Proxmox VE as their primary workstation/desktop. | ||
For example, just install | For example, just install lxde desktop: | ||
aptitude install | aptitude install lxde libcurl3 | ||
Make sure network-manager is not used, else pve-cluster will not start | Make sure network-manager is not used, else pve-cluster will not start | ||
aptitude purge network-manager | aptitude purge network-manager | ||
To get a modern browser, Google Chrome is a good idea - download the 64-bit | To get a modern browser, Google Chrome is a good idea - download the 64-bit Chrome from Google, also install Oracle (Sun) Java, see [[Java_Console_(Ubuntu)]] | ||
[[Category: | [[Category: Archive]][[Category: Installation]] | ||
Latest revision as of 14:37, 6 November 2019
Note: Article about the old stable Proxmox VE 2.x releases |
Introduction
The installation of a supported Proxmox VE server should be done via Bare-metal_ISO_Installer. In some case it makes sense to install Proxmox VE on top of a running Debian Squeeze 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Squeeze ISO was used: PC Network Installer v6.0.7.
Suggested partition layout with LVM:
Device Boot Start End Blocks Id System /dev/sda1 1 122 975872 83 Linux /dev/sda2 122 5222 40965120 8e Linux LVM
LVM:
LV VG Attr LSize Origin Snap% Move Log Copy% Convert data pve -wi-ao 30.69g root pve -wi-ao 3.72g swap pve -wi-ao 1.86g
We recommend to use ext3 filesystem for best performance.
Install a standard Debian Squeeze(amd64)
Install a standard Debian Squeeze (amd64), for details see Debian. Go for a LVM based partitioning and a fixed IP and take care that you have enough free space for snapshots (needed for online backup with vzdump)
Please make sure that your hostname is resolvable via /etc/hosts, i.e you need an entry in /etc/hosts which assigns an IP address to that hostname.
Install Proxmox VE
Adapt your sources.list
Adapt your sources.list and add the Proxmox VE repository:
nano /etc/apt/sources.list
deb http://ftp.at.debian.org/debian squeeze main contrib # PVE packages provided by proxmox.com deb http://download.proxmox.com/debian squeeze pve # security updates deb http://security.debian.org/ squeeze/updates main contrib
a. Add the Proxmox VE repository key
b. Update your repository and system
wget -O- "http://download.proxmox.com/debian/key.asc" | apt-key add - aptitude update aptitude full-upgrade
Install Proxmox VE Kernel
aptitude install pve-firmware aptitude install pve-kernel-2.6.32-19-pve
Reboot and make sure to select Proxmox VE Kernel on the boot loader (grub2).
reboot
Optional - install Kernel headers:
aptitude install pve-headers-2.6.32-19-pve
Install Proxmox VE packages
Make sure you are running the Proxmox VE Kernel, otherwise the installation will fail.
Check the currently active Kernel:
uname -a Linux 2.6.32-19-pve ...
a. Install the Proxmox VE packages
b. Configure pve-redirect for apache2
c. And restart apache
aptitude install proxmox-ve-2.6.32 a2ensite pve-redirect.conf /etc/init.d/apache2 restart
Install the rest of needed packages:
aptitude install ntp ssh lvm2 postfix ksm-control-daemon vzprocps open-iscsi
Accept the suggestion to remove Exim and configure postfix according to your network.
Connect to the Proxmox VE web interface
Connect to the admin web interface (https://youripaddress:8006) and configure the vmbr0 and review all other settings, finally reboot to check if everything is running as expected.
Optional: Developer Workstations with Proxmox VE and X11
Proxmox VE is primarily used as virtualization platform with NO additional software installed. In some case it makes sense to have a full desktop running on Proxmox VE, for example for developers using Proxmox VE as their primary workstation/desktop.
For example, just install lxde desktop:
aptitude install lxde libcurl3
Make sure network-manager is not used, else pve-cluster will not start
aptitude purge network-manager
To get a modern browser, Google Chrome is a good idea - download the 64-bit Chrome from Google, also install Oracle (Sun) Java, see Java_Console_(Ubuntu)