Sysadmin/Add virtual machine: Difference between revisions
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
virsh vol-create-as treehouse FOOBAR 10G | virsh vol-create-as treehouse FOOBAR 10G | ||
virt-clone -o template- | virt-clone -o template-lucid --file=/dev/treehouse/FOOBAR -n FOOBAR | ||
virsh start --console FOOBAR | virsh start --console FOOBAR | ||
| Line 18: | Line 18: | ||
# change machine fqdn | # change machine fqdn | ||
sed -i -e s/template- | sed -i -e s/template-lucid/FOOBAR/ /etc/hostname /etc/postfix/main.cf | ||
# activate new IP and hostname | # activate new IP and hostname | ||