Git Product home page Git Product logo

qemu-ipxe's Introduction

qemu and ipxe

Working config:

Qemu with basic network bridge and dnsmasq over ipxe

cat /etc/qemu/bridge.conf

allow br0

sudo ip link add name br0 type bridge    
sudo ip addr add 172.20.0.1/16 dev br0    
sudo ip link set br0 up    

Install dnsmasq:

sudo pacman -Ss dnsmasq

Check the status and run ...

systemctl status dnsmasq  
sudo systemctl start dnsmasq  

Open another window to view the continuous logging

journalctl -fu dnsmasq.service  

Through trial and error, these options just worked together in /etc/dnsmasq.conf:

$ grep -v ^# /etc/dnsmasq.conf | strings
interface=br0  
bind-interfaces  
dhcp-range=172.20.0.2,172.20.0.20  
enable-tftp  
tftp-root=/srv/tftp  
log-dhcp  
pxe-service=x86PC,"PXELINUX (BIOS)",boot/pxelinux  
tftp-secure  
$ qemu-system-x86_64 -nic bridge,br=br0,model=virtio-net-pci -m 1G

in another window:

$ vncviewer :5900

To get the kernel and initramfs, see this post to download and copy those files into the tftp tree below https://github.com/mitalix/qemu-debian-buster

$ tree /srv/tftp/  
/srv/tftp/  
├── boot  
    ├── initramfs-linux.img  
    ├── pxelinux.0  
    ├── pxelinux.cfg  
    │   └── default  
    └── vmlinuz-linux  

$ cat /srv/tftp/boot/pxelinux.cfg/default

DEFAULT linux  
        SAY Now booting the kernel from SYSLINUX ...  
LABEL linux  
        KERNEL vmlinuz-linux  
        initrd initramfs-linux.img  
        SYSAPPEND 3  

qemu-ipxe's People

Contributors

mitalix avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.