Sync capsule with Satelitte server

On satelitte server: 
#List capsules get id of capsule to be synced 
hammer capsule list
# get info of capsule 

[root@sat ~]# hammer capsule info --id 2
[Foreman] Username: admin
[Foreman] Password for admin: 
Id:         2
Name:       vmcapsule12
URL:        https://vmcapsule12:9090
Features:   Puppet, Puppet CA, Discovery, Pulp Node
Created at: 2015/07/19 07:07:14
Updated at: 2015/07/19 07:07:14

hammer capsule content lifecycle-environments --id 2

[root@sat ~]# hammer capsule content lifecycle-environments --id 2
[Foreman] Username: admin
[Foreman] Password for admin: 
---|---------|---------------------
ID | NAME    | ORGANIZATION        
---|---------|---------------------
1  | Library | Default Organization
---|---------|---------------------
[root@sat ~]# 


hammer capsule content add-lifecycle-environment --id 1 --environment-id 1
hammer capsule content remove-lifecycle-environment --id 1 --environment-id 1
hammer capsule content synchronize --id 1
hammer capsule content synchronize --id 1 --environment-id 1
Advertisements

Change password of VM image using guestfish

[root@psuriset ~]# guestfish –rw -a /var/lib/libvirt/images/trusty-server-cloudimg-amd64-disk1.img

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: ‘help’ for help on commands
‘man’ to read the manual
‘quit’ to quit the shell

><fs>
><fs> ls
ls should have 1 parameter
type ‘help ls’ for help on ls
><fs> run
100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00
><fs> list-filesystems
/dev/sda1: ext4
><fs> mount /dev/sda1 /
><fs> vi /etc/sh
/etc/shadow   /etc/shadow-  /etc/shells
><fs> vi /etc/sh
/etc/shadow   /etc/shadow-  /etc/shells
><fs> vi /etc/shadow
><fs> vi /etc/sudoers

—- here edit passwd and quit using “exit”—

psuriset ALL=(ALL) NOPASSWD: ALL

><fs> quit
[root@psuriset ~]#

[root@psuriset ~]# virsh
Welcome to virsh, the virtualization interactive terminal.

Type:  ‘help’ for help with commands
‘quit’ to quit
virsh # start cbtool
Domain cbtool started

virsh # list
Id    Name                           State
—————————————————-
15    cbtool                         running

Installing RedHat Enterprise Linux OpenStack v6.0 on RHEL7

yum -y install net-tools nano

subscription-manager repos –disable=*
subscription-manager repos –enable=rhel-7-server-rpms
subscription-manager repos –enable=rhel-7-server-rh-common-rpms
subscription-manager repos –enable=rhel-7-server-openstack-6.0-installer-rpms
subscription-manager repos –enable=rhel-server-rhscl-7-rpms
subscription-manager repos –enable=rhel-7-server-openstack-6.0-rpms

yum update -y
systemctl disable NetworkManager
reboot

yum -y install openstack-packstack
packstack --allinone