cloudius-systems / capstan

Capstan, a tool for packaging and running your application on OSv. http://osv.io/capstan
Other
363 stars 82 forks source link

Capstan DHCP #138

Open yieldone opened 9 years ago

yieldone commented 9 years ago

Hi folks,

This could be a KVM thing, but I've noticed that if I run an OSv image via:

scripts/run.py -n -v

I'll get the same IP address assigned to the instance.

Running via:

capstan run -n bridge

Will give me a different IP address each time. Is this an aspect of using bridge or something else? It would be quite nice to be able to know the IP address ahead of time.

Cheers,

Rowland

dorlaor commented 9 years ago

It's because capstan randomly selects a MAC address instead of letting qemu set it. You're welcome to remove that from Capstan - check 'util.GenerateMAC' in hypervisor/qemu/qemu.go

On Mon, Feb 23, 2015 at 12:07 PM, yieldone notifications@github.com wrote:

Hi folks,

This could be a KVM thing, but I've noticed that if I run an OSv image via:

scripts/run.py -n -v

I'll get the same IP address assigned to the instance.

Running via:

capstan run -n bridge

Will give me a different IP address each time. Is this an aspect of using bridge or something else? It would be quite nice to be able to know the IP address ahead of time.

Cheers,

Rowland

— Reply to this email directly or view it on GitHub https://github.com/cloudius-systems/capstan/issues/138.