Open LanceLiu89 opened 4 years ago
- 使用命令行启动虚拟机,虚拟机可以ping通外面,但宿主机无法ping通虚拟机 home/lrs/project/new_qemu_libvirt_repo/qemu-kvm-1_5_3_105_el7_pa/x86_64-softmmu/qemu-system-x86_64 -cpu host -smp 16 -boot c -m 32768 --enable-kvm -bios /home/lrs/project/seabios-1.10.2/out/bios.bin -hda /data/rhel7.2-kernel-debug.raw -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -net bridge,br=virbr0 -net nic,model=virtio,macaddr=ee:ee:01:10:e2:31 -vnc 0.0.0.0:11 -chardev pipe,path=qemudebugpipe,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios
[root@CNSZ037551 project]# ping 192.168.122.187 PING 192.168.122.187 (192.168.122.187) 56(84) bytes of data. From 192.168.122.1 icmp_seq=1 Destination Host Unreachable From 192.168.122.1 icmp_seq=2 Destination Host Unreachable
解决,原因是虚拟机里面也开启了virbr0 网段也是192.168.122.1/24 删除后正常
- 为什么虚拟机分配内存要分为below 4G和above
3.5G ~ 4G 内存不能用于RAM
[root@CNSZ037551 project]# ping 192.168.122.187 PING 192.168.122.187 (192.168.122.187) 56(84) bytes of data. From 192.168.122.1 icmp_seq=1 Destination Host Unreachable From 192.168.122.1 icmp_seq=2 Destination Host Unreachable