[SOLVED] Cannot start CT on a PVE 4.2 fresh install

Giovanni Mellini

New Member
Jul 8, 2016
3
0
1
Hallo everyone,
I just installed last versione of PVS (4.2), and did an apt-get update/upgrade.
I created a test CT using Ubuntu 14.04 template downloaded from the web interface.
I did a setup of the new CT (100) using following network configuration

upload_2016-7-8_15-46-9.png

When I boot the CT 100 I receive an error message.
I tried from command line and set the debug level as follow:
# lxc-start -n 100 --logfile /tmp/errore --logpriority DEBUG -F

This is the error message i receive on stdout

# lxc-start -n 100 --logfile /tmp/errore --logpriority DEBUG -F
bridge 'vmbr0' does not exist
lxc-start: conf.c: run_buffer: 342 Script exited with status 2
lxc-start: conf.c: lxc_create_network: 3084 failed to create netdev
lxc-start: start.c: lxc_spawn: 954 failed to create the network
lxc-start: start.c: __lxc_start: 1211 failed to spawn '100'
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.

#

and you can see the full log file:

lxc-start 1467985650.735 INFO lxc_start_ui - lxc_start.c:main:264 - using rcfile /var/lib/lxc/100/config
lxc-start 1467985650.735 WARN lxc_confile - confile.c:config_pivotdir:1817 - lxc.pivotdir is ignored. It will soon become an error.
lxc-start 1467985650.738 WARN lxc_cgmanager - cgmanager.c:cgm_get:994 - do_cgm_get exited with error
lxc-start 1467985650.739 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for reject_force_umount action 0
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts

lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for reject_force_umount action 0
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts

lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .[all].
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .kexec_load errno 1.
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for kexec_load action 327681
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for kexec_load action 327681
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .open_by_handle_at errno 1.
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for open_by_handle_at action 327681
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for open_by_handle_at action 327681
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .init_module errno 1.
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for init_module action 327681
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for init_module action 327681
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .finit_module errno 1.
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for finit_module action 327681
lxc-start 1467985650.739 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:233 - Seccomp: got negative # for syscall: finit_module
lxc-start 1467985650.739 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:234 - This syscall will NOT be blacklisted
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for finit_module action 327681
lxc-start 1467985650.739 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:233 - Seccomp: got negative # for syscall: finit_module
lxc-start 1467985650.739 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:234 - This syscall will NOT be blacklisted
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .delete_module errno 1.
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for delete_module action 327681
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for delete_module action 327681
lxc-start 1467985650.739 INFO lxc_seccomp - seccomp.c:parse_config_v2:436 - Merging in the compat seccomp ctx into the main one
lxc-start 1467985650.739 INFO lxc_conf - conf.c:run_script_argv:362 - Executing script '/usr/share/lxc/hooks/lxc-pve-prestart-hook' for container '100', config section 'lxc'
lxc-start 1467985652.310 DEBUG lxc_start - start.c:setup_signal_fd:264 - sigchild handler set
lxc-start 1467985652.311 DEBUG lxc_console - console.c:lxc_console_peer_default:500 - opening /dev/tty for console peer
lxc-start 1467985652.311 DEBUG lxc_console - console.c:lxc_console_peer_default:506 - using '/dev/tty' as console
lxc-start 1467985652.311 DEBUG lxc_console - console.c:lxc_console_sigwinch_init:179 - 12283 got SIGWINCH fd 9
lxc-start 1467985652.311 DEBUG lxc_console - console.c:lxc_console_winsz:88 - set winsz dstfd:6 cols:202 rows:67
lxc-start 1467985652.311 INFO lxc_start - start.c:lxc_init:460 - '100' is initialized
lxc-start 1467985652.312 DEBUG lxc_start - start.c:__lxc_start:1184 - Not dropping cap_sys_boot or watching utmp
lxc-start 1467985652.315 INFO lxc_conf - conf.c:run_script:412 - Executing script '/usr/share/lxc/lxcnetaddbr' for container '100', config section 'net'
lxc-start 1467985653.042 ERROR lxc_conf - conf.c:run_buffer:342 - Script exited with status 2
lxc-start 1467985653.085 ERROR lxc_conf - conf.c:lxc_create_network:3084 - failed to create netdev
lxc-start 1467985653.085 ERROR lxc_start - start.c:lxc_spawn:954 - failed to create the network
lxc-start 1467985653.085 ERROR lxc_start - start.c:__lxc_start:1211 - failed to spawn '100'
lxc-start 1467985653.085 INFO lxc_conf - conf.c:run_script_argv:362 - Executing script '/usr/share/lxc/hooks/lxc-pve-poststop-hook' for container '100', config section 'lxc'
lxc-start 1467985654.753 INFO lxc_conf - conf.c:run_script_argv:362 - Executing script '/usr/share/lxcfs/lxc.reboot.hook' for container '100', config section 'lxc'
lxc-start 1467985655.259 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
lxc-start 1467985655.259 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.


Follow pve version

# pveversion
pve-manager/4.2-2/725d76f0 (running kernel: 4.4.6-1-pve)

My network configuration

# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto bond0
iface bond0 inet manual
slaves eth2 eth3
bond_miimon 100
bond-miimon 100
bond_mode active-backup
bond-mode active-backup


auto bond0.1064
iface bond0.1064 inet static
address X.X.X.X
netmask 255.255.255.192
gateway X.X.X.X
vlan_raw_device bond0
dns-nameservers X.X.X.X X.X.X.X
dns-search enavsoc.dev

auto vmbr0
iface vmbr0 inet static
bridge_ports bond0
bridge_stp off
bridge_fd 0


Hope someone can help, tks
Giovanni
 
I just fixed the network broblem.
I noticed that interface vmbr0 was not in the output of ifconfig command (I imported the /etc/network/interfaces from a workin VE3.3 installation as a template) so I used the graph interface to delete and create the vmbr0 interface.
After that the vmbr0 and associated vlans are now appearing in ifconfig

Just for reference the problem was the word static in /etc/network/interfaces file, that must be manual

- iface vmbr0 inet static
+ iface vmbr0 inet manual

Again the new created CT100 won't start for a different reason now

# lxc-start -n 100 --logfile /tmp/errore --logpriority DEBUG -F
readline() on closed filehandle $fd at /usr/share/lxc/hooks/lxc-pve-autodev-hook line 32.
lxc-start: lsm/apparmor.c: apparmor_process_label_set: 183 No such file or directory - failed to change apparmor profile to lxc-container-default
lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 4
lxc-start: start.c: __lxc_start: 1211 failed to spawn '100'
umount: /var/lib/lxc/100/rootfs: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
command 'umount --recursive /var/lib/lxc/100/rootfs' failed: exit code 32
lxc-start: conf.c: run_buffer: 342 Script exited with status 32
lxc-start: start.c: lxc_fini: 517 failed to run post-stop hooks for container '100'.
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
root@soc-proxmox-02:/tmp#

And follow the logfile content, seems due to a missing apparmor profile....

lxc-start 1467991237.223 INFO lxc_start_ui - lxc_start.c:main:264 - using rcfile /var/lib/lxc/100/config
lxc-start 1467991237.223 WARN lxc_confile - confile.c:config_pivotdir:1817 - lxc.pivotdir is ignored. It will soon become an error.
lxc-start 1467991237.226 WARN lxc_cgmanager - cgmanager.c:cgm_get:994 - do_cgm_get exited with error
lxc-start 1467991237.227 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for reject_force_umount action 0
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts

lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for reject_force_umount action 0
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts

lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .[all].
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .kexec_load errno 1.
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for kexec_load action 327681
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for kexec_load action 327681
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .open_by_handle_at errno 1.
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for open_by_handle_at action 327681
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for open_by_handle_at action 327681
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .init_module errno 1.
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for init_module action 327681
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for init_module action 327681
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .finit_module errno 1.
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for finit_module action 327681
lxc-start 1467991237.227 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:233 - Seccomp: got negative # for syscall: finit_module
lxc-start 1467991237.227 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:234 - This syscall will NOT be blacklisted
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for finit_module action 327681
lxc-start 1467991237.227 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:233 - Seccomp: got negative # for syscall: finit_module
lxc-start 1467991237.227 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:234 - This syscall will NOT be blacklisted
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:324 - processing: .delete_module errno 1.
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:426 - Adding native rule for delete_module action 327681
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:429 - Adding compat rule for delete_module action 327681
lxc-start 1467991237.227 INFO lxc_seccomp - seccomp.c:parse_config_v2:436 - Merging in the compat seccomp ctx into the main one
lxc-start 1467991237.227 INFO lxc_conf - conf.c:run_script_argv:362 - Executing script '/usr/share/lxc/hooks/lxc-pve-prestart-hook' for container '100', config section 'lxc'
[...]
lxc-start 1467991238.915 INFO lxc_start - start.c:lxc_init:460 - '100' is initialized
lxc-start 1467991238.918 INFO lxc_conf - conf.c:run_script:412 - Executing script '/usr/share/lxc/lxcnetaddbr' for container '100', config section 'net'
lxc-start 1467991239.731 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for 100
[...]
lxc-start 1467991239.738 INFO lxc_cgmanager - cgmanager.c:cgm_setup_limits:1398 - cgroup limits have been setup
lxc-start 1467991239.810 INFO lxc_conf - conf.c:setup_utsname:928 - 'soc-testct' hostname has been setup
lxc-start 1467991239.837 INFO lxc_conf - conf.c:setup_network:2616 - network has been setup
lxc-start 1467991239.837 INFO lxc_conf - conf.c:mount_autodev:1157 - Mounting container /dev
lxc-start 1467991239.837 INFO lxc_conf - conf.c:mount_autodev:1179 - Mounted tmpfs onto /usr/lib/x86_64-linux-gnu/lxc/rootfs/dev
lxc-start 1467991239.837 INFO lxc_conf - conf.c:mount_autodev:1197 - Mounted container /dev
[...]
lxc-start 1467991239.838 INFO lxc_conf - conf.c:mount_file_entries:2150 - mount points have been setup
lxc-start 1467991239.838 INFO lxc_conf - conf.c:run_script_argv:362 - Executing script '/usr/share/lxcfs/lxc.mount.hook' for container '100', config section 'lxc'
lxc-start 1467991239.929 INFO lxc_conf - conf.c:run_script_argv:362 - Executing script '/usr/share/lxc/hooks/lxc-pve-autodev-hook' for container '100', config section 'lxc'
lxc-start 1467991240.062 INFO lxc_conf - conf.c:fill_autodev:1225 - Creating initial consoles under container /dev
lxc-start 1467991240.062 INFO lxc_conf - conf.c:fill_autodev:1236 - Populating container /dev
lxc-start 1467991240.062 INFO lxc_conf - conf.c:fill_autodev:1269 - Populated container /dev
lxc-start 1467991240.062 INFO lxc_conf - conf.c:setup_ttydir_console:1539 - created /usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/lxc
lxc-start 1467991240.062 INFO lxc_conf - conf.c:setup_ttydir_console:1585 - console has been setup on lxc/console
lxc-start 1467991240.062 INFO lxc_utils - utils.c:mount_proc_if_needed:1724 - I am 1, /proc/self points to '1'

[...]
lxc-start 1467991240.081 INFO lxc_conf - conf.c:lxc_create_tty:3502 - tty's configured
lxc-start 1467991240.081 INFO lxc_conf - conf.c:setup_tty:1080 - 2 tty(s) has been setup
lxc-start 1467991240.081 INFO lxc_conf - conf.c:setup_personality:1473 - set personality to '0x0'
[...]
lxc-start 1467991240.085 INFO lxc_cgmanager - cgmanager.c:cgm_setup_limits:1398 - cgroup limits have been setup
lxc-start 1467991240.086 ERROR lxc_apparmor - lsm/apparmor.c:apparmor_process_label_set:183 - No such file or directory - failed to change apparmor profile to lxc-container-default
lxc-start 1467991240.086 ERROR lxc_sync - sync.c:__sync_wait:51 - invalid sequence number 1. expected 4
lxc-start 1467991240.086 ERROR lxc_start - start.c:__lxc_start:1211 - failed to spawn '100'
lxc-start 1467991240.086 INFO lxc_conf - conf.c:run_script_argv:362 - Executing script '/usr/share/lxc/hooks/lxc-pve-poststop-hook' for container '100', config section 'lxc'
lxc-start 1467991240.860 ERROR lxc_conf - conf.c:run_buffer:342 - Script exited with status 32
lxc-start 1467991240.860 ERROR lxc_start - start.c:lxc_fini:517 - failed to run post-stop hooks for container '100'.
lxc-start 1467991240.864 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
lxc-start 1467991240.864 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.

Tks
Giovanni
 

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!