Advertisement
n8whnp

Untitled

Nov 16th, 2011
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. [root@node4 ~]# cat /etc/libvirt/qemu/centos6-64-base.xml
  2. <!--
  3. WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
  4. OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  5. virsh edit centos6-64-base
  6. or other application using the libvirt API.
  7. -->
  8.  
  9. <domain type='kvm'>
  10. <name>centos6-64-base</name>
  11. <uuid>10218392-7792-1f09-7c39-8652a82f1bb0</uuid>
  12. <memory>1048576</memory>
  13. <currentMemory>1048576</currentMemory>
  14. <vcpu>1</vcpu>
  15. <os>
  16. <type arch='x86_64' machine='pc-0.14'>hvm</type>
  17. <boot dev='hd'/>
  18. </os>
  19. <features>
  20. <acpi/>
  21. <apic/>
  22. <pae/>
  23. </features>
  24. <clock offset='utc'/>
  25. <on_poweroff>destroy</on_poweroff>
  26. <on_reboot>restart</on_reboot>
  27. <on_crash>restart</on_crash>
  28. <devices>
  29. <emulator>/usr/bin/qemu-kvm</emulator>
  30. <disk type='file' device='disk'>
  31. <driver name='qemu' type='qcow2'/>
  32. <source file='/var/lib/libvirt/images/centos-64-base-disk0.qcow2'/>
  33. <target dev='vda' bus='virtio'/>
  34. <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  35. </disk>
  36. <interface type='bridge'>
  37. <mac address='52:54:00:17:db:5d'/>
  38. <source bridge='br0'/>
  39. <model type='virtio'/>
  40. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  41. </interface>
  42. <serial type='pty'>
  43. <target port='0'/>
  44. </serial>
  45. <console type='pty'>
  46. <target type='serial' port='0'/>
  47. </console>
  48. <input type='tablet' bus='usb'/>
  49. <input type='mouse' bus='ps2'/>
  50. <graphics type='vnc' port='-1' autoport='yes'/>
  51. <video>
  52. <model type='cirrus' vram='9216' heads='1'/>
  53. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  54. </video>
  55. <memballoon model='virtio'>
  56. <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  57. </memballoon>
  58. </devices>
  59. </domain>
  60.  
  61. [root@node4 ~]# brctl show
  62. bridge name bridge id STP enabled interfaces
  63. br0 8000.0025906239b4 no bond0
  64. vnet0
  65. vnet1
  66. virbr0 8000.5254007f5d9e yes virbr0-nic
  67.  
  68.  
  69. qemu cmd:
  70.  
  71. LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name centos6-64-base -uuid 10218392-7792-1f09-7c39-8652a82f1bb0 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/centos6-64-base.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-reboot -kernel /var/lib/libvirt/boot/virtinst-vmlinuz.pf_6MA -initrd /var/lib/libvirt/boot/virtinst-initrd.img.zDkPZo -append method=http://centos2.cpanel.net/centos-6/6.0/os/x86_64/ -drive file=/var/lib/libvirt/images/centos-64-base-disk0.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,fd=26,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:17:db:5d,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
  72. char device redirected to /dev/pts/2
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement