no need to set root password
This commit is contained in:
parent
6053496ebc
commit
f9998abc01
1 changed files with 1 additions and 4 deletions
|
@ -42,12 +42,9 @@ lxc-destroy -n $CONTAINER
|
||||||
# Create the container
|
# Create the container
|
||||||
lxc-create -n $CONTAINER -t natty -f $LXC_CONF
|
lxc-create -n $CONTAINER -t natty -f $LXC_CONF
|
||||||
|
|
||||||
# Specify where our container lives
|
# Specify where our container rootfs lives
|
||||||
ROOTFS=/var/lib/lxc/$CONTAINER/rootfs/
|
ROOTFS=/var/lib/lxc/$CONTAINER/rootfs/
|
||||||
|
|
||||||
# set root password to password
|
|
||||||
echo root:pass | chroot $ROOTFS chpasswd
|
|
||||||
|
|
||||||
# Create a stack user that is a member of the libvirtd group so that stack
|
# Create a stack user that is a member of the libvirtd group so that stack
|
||||||
# is able to interact with libvirt.
|
# is able to interact with libvirt.
|
||||||
chroot $ROOTFS groupadd libvirtd
|
chroot $ROOTFS groupadd libvirtd
|
||||||
|
|
Loading…
Reference in a new issue