월간 인기 게시물

게시물 718건
   
QEMU VS KVM
글쓴이 : 최고관리자 날짜 : 2015-11-18 (수) 10:38 조회 : 3689
                                
# 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]

이름 패스워드
스타일
굴림
10pt
<html> <body>
 
 
 
 
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.