现在的位置: 首页 > 综合 > 正文

使用nat的默认网络,配置pxe服务

2017年12月22日 ⁄ 综合 ⁄ 共 616字 ⁄ 字号 评论关闭

virsh # net-dumpxml default
<network>
  <name>default</name>
  <uuid>de718aab-fd71-d359-08b8-ba846473bbb3</uuid>
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0' />
  <mac address='52:54:00:DA:8E:DB'/>
  <ip address='192.168.122.1' netmask='255.255.0.0'>
    <tftp root='/tftpboot' />
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.200' />
      <bootp file='/pxelinux.0' />
    </dhcp>
  </ip>

</network>

qemu-system-x86_64 -boot c -drive file=/var/lib/libvirt/images/sles11sp2.img,if=virtio -m 1024 -vnc 0.0.0.0:0 -netdev type=tap,script=/usr/bin/qemu-ifup,id=hostnet0 -device virtio-net-pci,id=net0,mac=52:54:00:0b:eb:e4,netdev=hostnet0

抱歉!评论已关闭.