Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # lxc-create -t centos -n centos-test
- Host CPE ID from /etc/os-release:
- This is not a CentOS or Redhat host and release is missing, defaulting to 6 use -R|--release to specify release
- Checking cache download in /opt/lxc/var/cache/lxc/centos/x86_64/6/rootfs ...
- Cache found. Updating...
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: centos.ionic.net.pl
- * extras: centos.slaskdatacenter.com
- * updates: centos.hitme.net.pl
- Setting up Update Process
- No Packages marked for Update
- Loaded plugins: fastestmirror
- Cleaning repos: base extras updates
- 0 package files removed
- Update finished
- Copy /opt/lxc/var/cache/lxc/centos/x86_64/6/rootfs to /opt/lxc/var/lib/lxc/centos-test/rootfs ...
- Copying rootfs to /opt/lxc/var/lib/lxc/centos-test/rootfs ...
- Storing root password in '/opt/lxc/var/lib/lxc/centos-test/tmp_root_pass'
- Expiring password for user root.
- passwd: Success
- Container rootfs and config have been created.
- Edit the config file to check/enable networking setup.
- The temporary root password is stored in:
- '/opt/lxc/var/lib/lxc/centos-test/tmp_root_pass'
- The root password is set up as expired and will require it to be changed
- at first login, which you should do as soon as possible. If you lose the
- root password or wish to change it without starting the container, you
- can change it from the host by running the following command (which will
- also reset the expired flag):
- chroot /opt/lxc/var/lib/lxc/centos-test/rootfs passwd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement