utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.6k stars 1.33k forks source link

Creating Custom Networks #4184

Open ozbrk opened 2 years ago

ozbrk commented 2 years ago

Describe the issue If the UTM is really plays to be a serious vm solution it will require to have a feature to make backups and set custom netowrks like vmware.

Are there any solutions to this? If there is not I will open a feature request about it.

conath commented 2 years ago

There are some advanced network options in UTM (depends on the guest configuration). Could you please describe your workflow, and link to the VMWare feature you mentioned? Thanks.

ozbrk commented 2 years ago

Ummmm the VMware feature is quite simple it is the network manager of the applicatiın where you can create a new emulated connection and connect it to whatever interface you wish for.

BlackthornYugen commented 1 year ago

I'd love to be able to use UTM instead of parallels but without more advanced networking I can't migrate. I'd really like to be able to have the option for host-only as well as shared/nat bridges like Parallels and VirtualBox provide. Bonus points if we can use pre-defined bridges.

It would make my transition so much easier if I could start experimenting with UTM by adding my UTM VMs into my Parallels private network. Currently trying to accomplish this with the following with limited success:

# Remove UTM vm (4) from UTM bridge (102)
sudo ifconfig bridge102 deletem vmenet4

# Add UTM vm (4) to Parallels host-only VM (101)
sudo ifconfig bridge101 addm vmenet4

# Restart interface inside UTM, DHCP works getting address on Parallels network, 
# can ping Parallels hosts, but can't curl them.
osy commented 1 year ago

UTM uses QEMU as the backend. If the options you want to see are available in QEMU please provide the command line arguments. If it’s not available in QEMU please file an issue with their project gitlab. Thanks.

wdormann commented 1 year ago

Just found this ticket as the result of a workflow that I just attempted. That is: 1) Have a VM that functions as a DHCP server on a specified virtual network. 2) Any other VM that is connected to the same network will get an IP address from the VM in step 1).

With VMware, one can just pick a "VMNet" number, and by default that will be equivalent to being plugged into a network switch identified by that number. For example, I have a DHCP server VM on VMnet5, and any other VM that I connect to VMnet5 will get an IP address from that first VM.

With UTM, regardless of whether I select Isolate Guest from Host or not in the advanced settings, the VM will get an IP address from UTM.

Beyond the non-DHCP-served network connection option, related to this is the seemingly missing option to choose what network a VM is plugged into when the VM is running. That is, similar to how I can plug a computer's ethernet cable into another thing without needing to turn it off, I should be able to specify what a virtual network adapter plugs into without needing to turn off the VM.

dantonyblanco commented 11 months ago

Just found this ticket as the result of a workflow that I just attempted. That is:

  1. Have a VM that functions as a DHCP server on a specified virtual network.
  2. Any other VM that is connected to the same network will get an IP address from the VM in step 1).

With VMware, one can just pick a "VMNet" number, and by default that will be equivalent to being plugged into a network switch identified by that number. For example, I have a DHCP server VM on VMnet5, and any other VM that I connect to VMnet5 will get an IP address from that first VM.

With UTM, regardless of whether I select Isolate Guest from Host or not in the advanced settings, the VM will get an IP address from UTM.

Beyond the non-DHCP-served network connection option, related to this is the seemingly missing option to choose what network a VM is plugged into when the VM is running. That is, similar to how I can plug a computer's ethernet cable into another thing without needing to turn it off, I should be able to specify what a virtual network adapter plugs into without needing to turn off the VM.

I need exactly this but I'm unable to make it work with the existing settings.