[Lxc-users] lxc template for RHEL?

Dan Kegel dank at kegel.com
Mon Aug 27 21:43:59 UTC 2012


On Mon, Aug 27, 2012 at 12:27 PM, Dan Kegel <dank at kegel.com> wrote:
> The next problem is a bug in lxc-start-ephemeral, which complains
> sed: can't read
> /var/lib/lxc/demo_centos6-temp-j4G0FcH/rootfs/etc/hostname: No such
> file or directory
> The error comes from the line
>     # Update the ephemeral lxc's configuration to reflect the new
> container name.
>     sudo sed -i -e "s/$LXC_BASE/$LXC_NAME/" $LXC_DIR/fstab
> $LXC_DIR/config $LXC_DIR/rootfs/etc/hostname $LXC_DIR/rootfs/etc/hosts

Filed as
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1042431

Or is there a better way?




More information about the lxc-users mailing list