machine icon indicating copy to clipboard operation
machine copied to clipboard

Bug: Can't get IP address

Open cmoulliard opened this issue 6 years ago • 2 comments

Issue

On macos, we can't get the IP address of the VM running on Virtualbox

podman-machine version
podman-machine version dev, build 16aed9e

podman-machine status box
Running

podman-machine ip box
Error getting IP address: Could not find matching IP for MAC address 0800275142b7

cmoulliard avatar Sep 18 '19 11:09 cmoulliard

Cannot reproduce this, unfortunately. Maybe it is Mac-specific ?

You could try comparing with whatever info VBoxManage returns

afbjorklund avatar Sep 29 '19 19:09 afbjorklund

@cmoulliard I faced the same issue. I replaced the tinycore-based box with fedora-based VM. I continue to name it box for convenience.

podman-machine create --virtualbox-boot2podman-url \
  https://github.com/snowjet/boot2podman-fedora-iso/releases/download/d1bb19f/boot2podman-fedora.iso \
  --virtualbox-memory="4096" \
  --virtualbox-share-folder ~/Code:code \
  box

It has a downside of booting twice as slow, but it consistently works for me:

$ podman-machine start
Starting "box"...
(box) Check network to re-create if needed...
(box) Waiting for an IP...
Machine "box" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `podman-machine env` command.

I don't think this is relevant but I also tried removing all host-only networks under File > Host Network Manager. Screenshot 2020-06-29 at 12 29 55 AM

inscapist avatar Jun 28 '20 16:06 inscapist