kvm 虚拟机调试

/usr/local/bin/qemu-system-x86_64 -enable-kvm -M pc -nodefconfig -nodefaults -rtc base=localtime,clock=host -chardev socket,id=monitor,path=/opt/keqi/monitors/49526509-9232-4671-91ab-8cccd95e78da14,server,nowait -mon chardev=monitor,mode=readline -smp 1 -m 1024 -name spice -boot order=dcn -drive if=none,id=drive-fdc0-0-0,readonly=on,format=raw -global isa-fdc.driveA=drive-fdc0-0-0 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive media=disk,file=/opt/datastore/default/spice/.VM-49526509-9232-4671-91ab-8cccd95e78da14/spice_1.qcow2,if=none,id=drive-ide0-0-0,format=qcow2,cache=writethrough -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -net nic,model=rtl8139,macaddr=00:e0:4c:c6:bd:f8,vlan=0 -net tap,script=/opt/keqi/.network/if-up,downscript=/opt/keqi/.network/if-down,ifname=tap-s0-1,vlan=0 -vga qxl -soundhw ac97 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+x2apic -spice addr=0.0.0.0,port=5901,password=11111111 -usb -usbdevice tablet -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0 -chardev spicevmc,name=vdagent,id=vdagent -device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0


/usr/local/bin/qemu-system-x86_64 -enable-kvm -M pc -nodefconfig -nodefaults -rtc base=localtime,clock=host -monitor stdio -smp 1 -m 1024 -name spice -boot order=dcn -drive if=none,id=drive-fdc0-0-0,readonly=on,format=raw -global isa-fdc.driveA=drive-fdc0-0-0 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive media=disk,file=/opt/datastore/default/spice/.VM-49526509-9232-4671-91ab-8cccd95e78da14/spice_1.qcow2,if=none,id=drive-ide0-0-0,format=qcow2,cache=writethrough -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -net nic,model=rtl8139,macaddr=00:e0:4c:c6:bd:f8,vlan=0 -net tap,script=/opt/keqi/.network/if-up,downscript=/opt/keqi/.network/if-down,ifname=tap-s0-1,vlan=0 -vga qxl -soundhw ac97 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+x2apic -spice addr=0.0.0.0,port=5901,password=11111111 -usb -usbdevice tablet -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0 -chardev spicevmc,name=vdagent,id=vdagent -device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0


上面是1个虚拟机的命令,下面那个用于调试,命令参数不一样,可以仔细对比一下。




你可能感兴趣的:(kvm 虚拟机调试)