I apologize if this is rather noobish, I am new to Proxmox and Linux in general.
I have set up a home server on a Dell R710 running various machines to do different tasks. So far, each VM is working perfectly. However, I am starting the next phase of my project of implementing MQTT into the home automation. I figured it would not make sense to have a VM for a simple MQTT broker and that running in a container would be the best way to go about it. I can create the container without issue, however I am unable to start it from the dashboard or command line.
Attempting to start the container with # lxc-start -n 106 -F -l DEBUG -o /tmp/lxc-106.log gave the following info in the /tmp/lxc-106.log:
The LXC config is as follows:
I have tried using the Fedora 24 template as well and have had the same result. Can anyone show me what I have done wrong? Thank you for your help!
I have set up a home server on a Dell R710 running various machines to do different tasks. So far, each VM is working perfectly. However, I am starting the next phase of my project of implementing MQTT into the home automation. I figured it would not make sense to have a VM for a simple MQTT broker and that running in a container would be the best way to go about it. I can create the container without issue, however I am unable to start it from the dashboard or command line.
Code:
root@pve:~# pct start 106
lxc-start: tools/lxc_start.c: main: 365 The container failed to start.
lxc-start: tools/lxc_start.c: main: 367 To get more details, run the container in foreground mode.
lxc-start: tools/lxc_start.c: main: 369 Additional information can be obtained by setting the --logfile and --logpriority options.
command 'lxc-start -n 106' failed: exit code 1
Attempting to start the container with # lxc-start -n 106 -F -l DEBUG -o /tmp/lxc-106.log gave the following info in the /tmp/lxc-106.log:
Code:
lxc-start 20170620111028.720 INFO lxc_start_ui - tools/lxc_start.c:main:275 - using rcfile /var/lib/lxc/106/config
lxc-start 20170620111028.721 WARN lxc_confile - confile.c:config_pivotdir:1910 - lxc.pivotdir is ignored. It will soon become an error.
lxc-start 20170620111028.722 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:402 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:567 - Adding native rule for reject_force_umount action 0.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:251 - Setting Seccomp rule to reject force umounts.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:570 - Adding compat rule for reject_force_umount action 0.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:251 - Setting Seccomp rule to reject force umounts.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:402 - processing: .[all].
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:402 - processing: .kexec_load errno 1.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:567 - Adding native rule for kexec_load action 327681.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:570 - Adding compat rule for kexec_load action 327681.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:402 - processing: .open_by_handle_at errno 1.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:567 - Adding native rule for open_by_handle_at action 327681.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:570 - Adding compat rule for open_by_handle_at action 327681.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:402 - processing: .init_module errno 1.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:567 - Adding native rule for init_module action 327681.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:570 - Adding compat rule for init_module action 327681.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:402 - processing: .finit_module errno 1.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:567 - Adding native rule for finit_module action 327681.
lxc-start 20170620111028.722 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:270 - Seccomp: got negative for syscall: -10085: finit_module.
lxc-start 20170620111028.722 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:271 - This syscall will NOT be blacklisted.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:570 - Adding compat rule for finit_module action 327681.
lxc-start 20170620111028.722 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:270 - Seccomp: got negative for syscall: -10085: finit_module.
lxc-start 20170620111028.722 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:271 - This syscall will NOT be blacklisted.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:402 - processing: .delete_module errno 1.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:567 - Adding native rule for delete_module action 327681.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:570 - Adding compat rule for delete_module action 327681.
lxc-start 20170620111028.722 INFO lxc_seccomp - seccomp.c:parse_config_v2:580 - Merging in the compat Seccomp ctx into the main one.
lxc-start 20170620111028.722 INFO lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/share/lxc/hooks/lxc-pve-prestart-hook' for container '106', config section 'lxc'
lxc-start 20170620111029.790 DEBUG lxc_start - start.c:setup_signal_fd:273 - Set SIGCHLD handler with file descriptor: 5.
lxc-start 20170620111029.790 DEBUG console - console.c:lxc_console_peer_default:431 - opening /dev/tty for console peer
lxc-start 20170620111029.790 DEBUG console - console.c:lxc_console_peer_default:437 - using '/dev/tty' as console
lxc-start 20170620111029.790 DEBUG console - console.c:lxc_console_sigwinch_init:145 - 3457 got SIGWINCH fd 9
lxc-start 20170620111029.790 DEBUG console - console.c:lxc_console_winsz:72 - set winsz dstfd:6 cols:178 rows:28
lxc-start 20170620111029.790 INFO lxc_start - start.c:lxc_init:475 - Container "106" is initialized.
lxc-start 20170620111029.791 DEBUG lxc_start - start.c:__lxc_start:1328 - Not dropping CAP_SYS_BOOT or watching utmp.
lxc-start 20170620111029.793 INFO lxc_conf - conf.c:run_script:417 - Executing script '/usr/share/lxc/lxcnetaddbr' for container '106', config section 'net'
lxc-start 20170620111030.802 DEBUG lxc_conf - conf.c:instantiate_veth:2615 - instantiated veth 'veth106i0/vethWRIG8P', index is '63'
lxc-start 20170620111030.802 INFO lxc_cgroup - cgroups/cgroup.c:cgroup_init:68 - cgroup driver cgroupfs-ng initing for 106
lxc-start 20170620111030.803 DEBUG lxc_cgfsng - cgroups/cgfsng.c:filter_and_set_cpus:478 - No isolated cpus detected.
lxc-start 20170620111030.803 DEBUG lxc_cgfsng - cgroups/cgfsng.c:handle_cpuset_hierarchy:648 - "cgroup.clone_children" was already set to "1".
lxc-start 20170620111030.804 INFO lxc_start - start.c:lxc_spawn:1147 - Cloned CLONE_NEWNS.
lxc-start 20170620111030.805 INFO lxc_start - start.c:lxc_spawn:1147 - Cloned CLONE_NEWPID.
lxc-start 20170620111030.805 INFO lxc_start - start.c:lxc_spawn:1147 - Cloned CLONE_NEWUTS.
lxc-start 20170620111030.805 INFO lxc_start - start.c:lxc_spawn:1147 - Cloned CLONE_NEWIPC.
lxc-start 20170620111030.805 INFO lxc_start - start.c:lxc_spawn:1147 - Cloned CLONE_NEWNET.
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.deny' set to 'a'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c *:* m'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'b *:* m'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 1:3 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 1:5 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 1:7 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 5:0 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 5:1 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 5:2 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 1:8 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 1:9 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 136:* rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 10:229 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 254:0 rm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 10:200 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 10:228 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'devices.allow' set to 'c 10:232 rwm'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'memory.limit_in_bytes' set to '1048576000'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'memory.memsw.limit_in_bytes' set to '1585446912'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'cpu.shares' set to '1024'
lxc-start 20170620111030.805 DEBUG lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2004 - cgroup 'cpuset.cpus' set to '8'
lxc-start 20170620111030.805 INFO lxc_cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2008 - cgroup has been setup
lxc-start 20170620111030.855 DEBUG lxc_conf - conf.c:lxc_assign_network:3111 - move 'vethWRIG8P'/'eth0' to '3500': .
lxc-start 20170620111030.859 DEBUG lxc_conf - conf.c:setup_rootfs:1215 - mounted '/var/lib/lxc/106/rootfs' on '/usr/lib/x86_64-linux-gnu/lxc/rootfs'
lxc-start 20170620111030.859 INFO lxc_conf - conf.c:setup_utsname:843 - 'MQTT' hostname has been setup
lxc-start 20170620111030.883 ERROR lxc_conf - conf.c:setup_hw_addr:2144 - ioctl failure : Cannot assign requested address
lxc-start 20170620111030.883 DEBUG lxc_conf - conf.c:setup_hw_addr:2146 - mac address 'f9:78:23:47:38:15' on 'eth0' has been setup
lxc-start 20170620111030.883 ERROR lxc_conf - conf.c:setup_netdev:2261 - failed to setup hw address for 'eth0'
lxc-start 20170620111030.883 ERROR lxc_conf - conf.c:setup_network:2388 - failed to setup netdev
lxc-start 20170620111030.883 ERROR lxc_conf - conf.c:lxc_setup:3770 - failed to setup the network for '106'
lxc-start 20170620111030.883 ERROR lxc_start - start.c:do_start:826 - Failed to setup container "106".
lxc-start 20170620111030.883 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 3)
lxc-start 20170620111030.883 INFO lxc_conf - conf.c:lxc_delete_network:2931 - Interface "eth0" with index 63 already deleted or existing in different network namespace.
lxc-start 20170620111030.919 INFO lxc_conf - conf.c:lxc_delete_network:2956 - Removed interface "veth106i0" from host.
lxc-start 20170620111030.919 ERROR lxc_start - start.c:__lxc_start:1357 - Failed to spawn container "106".
lxc-start 20170620111030.947 INFO lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/share/lxcfs/lxc.reboot.hook' for container '106', config section 'lxc'
lxc-start 20170620111031.450 INFO lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/share/lxc/hooks/lxc-pve-poststop-hook' for container '106', config section 'lxc'
lxc-start 20170620111032.315 ERROR lxc_start_ui - tools/lxc_start.c:main:365 - The container failed to start.
lxc-start 20170620111032.315 ERROR lxc_start_ui - tools/lxc_start.c:main:369 - Additional information can be obtained by setting the --logfile and --logpriority options.
The LXC config is as follows:
Code:
arch: amd64
cores: 1
hostname: MQTT
memory: 1000
nameserver: 192.168.243.1 8.8.8.8 8.8.4.4
net0: name=eth0,bridge=vmbr2,hwaddr=f9:78:23:47:38:15,ip=dhcp,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-106-disk-1,size=8G
searchdomain: local.net
swap: 512
I have tried using the Fedora 24 template as well and have had the same result. Can anyone show me what I have done wrong? Thank you for your help!