alpinelinux / alpine-make-vm-image

Make customized Alpine Linux disk image for virtual machines
MIT License
299 stars 101 forks source link

VM does not boot or get IP from dhcp #13

Closed rohityadavcloud closed 4 years ago

rohityadavcloud commented 4 years ago

By default eth0 is DOWN for some reason, I've to enable it manually and then call udhcpc to get IP address. Any pointers @jirutka thanks.

rohityadavcloud commented 4 years ago

Screenshot from 2020-07-13 16-23-06

rohityadavcloud commented 4 years ago

In another fresh run it worked, closing

tryauuum commented 2 years ago

absolutely no networking for me as well. Same symptoms as @rohityadavcloud described, eth0 is down, but if you manually bring it up you can actually have working network. /etc/network/interfaces is not present in generated image.

the command I used to generate image:

./alpine-make-vm-image --image-format raw --serial-console --image-size 400M /var/lib/libvirt/images/alpine.raw
tryauuum commented 2 years ago

for me the following change does fix the networking issue https://github.com/tryauuum/alpine-make-vm-image/commit/0314ee90471b9c53d6c3796fc08c59e6f86262b7

jirutka commented 2 years ago

alpine-make-vm-image doesn’t set up networking, it’s up to you to provide it with a script that will configure whatever you need for your environment. It’s not needed to modify the script for this.