OpenVZ 无法创建新的 Centos 7 容器

OpenVZ 无法创建新的 Centos 7 容器

我有一个全新的 Centos 7.2 安装(由于需要 Adaptec 6405 RAID 控制器的驱动程序),我正在尝试在其上安装 OpenVZ。

我遇到的问题是新容器创建失败。以下是我正在运行的命令以及输出:

# prlctl create NewVM --vmtype ct --ostemplate centos-7-x86_64
Creating the Container...
Creating cache
Creating temporary Container
Creating virtual disk
Failed to register the CT: PRL_ERR_VZCTL_OPERATION_FAILED (Details: Creating OS template cache for centos-7-x86_64 template
Error: Failed to create ploop image /vz/tmp//vzpkg.2LV6kn/cache-private/root.hdd/root.hds: Error in ploop_umount (ploop.c:2488): Failed to find top delta name and format 2
Error: Cannot create ploop device
Error: Failed to read ploop disk descriptor /vz/tmp//vzpkg.2LV6kn/cache-private/root.hdd: Error in ploop_open_dd (di.c:363): Can't resolve /vz/tmp//vzpkg.2LV6kn/cache-private/root.hdd/DiskDescriptor.xml: No such file or directory 39
Creation of Container private area failed
)
Failed to create the virtual machine.

以前也出现过这种情况,我以为是因为Centos 7设置为使用xfs,所以这台机器重建时使用ext4作为文件系统。

# df -TH
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda3      ext4       53G  4.9G   46G  10% /
devtmpfs       devtmpfs  3.9G     0  3.9G   0% /dev
tmpfs          tmpfs     3.9G     0  3.9G   0% /dev/shm
tmpfs          tmpfs     3.9G  9.7M  3.9G   1% /run
tmpfs          tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1      ext4      500M  245M  224M  53% /boot
/dev/sda2      ext4       87G   82M   82G   1% /home
tmpfs          tmpfs     778M  8.2k  778M   1% /run/user/42
tmpfs          tmpfs     778M     0  778M   0% /run/user/1001

OpenVZ 安装使用这些说明如下:

yum install https://download.openvz.org/virtuozzo/releases/openvz-7.0.3-479/x86_64/os/Packages/o/openvz-release-7.0.3-3.vz7.x86_64.rpm
yum install epel-release
yum install prlctl prl-disp-service vzkernel
reboot

更多诊断:

# systemctl status vz
● vz.service - OpenVZ Container service
   Loaded: loaded (/usr/lib/systemd/system/vz.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2018-01-11 16:55:10 AEDT; 25min ago
 Main PID: 697 (code=exited, status=0/SUCCESS)
    Tasks: 0
   CGroup: /system.slice/vz.service

Jan 11 16:55:10 localhost systemd[1]: Starting OpenVZ Container service...
Jan 11 16:55:10 localhost vz[697]: net.ipv4.conf.venet0.send_redirects = 0
Jan 11 16:55:10 localhost vz[697]: net.ipv4.conf.venet0.rp_filter = 0
Jan 11 16:55:10 localhost vz[697]: 1     0.0.0.0                                  0.0.0.0
Jan 11 16:55:10 localhost vz[697]: 1     ::                                       00000000000000000000000000000000
Jan 11 16:55:10 localhost vz[697]: Classes loaded successfully.
Jan 11 16:55:10 localhost systemd[1]: Started OpenVZ Container service.

有人知道如何解决这个问题吗?

提前致谢。

相关内容