migrate openvz container to lxc (proxmox 4.2)

raqdedicados

Renowned Member
Nov 26, 2008
85
0
71
Hi there
Actually we re running production node with proxmox 3.2 with two openvz containers on it we re looking foward to migrate them to a new node running proxmox 4.2 .

We follow the tutorial on https://pve.proxmox.com/wiki/Convert_OpenVZ_to_LXC and when try to restore we got

room23@raq46:~# pct restore 100 /var/lib/vz/dump/vzdump-openvz-122-2016_12_02-18_44_21.tar.lzo

400 Parameter verification failed.

storage: storage 'local' does not support container directories

pct restore <vmid> <ostemplate> [OPTIONS]

We basically boot the iso install it and nothing else. is a empty new 4.2 server .

Thanks
 
Please specify a storage where you have enable container:

# pct restore 100 --storage local-lvm /var/lib/vz/dump/vzdump-openvz-122-2016_12_02-18_44_21.tar.lzo
 
Hi DIETMAR we use --storage local-lvm and so far so good... thanks !

now .. setting up network
pct set 100 -net0 name=eth0,bridge=vmbr0,ip=190.183.XXX.XX/24,gw=190.183.XXX.XXX
.ok

starting the container but do not get response... console is blank... cannot ssh or ping it or web nothing
the openvz converted is a centos 7 64 running plesk 12

As i can see on /var/log/messages we got... ? we must change something

Dec 3 19:05:54 raq46glbx pvedaemon[21038]: <root@pam> starting task UPID:raq46glbx:0000614C:0BC28713:584341C2:vzstart:100:root@pam:

Dec 3 19:05:55 raq46glbx kernel: [1972980.382483] EXT4-fs (dm-6): mounted filesystem with ordered data mode. Opts: (null)

Dec 3 19:05:55 raq46glbx kernel: [1972980.441989] IPv6: ADDRCONF(NETDEV_UP): veth100i0: link is not ready

Dec 3 19:05:56 raq46glbx kernel: [1972981.180070] device veth100i0 entered promiscuous mode

Dec 3 19:05:56 raq46glbx kernel: [1972981.277088] eth0: renamed from vethASWQYQ

Dec 3 19:05:56 raq46glbx kernel: [1972981.777649] audit: type=1400 audit(1480802756.890:106): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default-cgns" name="/proc/" pid=25003 comm="mount" flags="rw, nosuid, nodev, noexec, remount, relatime"

We try to disable app_armor but got same result also as i read it is not a good deal to disable it ? we re confuse on this app_armor thing on lxc ... we ve a valid suscription can u help us ? thanks
 
Last edited: