Advertisement
Guest User

Untitled

a guest
Jun 20th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. Defined XML:
  2. virt-install \
  3. --connect qemu:///system \
  4. --hvm \
  5. --virt-type kvm \
  6. --network network=virt-net2,model=virtio,mac=52:54:00:b8:0b:ef \
  7. --noautoconsole \
  8. --name barry.powercraft.nl \
  9. --ram 1024 \
  10. --vcpus=2 \
  11. --vnc \
  12. --os-type linux \
  13. --os-variant debianwheezy \
  14. --noreboot \
  15. --cdrom /images/debian-live-7.5.0-amd64-lxde-desktop.iso \
  16. --nodisks \
  17. --livecd
  18.  
  19.  
  20. After booting the VM the network is changed like:
  21. <domain type='kvm' id='13'>
  22. <name>barry.powercraft.nl</name>
  23. <uuid>5a59268b-48ba-af93-ac9d-bfb809cb939e</uuid>
  24. <memory unit='KiB'>1048576</memory>
  25. <currentMemory unit='KiB'>1048576</currentMemory>
  26. <vcpu placement='static'>2</vcpu>
  27. <resource>
  28. <partition>/machine</partition>
  29. </resource>
  30. <os>
  31. <type arch='x86_64' machine='pc-1.1'>hvm</type>
  32. <boot dev='cdrom'/>
  33. </os>
  34. <features>
  35. <acpi/>
  36. <apic/>
  37. <pae/>
  38. </features>
  39. <clock offset='utc'/>
  40. <on_poweroff>destroy</on_poweroff>
  41. <on_reboot>restart</on_reboot>
  42. <on_crash>restart</on_crash>
  43. <devices>
  44. <emulator>/usr/bin/kvm</emulator>
  45. <disk type='file' device='cdrom'>
  46. <driver name='qemu' type='raw'/>
  47. <source file='/images/debian-live-7.5.0-amd64-lxde-desktop.iso'/>
  48. <backingStore/>
  49. <target dev='hdc' bus='ide'/>
  50. <readonly/>
  51. <alias name='ide0-1-0'/>
  52. <address type='drive' controller='0' bus='1' target='0' unit='0'/>
  53. </disk>
  54. <controller type='usb' index='0'>
  55. <alias name='usb0'/>
  56. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
  57. </controller>
  58. <controller type='pci' index='0' model='pci-root'>
  59. <alias name='pci.0'/>
  60. </controller>
  61. <controller type='ide' index='0'>
  62. <alias name='ide0'/>
  63. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  64. </controller>
  65. <interface type='bridge'>
  66. <mac address='52:54:00:b8:0b:ef'/>
  67. <source bridge='br0'/>
  68. <vlan>
  69. <tag id='2'/>
  70. </vlan>
  71. <virtualport type='openvswitch'>
  72. <parameters interfaceid='8215f0d0-b45f-4565-a492-4d6d491e7c0c'/>
  73. </virtualport>
  74. <target dev='vnet0'/>
  75. <model type='virtio'/>
  76. <alias name='net0'/>
  77. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  78. </interface>
  79. <serial type='pty'>
  80. <source path='/dev/pts/1'/>
  81. <target port='0'/>
  82. <alias name='serial0'/>
  83. </serial>
  84. <console type='pty' tty='/dev/pts/1'>
  85. <source path='/dev/pts/1'/>
  86. <target type='serial' port='0'/>
  87. <alias name='serial0'/>
  88. </console>
  89. <input type='tablet' bus='usb'>
  90. <alias name='input0'/>
  91. </input>
  92. <input type='mouse' bus='ps2'/>
  93. <input type='keyboard' bus='ps2'/>
  94. <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
  95. <listen type='address' address='127.0.0.1'/>
  96. </graphics>
  97. <video>
  98. <model type='cirrus' vram='9216' heads='1'/>
  99. <alias name='video0'/>
  100. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  101. </video>
  102. <memballoon model='virtio'>
  103. <alias name='balloon0'/>
  104. <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  105. </memballoon>
  106. </devices>
  107. <seclabel type='none'/>
  108. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement