Create Virtual Machine #22012/06/10 |
Create a Virtual Machine from template.
|
|
[1] | Create a Virtual Machine from template that is made in previous page. |
# copy disk image and XML file for a new Virtual Machine
[root@dlp ~]#
virt-clone --original template --name mail --file /var/kvm/images/mail.img Allocating 'mail.img' | 20 GB 01:44
Clone 'mail' created successfully.
[root@dlp ~]# virsh start mail --console
Domain mail started
Connected to domain mail
Fedora release 17 (Beefy Miracle)
localhost login: Kernel 3.3.4-5.fc17.x86_64 on an x86_64 (ttyS0) # complete |
[2] | News GuestOS' network is failed to boot because it is the same to existing GuestOS's one. So Change network settings for new one. |
[root@localhost ~]# cd /etc/sysconfig/network-scripts
[root@localhost network-scripts]#
vi ifcfg-eth0 # make the line "HWADDR xxx" comment # If you set static IP address, See initial config
UUID="ee677d14-6af6-470d-8e66-4e5b0e1006c4"
[root@dlp ~]# NM_CONTROLLED="yes" NETBOOT="yes" # HWADDR="52:54:00:53:e5:26"
systemctl restart network.service |
Sponsored Link |
|