Changes between Initial Version and Version 1 of KVM


Ignore:
Timestamp:
03/03/16 10:57:14 (9 years ago)
Author:
sky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • KVM

    v1 v1  
     1= KVM (Kernel-based Virtual Machine) =
     2
     3{{{
     4
     5## VM Remove
     6virsh undefine test102
     7virsh undefine test102 --managed-save
     8virsh undefine test103 --remove-all-storage
     9
     10## VM Clone
     11virt-clone --original template --name test101 --file /opt/kvm/test101.qcow2
     12
     13################################################################################
     14
     15## VM Initialize
     16
     17NNAME=test101
     18NIP=10.59.72.101
     19
     20sed -i "/^HOSTNAME/ s/template/$NNAME/" /etc/sysconfig/network
     21sed -i "/^IPADDR/ s/10.59.72.100/$NIP/" /etc/sysconfig/network-scripts/ifcfg-eth0
     22cat /dev/null >/etc/udev/rules.d/70-persistent-net.rules
     23
     24init 6
     25
     26################################################################################
     27
     28}}}
     29