vzifup-post error

  • Thread starter Thread starter chrwei
  • Start date Start date
C

chrwei

Guest
with version 1.5 downloaded yesterday, when i ifup a network device i get

Usage: vzarp-ifup DEVICE
run-parts: /etc/network/if-up.d/vzifup-post exited with return code 1

looking at the script, it expect the interface name on the command line, but that's not how if-up.d scripts work. the script is included and inherits the callers variables, the interface name is in the $IFACE.

replacing $1 with $IFACE fixes the error.
 
The contents of /usr/sbin/vzifup-post should be:

Code:
#!/bin/sh

exec /usr/sbin/vzifup-post "$IFACE"

If you have something different, there is something wrong with the vzctl installation.

What is the output of:

# pveversion -v
 
# pveversion -v
pve-manager: 1.5-9 (pve-manager/1.5/4728)
running kernel: 2.6.32-2-pve
proxmox-ve-2.6.32: 1.5-7
pve-kernel-2.6.32-2-pve: 2.6.32-7
pve-kernel-2.6.18-2-pve: 2.6.18-5
qemu-server: 1.1-14
pve-firmware: 1.0-5
libpve-storage-perl: 1.0-13
vncterm: 0.9-2
vzctl: 3.0.23-1pve11
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.12.4-1
ksm-control-daemon: 1.0-3


I installed from the bare metal ISO, and ran aptitude update; aptitude upgrade after