Cloud
Disk image contextualisation for the StratusLab Cloud
The contextualisation allows the user to connect by ssh to the new VM.
Script contextualisation
Run the script for RHEL system.
root$./id_sl63.sh
Manual contextualisation
Package installation
- Cloud specific: openssh, openssh-server, openssh-clients (for ssh), acpid (for the machine shutdown)
- Virtual cluster: rpcbind (or portmap), nfs-utils
Running services
To allow acpid:
$ service acpid start $ service acpid status
stratuslab-one-context package installation
$ rpm -i http ://yum.stratuslab.eu/snapshots/fedora14/stratuslab-one-context- 2.1-0.20121004.192530.noarch.rpm
Files modifications
- Linking the virtual disk of the Cloud and the cdrom:
$ vi /etc/stratuslab/stratuslab-one-context.cfg context_device=sr0
(or hdd)
- Specifying the control of the ssh VM connexion:
$ vi /etc/ssh/sshd_config PasswordAuthentication no ChallengeResponseAuthentication no GSSAPIAuthentication no PermitRootLogin without-password
- Managing the partition:
$ vi /etc/fstab
If necessary, remove the cdrom line.
Add a line for the swap disk:
/dev/sdb swap swap defaults 0 0
- Removing MAC adress informations and eth0 interface informations:
$ rm /etc/udev/rules.d/70-persistent-net.rules $ rm /etc/udev/rules.d/70-persistent-cd.rules
- Removing MAC adress number:
$ vi /etc/sysconfig/network-scripts/ifcfg-eth0
HWADDR
- Allowing SSH connexion:
$ vi /etc/selinux/config SELINUX = disabled
Verifications
- Choosing a random Root password:
vi /etc/stratuslab/conf.d/password.context enable=yes