|
Exercise: VM setup for startup scripts
Clone kvm1 to a new NFS server VM host, run01, by executing the command below:
Check if the new VM is in the list, start it, then login to its console:
Fix the host name and the MAC address:
remove line with "127.0.0.1 kvm1" in /etc/hosts file,
then
replace kvm1 with run01 in /etc/hostname file,
Fix the upstart script for ttyS0 to allow console at run level 1 as follows: edit file /etc/init/ttyS0.conf to include '1' in the list of the run levels, [12345] and [!12345]. The configuration file now should look as follows:
Reboot the VM:
After reboot, the new VM should come up with the correct host name and the MAC address.
|
|