|
...
|
...
|
@@ -42,12 +42,9 @@ lxc-destroy -n $CONTAINER
|
|
42
|
42
|
# Create the container
|
|
43
|
43
|
lxc-create -n $CONTAINER -t natty -f $LXC_CONF
|
|
44
|
44
|
|
|
45
|
|
-# Specify where our container lives
|
|
|
45
|
+# Specify where our container rootfs lives
|
|
46
|
46
|
ROOTFS=/var/lib/lxc/$CONTAINER/rootfs/
|
|
47
|
47
|
|
|
48
|
|
-# set root password to password
|
|
49
|
|
-echo root:pass | chroot $ROOTFS chpasswd
|
|
50
|
|
-
|
|
51
|
48
|
# Create a stack user that is a member of the libvirtd group so that stack
|
|
52
|
49
|
# is able to interact with libvirt.
|
|
53
|
50
|
chroot $ROOTFS groupadd libvirtd
|