orbit icon indicating copy to clipboard operation
orbit copied to clipboard

Creating VM image for hours

Open Alaric617R opened this issue 2 years ago • 2 comments

I run a x86 machine with unbuntu 20.04 installed on windows. When running ./scripts/mkimg.sh, it takes hours and still didn't have a sign finishing. Is it because the mirror site too slow?

I: Keyring file not available at /usr/share/keyrings/debian-archive-keyring.gpg; switching to https mirror https://deb.debian.org/debian

Alaric617R avatar Feb 10 '23 02:02 Alaric617R

It is likely so. You can try appending a mirror URL to the debootstrap line in the script. Usage example at the end of this link. Please try choosing a mirror near your location from the list of mirrors.

superobertking avatar Feb 10 '23 03:02 superobertking

Met the same issue today. Turns out to be a bad ipv6 route. I can successfully finish debootstrap by disabling ipv6 by adding those to sysctl.conf and then sysctl -p:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

There are other methods to disable IPv6 depending on different network manager. Otherwise, fixing the ipv6 route configuration on the network would also help.

superobertking avatar Oct 30 '23 20:10 superobertking