Advertisement
Guest User

Untitled

a guest
May 12th, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. # lxc-create -t centos -n centos-test
  2. Host CPE ID from /etc/os-release:
  3. This is not a CentOS or Redhat host and release is missing, defaulting to 6 use -R|--release to specify release
  4. Checking cache download in /opt/lxc/var/cache/lxc/centos/x86_64/6/rootfs ...
  5. Cache found. Updating...
  6. Loaded plugins: fastestmirror
  7. Loading mirror speeds from cached hostfile
  8. * base: centos.ionic.net.pl
  9. * extras: centos.slaskdatacenter.com
  10. * updates: centos.hitme.net.pl
  11. Setting up Update Process
  12. No Packages marked for Update
  13. Loaded plugins: fastestmirror
  14. Cleaning repos: base extras updates
  15. 0 package files removed
  16. Update finished
  17. Copy /opt/lxc/var/cache/lxc/centos/x86_64/6/rootfs to /opt/lxc/var/lib/lxc/centos-test/rootfs ...
  18. Copying rootfs to /opt/lxc/var/lib/lxc/centos-test/rootfs ...
  19. Storing root password in '/opt/lxc/var/lib/lxc/centos-test/tmp_root_pass'
  20. Expiring password for user root.
  21. passwd: Success
  22.  
  23. Container rootfs and config have been created.
  24. Edit the config file to check/enable networking setup.
  25.  
  26. The temporary root password is stored in:
  27.  
  28. '/opt/lxc/var/lib/lxc/centos-test/tmp_root_pass'
  29.  
  30.  
  31. The root password is set up as expired and will require it to be changed
  32. at first login, which you should do as soon as possible. If you lose the
  33. root password or wish to change it without starting the container, you
  34. can change it from the host by running the following command (which will
  35. also reset the expired flag):
  36.  
  37. chroot /opt/lxc/var/lib/lxc/centos-test/rootfs passwd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement