¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
QEMU VS KVM
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-11-18 (¼ö) 10:38 Á¶È¸ : 3505
                                
# cat /etc/nova/nova-compute.conf 
[libvirt]
virt_type=[ kvm | qemu ]


QEMU
/usr/bin/qemu-system-x86_64 
-name instance-00000025 -S 
-machine pc-i440fx-vivid,accel=tcg,usb=off 
-cpu Opteron_G5,+bmi1,+perfctr_nb,+perfctr_core,+topoext,+nodeid_msr,+tce,+lwp,+wdt,+skinit,+ibs,+osvw,+cr8legacy,+extapic,+cmp_legacy,+fxsr_opt,+mmxext,+osxsave,
+monitor,+ht,+vme 
-m 2048 -realtime mlock=off 
-smp 1,sockets=1,cores=1,threads=1 
-uuid d8c2c03b-d746-4d25-9804-b2559427ce9e 
-smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=12.0.0,serial=49434d53-0200-7a72-c40c-727ac40c8249,uuid=d8c2c03b-d746-4d25-9804-b2559427ce9e,family=Virtual Machine 
-no-user-config -nodefaults 
-chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000025.monitor,server,nowait 
-mon chardev=charmonitor,id=monitor,mode=control 
-rtc base=utc -no-shutdown 
-boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 
-drive file=/var/lib/nova/instances/d8c2c03b-d746-4d25-9804-b2559427ce9e/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 
-drive file=/var/lib/nova/instances/d8c2c03b-d746-4d25-9804-b2559427ce9e/disk.eph0,if=none,id=drive-virtio-disk1,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 
-drive file=/var/lib/nova/instances/d8c2c03b-d746-4d25-9804-b2559427ce9e/disk.swap,if=none,id=drive-virtio-disk2,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk2,id=virtio-disk2 
-netdev tap,fd=24,id=hostnet0 
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:00:53:0e,bus=pci.0,addr=0x3 
-chardev file,id=charserial0,path=/var/lib/nova/instances/d8c2c03b-d746-4d25-9804-b2559427ce9e/console.log 
-device isa-serial,chardev=charserial0,id=serial0 
-chardev pty,id=charserial1 
-device isa-serial,chardev=charserial1,id=serial1 
-device usb-tablet,id=input0 -vnc 0.0.0.0:2 -k en-us 
-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 
-msg timestamp=on

KVM
/usr/bin/qemu-system-x86_64 
-name instance-00000025 -S 
-machine pc-i440fx-vivid,accel=kvm,usb=off 
-cpu Opteron_G5,+bmi1,+perfctr_nb,+perfctr_core,+topoext,+nodeid_msr,+tce,+lwp,+wdt,+skinit,+ibs,+osvw,+cr8legacy,+extapic,+cmp_legacy,+fxsr_opt,+mmxext,+osxsave,
+monitor,+ht,+vme 
-m 2048 -realtime mlock=off 
-smp 1,sockets=1,cores=1,threads=1 
-uuid d8c2c03b-d746-4d25-9804-b2559427ce9e 
-smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=12.0.0,serial=49434d53-0200-7a72-c40c-727ac40c8249,uuid=d8c2c03b-d746-4d25-9804-b2559427ce9e,family=Virtual Machine 
-no-user-config -nodefaults 
-chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000025.monitor,server,nowait 
-mon chardev=charmonitor,id=monitor,mode=control 
-rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown 
-boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 
-drive file=/var/lib/nova/instances/d8c2c03b-d746-4d25-9804-b2559427ce9e/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 
-drive file=/var/lib/nova/instances/d8c2c03b-d746-4d25-9804-b2559427ce9e/disk.eph0,if=none,id=drive-virtio-disk1,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 
-drive file=/var/lib/nova/instances/d8c2c03b-d746-4d25-9804-b2559427ce9e/disk.swap,if=none,id=drive-virtio-disk2,format=qcow2,cache=none 
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk2,id=virtio-disk2 
-netdev tap,fd=24,id=hostnet0,vhost=on,vhostfd=27 
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:00:53:0e,bus=pci.0,addr=0x3 
-chardev file,id=charserial0,path=/var/lib/nova/instances/d8c2c03b-d746-4d25-9804-b2559427ce9e/console.log 
-device isa-serial,chardev=charserial0,id=serial0 
-chardev pty,id=charserial1 
-device isa-serial,chardev=charserial1,id=serial1 
-device usb-tablet,id=input0 -vnc 0.0.0.0:2 -k en-us 
-device cirrus-vga,id=video0,bus=pci.0,addr=0x2 
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 
-msg timestamp=on


¡Ø Option
accel=accels1[:accels2[:...]]
This is used to enable an accelerator. Depending on the target architecture, kvm, xen, or tcg can be available. By default, tcg is used. If there is more than one accelerator specified, the next one is used if the previous one fails to initialize.

-rtc [base=utc|localtime|date][,clock=host|vm][,driftfix=none|slew]
Specify base as "utc" or "localtime" to let the RTC start at the current UTC or local time, respectively. "localtime" is required for correct date in MS-DOS or Windows. To start at a specific point in time, provide date in the format "2006-06-17T16:01:21" or "2006-06-17". The default base is UTC.
By default the RTC is driven by the host system time. This allows using of the RTC as accurate reference clock inside the guest, specifically if the host time is smoothly following an accurate external reference clock, e.g. via NTP.  If you want to isolate the guest time from the host, you can set clock to "rt" instead.  To even prevent it from progressing during suspension, you can set it to "vm".

Enable driftfix (i386 targets only) if you experience time drift problems, specifically with Windows' ACPI HAL. This option will try to figure out how many timer interrupts were not processed by the Windows guest and will re-inject them.

-netdev tap,id=id[,fd=h][,ifname=name][,script=file][,downscript=dfile][,helper=helper]

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.