CentOS5.2, OpenVZで環境構築中、システムの再起動後にvzctlコマンドを実行したところ、次のメッセージが出た。
# vzctl start <CTID> Unable to open /dev/vzctl: No such file or directory Please check that vzdev kernel module is loaded and you have sufficient permissions \ to access the file.
カーネルの確認をすると、
# uname -r 2.6.18-92.1.22.el5
yum update した時にカーネルが更新されていたみたい。
/boot/grub/grub.conf のOpenVZ対応カーネル以外をコメントアウト、システムを再起動でOKでした。
# vi /boot/grub/grub.conf #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu #title CentOS (2.6.18-92.1.22.el5) # root (hd0,0) # kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/ # initrd /initrd-2.6.18-92.1.22.el5.img title OpenVZ CentOS (2.6.18-92.1.18.el5.028stab060.2PAE) root (hd0,0) kernel /vmlinuz-2.6.18-92.1.18.el5.028stab060.2PAE ro root=LABEL=/ initrd /initrd-2.6.18-92.1.18.el5.028stab060.2PAE.img #title CentOS (2.6.18-92.el5) # root (hd0,0) # kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ # initrd /initrd-2.6.18-92.el5.img
# shutdown -r now