参考
OSインストール
OSインストール後
bridge設定に必要
apt install -y sudo ifenslave bridge-utils screen
- ifenslave : bonding (bond0) に必要
- bridge-utils : bridge (vmbr0) に必要
ネットワーク設定
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.100.70
netmask 255.255.255.0
gateway 192.168.100.1
dns-nameservers 8.8.8.8 8.8.4.4
bridge_ports eth0
bridge_stp off
もしeth0がdhcp取得する場合
sudo apt purge wicd wicd-daemon
/etc/hosts (必須!)
/etc/hosts
- 127.0.1.1 proxmox4.local
+ 192.168.100.70 proxmox4.local
install packages
rootで実施
echo "deb http://download.proxmox.com/debian jessie pve-no-subscription" > /etc/apt/sources.list.d/pve-enterprise.list
wget -O- "http://download.proxmox.com/debian/key.asc" | apt-key add -
apt update && apt dist-upgrade -y
apt install -y proxmox-ve ntp postfix ksm-control-daemon open-iscsi \
mdadm logwatch sshfs vim screen tig ntp nfs-kernel-server nfs-common
- OS再起動し、https://192.168.100.70:8006 にアクセスし応答があることを確認。
ntp client
apt install -y ntp
/etc/ntp.conf
- server 0.debian.pool.ntp.org iburst
- server 1.debian.pool.ntp.org iburst
- server 2.debian.pool.ntp.org iburst
- server 3.debian.pool.ntp.org iburst
+ server ntp1.jst.mfeed.ad.jp
+ server ntp2.jst.mfeed.ad.jp
+ server ntp3.jst.mfeed.ad.jp
systemctl restart ntp
systemctl enable ntp
ntpq -p
追加パッケージ(自分用)
sudo apt install -y vim-gtk screen git
sudo apt remove -y uim uim-anthy anthy
sudo apt install -y fcitx-mozc
自動ログイン(lightdm)
/etc/lightdm/lightdm.conf
[SeatDefaults]
+ autologin-user=user1
再インストール
apt purge -y \
proxmox-ve ksm-control-daemon open-iscsi pve-firewall qemu-server pve-ha-manager pve-manager pve-container
- /boot/pve/が無いと言われたら
mkdir /boot/pve
して再度実施
echo "deb http://download.proxmox.com/debian jessie pve-no-subscription" > /etc/apt/sources.list.d/pve-enterprise.list
apt install -y proxmox-ve ntp ssh postfix ksm-control-daemon open-iscsi
-
/root/.ssh/authorized_keys
が消える(/etc/pve/priv/authorized_keys)ので注意
lxde
apt install -y lxde \
iceweasel gnome-screenshot xfce4-terminal pinta fcitx-mozc \
autossh expect rdesktop
LANG=C xdg-user-dirs-gtk-update
dhcpを抑止
apt purge \
wicd wicd-daemon
/etc/systemd/logind.conf
- #HandleLidSwitch=suspend
+ HandleLidSwitch=ignore
sudo systemctl restart systemd-logind
vino
apt install -y vino dconf-editor
dconf-editor
/usr/lib/vino/vino-server