Closed baude closed 1 year ago
/assign
I think this may have been user error? I am not able to reproduce ...
The only error messages in v0.1.1 containing nat
are :
pkg/config/virtio.go: return fmt.Errorf("Unexpected value for virtio-net 'nat' option: %s", option.value)
pkg/config/virtio.go: return fmt.Errorf("'nat' and 'unixSocketPath' cannot be set at the same time")
pkg/config/virtio.go: return fmt.Errorf("'nat' and 'fd' cannot be set at the same time")
pkg/config/virtio.go: return fmt.Errorf("One of 'nat' or 'fd' or 'unixSocketPath' must be set")
The one you mention in the issue description seems to be from before commit cdb7c81:
return fmt.Errorf("One of 'nat' or 'fd' must be set")
I agree this looks like a user error, and an older version being involved.
When creating a vfkit network device and then creating the vfkit command using .Cmd(), an error is kicked out stating the network device requires an fd or NAT to be enabled.
According to the commit log, this should not be required.
The code I used is: