OpenVZ kann keinen neuen Centos 7-Container erstellen

882
Ben Hitchcock

Ich habe eine brandneue Installation von Centos 7.2 (erforderlich, da Treiber für einen Adaptec 6405 RAID-Controller erforderlich sind), auf der ich versuche, OpenVZ zu installieren.

Mein Problem ist, dass die Erstellung neuer Container fehlschlägt. Hier ist der Befehl, den ich mit der Ausgabe ausführte:

# 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. 

Dies war zuvor der Fall, und ich dachte, dass es daran lag, dass sich Centos 7 für die Verwendung von xfs eingerichtet hat. Daher wurde diese Maschine mit ext4 als Dateisystem neu erstellt.

# 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 wurde mit diesen Anweisungen wie folgt installiert :

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 

Einige weitere Diagnosen:

# 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. 

Hat jemand eine Idee, wie dieses Problem gelöst werden kann?

Danke im Voraus.

0
Könnten Sie "strace" versuchen: ** strace -o NewVM.out ** prlctl newVM erstellen --vmtype ct --ostemplate centos-7-x86_64 und dann Ihre out-Datei pls .: ** weniger NewVM.out ** anzeigen KYourSelfer vor 6 Jahren 0
Vielen Dank für die Antwort, aber dies war für einen Client und war zeitabhängig. Daher haben wir stattdessen VMWare installiert. Ben Hitchcock vor 6 Jahren 0

0 Antworten auf die Frage