Skip to content

Native macOS networking for QEMU using vmnet.framework and socket networking.

License

Notifications You must be signed in to change notification settings

nxsre/qemu-vmnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qemu-vmnet

Native macOS networking for QEMU using vmnet.framework and socket networking.

Requirements

  • macOS 10.10 or later.
  • Any QEMU version that supports socket networking), I tested it with 6.1.0 on ARM.

Getting started

Install qemu-vmnet

The only way for now is to have a working Go environment and build qemu-vmnet yourself.

Start qemu-vmnet

You have to start qemu-vmnet with sudo, this is a requirement of vmnet.

Example:

sudo qemu-vmnet

Add a network device

You need to add a new network device to your virtual machine.

Note: netdev value is the id of the network device, can be any value.

Example:

-device virtio-net,netdev=net0

Configure the network device

The network device you just added must be configured to use socket networking and UDP port 1234 (can be changed in the future, see Options).

Note: localaddr can be any free port, but you must specify it.

Example:

-netdev socket,id=net0,udp=:1234,localaddr=:1235

Enjoy

Enjoy your fully working networking with a dedicated IP!

Options

No options for now, the UDP listener is announced on port 1234 and vmnet is configured in NAT mode.

In the future the UDP port can be changed and maybe vmnet can be configured in bridged mode :)

About

Native macOS networking for QEMU using vmnet.framework and socket networking.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Go 67.7%
  • Objective-C 28.4%
  • C 3.9%