0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ネットワーク設定がされない場合の対処法

Last updated at Posted at 2015-03-18

参考

エラー例

エラー例
# vzctl start 269
Warning: distribution not specified in CT config, using defaults from /etc/vz/dists/default
Starting container ...
Container is mounted
Adding IP address(es): 192.168.100.88
/bin/bash: line 504: /etc/network/interfaces: No such file or directory
grep: /etc/network/interfaces: No such file or directory
/bin/bash: line 517: /etc/network/interfaces: No such file or directory
/bin/bash: line 540: /etc/network/interfaces: No such file or directory
/bin/bash: line 547: /etc/network/interfaces: No such file or directory
cp: cannot stat `/etc/network/interfaces': No such file or directory
/bin/bash: line 571: /etc/network/interfaces.bak: No such file or directory
mv: cannot stat `/etc/network/interfaces.bak': No such file or directory
Setting CPU units: 1000
Setting CPUs: 1
Container start in progress...

原因

/etc/pve/nodes/server名/openvz/ContainerID.conf
にてコンテナとOSTEMPLATE値が正しくない場合発生する。
(OSTEMPLATEが空だとdebianが指定される。)

対処

OSTEMPLATE="centos-6-x86_64-minimal.tar.gz"

これでネットワーク設定が行われエラー無く起動する。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?