Advertisement
Guest User

KVMxmlTemplate

a guest
Jul 22nd, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <domain type='kvm'>
  2. <name>lubuntu</name>
  3. <!-- The command uuidgen will give you a new unique ID -->
  4. <uuid>1038e911-0cae-4e9d-8d6c-6ab59f4decaa</uuid>
  5.  
  6. <memory unit='GB'>1</memory>
  7. <currentMemory unit='GB'>1</currentMemory>
  8.  
  9. <vcpu>2</vcpu>
  10.  
  11. <os>
  12. <type arch='x86_64' machine='q35'>hvm</type>
  13. <loader>/usr/share/qemu/bios-256k.bin</loader>
  14. <boot dev='cdrom'/>
  15. </os>
  16.  
  17. <features>
  18. <acpi/>
  19. </features>
  20.  
  21. <on_poweroff>destroy</on_poweroff>
  22. <on_reboot>restart</on_reboot>
  23. <on_crash>destroy</on_crash>
  24.  
  25. <devices>
  26. <!-- VIRTUAL DISK (IMG)
  27. To create: qemu-img create -f qcow2 lubuntu.qcow2 10G -->
  28. <disk type='file' device='disk'>
  29. <driver name='qemu' type='qcow2'/>
  30. <source file='/mnt/cache/domains/lubuntu/lubuntu.qcow2'/>
  31. <target dev='hda' bus='ide'/>
  32. </disk>
  33.  
  34. <!-- VIRTUAL CD-ROM (ISO) Uncomment during install
  35. <disk type='file' device='cdrom'>
  36. <driver name='qemu' type='raw'/>
  37. <source file='/mnt/cache/images/lubuntu-14.04-desktop-amd64.iso'/>
  38. <target dev='hdc' bus='ide'/>
  39. <readonly/>
  40. <address type='drive' controller='0' bus='1' unit='0'/>
  41. </disk>
  42. Install complete so comment it out JDC 07082014-->
  43.  
  44. <!-- This is on screen 0, change to 10 for screen 10, etc... -->
  45. <graphics type='vnc' port='5900'>
  46. <listen type='address' address='0.0.0.0'/>
  47. </graphics>
  48.  
  49. <interface type='bridge'>
  50. <source bridge='xenbr0'/>
  51. </interface>
  52.  
  53. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  54.  
  55. <input type='mouse' bus='ps2'/>
  56.  
  57. </devices>
  58.  
  59. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement