qemu cmdline test

 1 /usr/libexec/qemu-kvm -name guest=dev-ce9432,debug-threads=on -S 
 2 -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-10974-dev-ce9432/master-key.aes 
 3 -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off,dump-guest-core=off -cpu host,+kvmclock,hv_time -m 32768 
 4 -mem-prealloc -mem-path /dev/hugepages/libvirt/qemu/10974-dev-ce9432 -realtime mlock=off 
 5 -smp 8,maxcpus=128,sockets=128,cores=1,threads=1 -uuid 5d650cbd-98e0-0005-ad10-000000ce9432 
 6 -smbios type=1,manufacturer=UYUN Cloud,product=ECS,version=pc-i440fx-7.0.0 -no-user-config -nodefaults 
 7 -chardev socket,id=charmonitor,fd=36,server,nowait -mon chardev=charmonitor,id=monitor,mode=control 
 8 -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 
 9 -global PIIX4_PM.disable_s4=1 -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 
10 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x1e 
11 -drive file=/run/fs_mount/ssd/dev-ce9432-disk1,format=qcow2,if=none,id=drive-virtio-disk0,cache=none,aio=native,throttling.bps-read=157286400,throttling.bps-write=78643200,throttling.iops-read=20000,throttling.iops-write=10000 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x10,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1,write-cache=on 
12 -drive file=/run/fs_mount/ssd/dev-ce9432-disk2,format=qcow2,if=none,id=drive-virtio-disk1,cache=none,aio=native,throttling.bps-read=31457280,throttling.bps-write=15728640,throttling.iops-read=5000,throttling.iops-write=2500 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x11,drive=drive-virtio-disk1,id=virtio-disk1,write-cache=on 
13 -netdev tap,fds=44:47:49:50,id=hostnet0,vhost=on,vhostfds=51:52:53:54 
14 -device virtio-net-pci,mq=on,vectors=10,netdev=hostnet0,id=net0,mac=00:07:00:fe:87:45,bus=pci.0,addr=0x3 
15 -netdev tap,fds=55:56:57:59,id=hostnet1,vhost=on,vhostfds=63:64:66:68 
16 -device virtio-net-pci,mq=on,vectors=10,netdev=hostnet1,id=net1,mac=00:07:00:1a:4c:ae,bus=pci.0,addr=0x4 
17 -netdev tap,fds=69:70:71:72,id=hostnet2,vhost=on,vhostfds=73:74:75:76 
18 -device virtio-net-pci,mq=on,vectors=10,netdev=hostnet2,id=net2,mac=00:07:00:e1:65:76,bus=pci.0,addr=0x5 
19 -chardev socket,id=charserial0,fd=78,server,nowait 
20 -device isa-serial,chardev=charserial0,id=serial0 
21 -chardev socket,id=charchannel0,fd=79,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel0,id=channel0,name=org.qemu.guest_cloud 
22 -vnc 0.0.0.0:12,websocket=5712 -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -incoming defer 
23 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x1f -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny 
24 -msg timestamp=on
25 
26 
27 "/usr/libexec/qemu-kvm", ["/usr/libexec/qemu-kvm", 
28 "-name", "guest=vm-test,debug-threads=on", 
29 "-S", "-object", "secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-1-vm-test/master-key.aes", 
30 "-machine", "pc-i440fx-rhel7.6.0,accel=kvm,usb=off,dump-guest-core=off", "-cpu", "host", "-m", "2048", "-overcommit", 
31 "mem-lock=off", "-smp", "2,sockets=2,cores=1,threads=1", "-uuid", "e0cccc71-1a93-d008-15c0-60155feecb01", "-no-user-config", 
32 "-nodefaults", "-chardev", "socket,id=charmonitor,fd=36,server,)
33 
34 qemu-kvm -chardev socket,id=charserial0,fd=78,server,nowait  -device isa-serial,chardev=charserial0,id=serial0 
35 /usr/libexec/qemu-kvm  -vnc 0.0.0.0:0 -chardev socket,id=charserial0,path=/var/temp.socket,server,nowait  -device isa-serial,chardev=charserial0,id=serial0 

 

posted @ 2023-03-14 15:52  maojun1998  阅读(30)  评论(0编辑  收藏  举报