Debian 9 fresh install of OpenVZ gives errors on creating container
I have newly installed OpenVZ on my Debian 9 as of this manual: https://wiki.openvz.org/Installation_on_Debian_9 However when I try to create a new container it gives me this error, I have no idea what it means and what could be wrong. vzctl create 1 --ostemplate debian-8.0-x86_64 --2019-05-27 23:35:49-- http://download.openvz.org/template/precreated/debian-8.0-x86_64.tar.gz Resolving download.openvz.org (download.openvz.org)... 185.231.241.69 Connecting to download.openvz.org (download.openvz.org)|185.231.241.69|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 211472487 (202M) [application/x-gzip] Saving to: '/var/lib/vz/template/cache/debian-8.0-x86_64.tar.gz' debian-8.0-x86_64.t 100%[===================>] 201.68M 15.4MB/s in 20s 2019-05-27 23:36:10 (10.0 MB/s) - '/var/lib/vz/template/cache/debian-8.0-x86_64.tar.gz' saved [211472487/211472487] Creating image: /var/lib/vz/private/1.tmp/root.hdd/root.hdd size=2306867K Creating delta /var/lib/vz/private/1.tmp/root.hdd/root.hdd bs=2048 size=4614144 sectors v2 Storing /var/lib/vz/private/1.tmp/root.hdd/DiskDescriptor.xml Opening delta /var/lib/vz/private/1.tmp/root.hdd/root.hdd Adding delta dev=/dev/ploop62515 img=/var/lib/vz/private/1.tmp/root.hdd/root.hdd (rw) mke2fs 1.43.4 (31-Jan-2017) Suggestion: Use Linux kernel >= 3.18 for improved stability of the metadata and journal checksum features. Discarding device blocks: done Creating filesystem with 576256 4k blocks and 144288 inodes Filesystem UUID: 6ef4b96d-e218-4e4a-893a-298a52af441c Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done tune2fs 1.43.4 (31-Jan-2017) Setting maximal mount count to -1 Setting error behavior to 2 Setting interval between checks to 0 seconds Creating balloon file .balloon-c3a5ae3d-ce7f-43c4-a1ea-c61e2b4504e8 Error in ploop_mount_fs (ploop.c:1326): Can't mount file system dev=/dev/ploop62515p1 target=/var/lib/vz/private/1.tmp/root.hdd/root.hdd.mnt data='(null)': Invalid argument Unmounting device /dev/ploop62515 Failed to create image: Error in ploop_mount_fs (ploop.c:1326): Can't mount file system dev=/dev/ploop62515p1 target=/var/lib/vz/private/1.tmp/root.hdd/root.hdd.mnt data='(null)': Invalid argument [21] Creation of container private area failed Also where can I find precreated template for debian 9 ? Thanks in advance. Welite
Re: Debian 9 fresh install of OpenVZ gives errors on creating container
Solved by changing from ploop so simfs in vz.conf
Hi! In order to use Ploop on Debian 9, you must disable "metadata_csum" option when creating ploop images. Edit "/etc/mke2fs.conf" and delete "metadata_csum" in EXT4 "features". Have a nice day.