If anyone is interested I was able to fix this. The problem appears to have been caused by udev. Disabling udev completely in the container seems to have corrected the issue.
On Fri, Sep 27, 2013 at 4:54 PM, Sean Carolan <scaro...@gmail.com> wrote: > Basically just what the subject said. When I run this directly from a > root shell it works splendidly, the container spins up immediately and > I can use it right away. > > virt-install --connect lxc:/// --name node3 --ram 512 --vcpu 1 > --filesystem /containers/node3/,/ --network bridge:br0 --noautoconsole > > > When my script runs the same command (as root), I get the below output > and a non-functional VM. Anyone have an idea what's going on here? > Is there some hidden environment variable that lxc needs to set up > properly? > > ********************************* > > Connected to domain node1 > Escape character is ^] > Welcome to CentOS > Starting udev: /bin/mknod: `/dev/loop0': Operation not permitted > /bin/chown: cannot access `/dev/loop0': No such file or directory > /bin/mknod: `/dev/loop1': Operation not permitted > /bin/chown: cannot access `/dev/loop1': No such file or directory > /bin/mknod: `/dev/loop2': Operation not permitted > /bin/chown: cannot access `/dev/loop2': No such file or directory > /bin/mknod: `/dev/loop3': Operation not permitted > /bin/chown: cannot access `/dev/loop3': No such file or directory > /bin/mknod: `/dev/loop4': Operation not permitted > /bin/chown: cannot access `/dev/loop4': No such file or directory > /bin/mknod: `/dev/loop5': Operation not permitted > /bin/chown: cannot access `/dev/loop5': No such file or directory > /bin/mknod: `/dev/loop6': Operation not permitted > /bin/chown: cannot access `/dev/loop6': No such file or directory > /bin/mknod: `/dev/loop7': Operation not permitted > /bin/chown: cannot access `/dev/loop7': No such file or directory > /bin/mknod: `/dev/lp0': Operation not permitted > /bin/chown: cannot access `/dev/lp0': No such file or directory > /bin/mknod: `/dev/lp1': Operation not permitted > /bin/chown: cannot access `/dev/lp1': No such file or directory > /bin/mknod: `/dev/lp2': Operation not permitted > /bin/chown: cannot access `/dev/lp2': No such file or directory > /bin/mknod: `/dev/lp3': Operation not permitted > /bin/chown: cannot access `/dev/lp3': No such file or directory > /bin/mknod: `/dev/net/tun': Operation not permitted > /bin/mknod: `/dev/ppp': Operation not permitted > /bin/mknod: `/dev/fuse': Operation not permitted > No such file or directory > /sbin/start_udev: line 260: /proc/sys/kernel/hotplug: Read-only file system > udevd[70]: matchpathcon(/dev/.udev/rules.d) failed > > [ OK ] > Setting hostname target1.local: [ OK ] > Checking filesystems > WARNING: couldn't open /etc/fstab: No such file or directory > [ OK ] > warning: can't open /etc/fstab: No such file or directory > mount: can't find / in /etc/fstab or /etc/mtab > Mounting local filesystems: warning: can't open /etc/fstab: No such > file or directory > [ OK ] > No such file or directory > Enabling /etc/fstab swaps: swapon: /etc/fstab: open failed: No such > file or directory > [FAILED] > init: rcS main process (5) terminated with status 1 > Entering non-interactive startup > Bringing up loopback interface: [ OK ] > Bringing up interface eth0: > Determining IP information for eth0... done. > [ OK ] > Starting auditd: [FAILED] > Starting system logger: [ OK ] > awk: cmd. line:1: fatal: cannot open file `/etc/fstab' for reading (No > such file or directory) > awk: cmd. line:1: fatal: cannot open file `/etc/fstab' for reading (No > such file or directory) > awk: cmd. line:1: fatal: cannot open file `/etc/fstab' for reading (No > such file or directory) > awk: cmd. line:1: fatal: cannot open file `/etc/fstab' for reading (No > such file or directory) > Mounting other filesystems: warning: can't open /etc/fstab: No such > file or directory > [ OK ] > Retrigger failed udev events [ OK ] > Starting sshd: [ OK ] > Starting postfix: [FAILED] > > CentOS release 6.4 (Final) > Kernel 2.6.32-358.el6.x86_64 on an x86_64 > > target1 login: ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users