VScaler: General Notes
Jump to navigation
Jump to search
Install guestfish:
yum install guestfish -yor use this container:
docker run --rm -it --entrypoint /bin/bash -v <your-image>:/image:rw registry.vscaler.com:5000/docker-guestfish:latestGenerate an encrypted password:
openssl passwd -1 new_passwordUse guestfish to edit /etc/shadow inside the rhel-7-guest image:
guestfish -a rhel-7-server-guest-image.qcow2
><fs> run
><fs> list-filesystems
><fs> mount /dev/sda1 /
><fs> vi /etc/shadowReplace the root encrypted password in /etc/shadow with the new one you just generated.
Edit the /etc/ssh/sshd_config file and uncomment the following line:
PermitRootLogin YesNow you can quit guestfish
><fs> quitYou should now be able to import the the guest image into OpenStack and once deployed, login as root using the password you set above, in addition to the normal mechanism using the OpenStack key pair.