Machine/template-fedora13: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 218: | Line 218: | ||
__EOF__ | __EOF__ | ||
newaliases | newaliases | ||
=== Clone the VM === | |||
* Login to the host system & clone the VM | |||
sudo virt-clone --connect=qemu:///system -o template-fedora13 -n "new VM name" -f /srv/vm/"new VM name".qcow2 | |||
* Start the new VM and make sure it boots (networking probably will not work, we will fix that later) | |||
sudo virsh start --console "new VM name" | |||
* edit /etc/sysconfig/network and change the hostname | |||
HOSTNAME=''newvm''.sugarlabs.org | |||
* Add the hostname to the sugarlabs zone file in the [[Service/Nameservers|nameservers]]. | |||
* Edit network configuration /etc/sysconfig/network-scripts/ifcfg-eth0 to update IPv4 and IPv6 addresses | |||
* Edit /etc/udeve/rules.d/XX-persistent-net.rules | |||
Remove definition for eth0 it will get regenerated on reboot | |||
* Reboot the system, when it comes back up networking should work | |||
* remove old ssh keys & generate new ones | |||
rm -rf /etc/ssh/ssh_host_* | |||
service sshd restart | |||
* create new key for root | |||
ssh-keygen -N "" -f /root/.ssh/id_rsa -t rsa | |||
* update /etc/system-full-backup.conf | |||
* update the motd | |||
vim /etc/motd | |||
* Add the machine to /etc/munin/munin.conf on Machine/sunjammer for monitoring. | |||
[''newvm''.sugarlabs.org] | |||
address ''newvm''.sugarlabs.org |