[SOLVED] apt-get upgrade to update proxmox server

nico las

Active Member
Dec 12, 2016
25
1
41
45
Dear community,

I have a proxmox server with few personal project. And I try to clone LXC with qmrestore, but I got an error.
# qmrestore vzdump-lxc-102-2016_12_10-04_03_48.tar.gz 106

ERROR: file '/var/lib/vz/backup/dump/vzdump-lxc-102-2016_12_10-04_03_48.tar.gz' dos not lock like a QemuServer vzdump backup

My Proxmox server is not updated and I would like to know if I can run directly on terminal the apt-get upgrade command without risk ?

pveversion -v

proxmox-ve: 4.2-60 (running kernel: 4.4.15-1-pve)

pve-manager: 4.3-3 (running version: 4.3-3/557191d3)

pve-kernel-4.4.15-1-pve: 4.4.15-60

pve-kernel-4.2.8-1-pve: 4.2.8-41

lvm2: 2.02.116-pve3

corosync-pve: 2.4.0-1

libqb0: 1.0-1

pve-cluster: 4.0-46

qemu-server: 4.0-91

pve-firmware: 1.1-9

libpve-common-perl: 4.0-75

libpve-access-control: 4.0-19

libpve-storage-perl: 4.0-66

pve-libspice-server1: 0.12.8-1

vncterm: 1.2-1

pve-qemu-kvm: 2.6.2-2

pve-container: 1.0-78

pve-firewall: 2.0-31

pve-ha-manager: 1.0-35

ksm-control-daemon: 1.2-1

glusterfs-client: 3.5.2-2+deb8u2

lxc-pve: 2.0.5-1

lxcfs: 2.0.4-pve1

criu: 1.6.0-1

novnc-pve: 0.5-8

zfsutils: 0.6.5.7-pve10~bpo80
 
I found the right command to clone LXC
pct restore 106 backup/vzdump-lxc-102-2016_12_10-04_03_48.tar.gz

But the command to rename it does't work.
vzctl set 106 --hostname newname --save

Directory /proc/vz not found, assuming non-OpenVZ kernel

Warning: distribution not specified in CT config, using defaults from /etc/vz/dists/default

WARNING: /etc/vz/conf/106.conf not found: No such file or directory

CT configuration saved to /etc/vz/conf/106.conf

It is normal my configuration file are /etc/pve/lxc/106.conf, can I edit directly with nano or may be you have a command ?
 
vzctl was for openvz and is not used anymore, "pct restore" is the right command.

and yes you can edit the config file with nano, no problem. (or use "pct" command, see "man pct")


last thing, never use "apt-get upgrade" to update, use "apt-get dist-upgrade"
 
  • Like
Reactions: nico las