Create VM By Running Vmimage
Appearance
==Create VM Through Running VM Image: ==
1. Let suppose running VM is Centos And creating Vm name is Centos-1
2. xm list
3. If Vm is running then it's ok Otherwise use this command to up Centos
4. # xm create Centos
5. # xm restore Centos
6. # xm list
7. Once a vm running then use this command
8. # xm shutdown Centos
9. cp -pvr /data/Centos /data/centos-1
vim /etc/xen/Centos-1
name = "Centos-1" uuid = "967b2dd3-15b5-f72d-0527-046e30e209ba" maxmem = 512 memory = 512 vcpus = 1 bootloader = "/usr/bin/pygrub" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" vfb = [ "type=vnc,vncunused=1,keymap=en-us" ] disk = [ "tap:aio:/data/centos6.img,xvda,w" ] vif = [ "mac=00:16:36:2b:bb:9e,bridge=xenbr0,script=vif-bridge" ]
11. # xm create Centos-1
12. # xm list
13. virt-manager
14. open Cenos-1 vm
15. And add NIC card in it.
16. Login with Centos details.
17. Change ip and see the updated Hardware address