Unable to umount / stop containers properly

tdrnetworks

New Member
Nov 25, 2013
3
0
1
root@maxwell:/# vzctl stop 800

Stopping container ...
Container was stopped
Can't locate PVE/OpenVZ.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/lib/vzctl/scripts/proxmox.umount line 4.
BEGIN failed--compilation aborted at /usr/lib/vzctl/scripts/proxmox.umount line 4.
Error executing umount script /usr/lib/vzctl/scripts/proxmox.umount

# df -h leave the VM filesystem mounted and a restart tells me it can't copy files like "ERROR: Can't copy file /etc/hosts" onto a read-only partition

/var/lib/vz/private/800 20G 11G 9.3G 54% /u0/vz/root/800

Older Proxmox's don't have "/usr/lib/vzctl/scripts/proxmox.umount" - using on this system: 2.6.32-32-pve

I found the OpenVZ.pm in VZDump, but if I create the neccessary symlink to satisfy the error on a restart of the VM I get (without the symlink startup gives no errors):

root@maxwell:/etc# vzctl start 800
Starting container ...
Subroutine read_global_vz_config redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 46.
Subroutine read_vz_list redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 121.
Subroutine new redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 156.
Subroutine type redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 170.
Subroutine vm_status redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 174.
Subroutine prepare redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 185.
Subroutine lock_vm redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 232.
Subroutine unlock_vm redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 247.
Subroutine copy_data_phase1 redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 253.
Subroutine stop_vm redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 259.
Subroutine start_vm redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 265.
Subroutine suspend_vm redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 271.
Subroutine snapshot redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 277.
Subroutine copy_data_phase2 redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 308.
Subroutine resume_vm redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 314.
Subroutine assemble redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 320.
Subroutine archive redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 338.
Subroutine cleanup redefined at /usr/lib/perl5/PVE/OpenVZ.pm line 365.
Undefined subroutine &PVE::OpenVZ::load_config called at /usr/lib/vzctl/scripts/proxmox.umount line 13.
Error executing umount script /usr/lib/vzctl/scripts/proxmox.umount
Adding IP address(es): 80.95.186.241
/bin/bash: line 504: /etc/network/interfaces: Read-only file system
/bin/bash: line 540: /etc/network/interfaces: Read-only file system
/bin/bash: line 547: /etc/network/interfaces: Read-only file system
cp: cannot create regular file `/etc/network/interfaces.bak': Read-only file system
/bin/bash: line 571: /etc/network/interfaces.bak: Read-only file system
mv: cannot stat `/etc/network/interfaces.bak': No such file or directory
Setting CPU units: 1000
Setting CPUs: 2
/bin/cp: cannot create regular file `/etc/hosts.20': Read-only file system
ERROR: Can't copy file /etc/hosts

So how do you get OpenVZ.pm or satisfy this issue with the missing Perl module?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!