LoginSignup
1
1

More than 5 years have passed since last update.

Proxmox3.3環境をDebian7.7にインストール

Last updated at Posted at 2013-10-23

proxmoxが配布しているISOでインストールする場合、以下問題があるのでWheezy入れてからインストールしてみた。

  • 任意のパーティションにできない
  • EFIにインストールできない

firmware-7.7.0-amd64-netinst.isoを使用しOSインストール。
自分はインストールの際、taskselの選択はsshサーバーのみ選択しました。

手順

準備
apt-get install -y vim sudo patch
/etc/sudoers
+ vagrant ALL=(ALL) NOPASSWD: ALL
sources.list追加
# cat > /etc/apt/sources.list.d/proxmox.list <<EOF
deb http://download.proxmox.com/debian wheezy pve-no-subscription
EOF
key追加
wget -q -O- "http://download.proxmox.com/debian/key.asc" | apt-key add -
apt-get update
apt-get dist-upgrade -y
apt-get install -y pve-kernel-2.6.32-34-pve pve-firmware

ファームウェアが見つからないとのエラーが出た場合

/etc/apt/sources.list
-deb http://ftp.jp.debian.org/debian/ wheezy main
+deb http://ftp.jp.debian.org/debian/ wheezy main non-free
apt-get update
apt-get install -y firmware-linux-nonfree firmware-b43-installer

再起動。grubでDebian GNU/Linux, with Linux 2.6.32-34-pveを選択し起動。

再起動後

不要なkernelを削除
apt-get remove -y linux-image-amd64 linux-image-3.2.0-4-amd64

自分のホスト名のIPアドレスをhostsに記入(192.168.11.3)

/etc/hosts
-127.0.1.1    proxmox
+192.168.11.3 proxmox
ツール群をインストール
apt-get install -y \
 proxmox-ve-2.6.32 ntp ssh lvm2 postfix ksm-control-daemon vzprocps open-iscsi bootlogd screen
一応openVZのtemplateリストをupdateしとく
pveam update

webUIのパッチ

$ wget -q https://raw.github.com/tukiyo/proxmox/master/pvemanagerlib.js.patch.2 && \
sudo patch /usr/share/pve-manager/ext4/pvemanagerlib.js < pvemanagerlib.js.patch.2

kvm用設定

vmbr0の設定

proxmoxはvmbr0を使う。以下のように設定しておく。

/etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  192.168.11.3
    netmask  255.255.255.0
    gateway  192.168.11.1
    dns-nameservers 192.168.11.1
    dns-search myhome.co.jp
    #
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

OS再起動

  • kvmを有効にするため、OS再起動します。

webUIにアクセス

https://192.168.11.3:8006
にアクセスし、rootでログインできることを確認。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1