hetzneronline / installimage

Bash scripts to universally deploy various distributions
Other
517 stars 143 forks source link

Errors at 'Setting up network config': '/installimage.*/hdd/etc/netplan/01-netcfg.yaml: No such file or directory' #95

Closed Ma-ve closed 7 months ago

Ma-ve commented 8 months ago

Trying to import a Ubuntu 22.04 image, but it consistently fails at this specific spot.

Screenshot:

image

debug.txt:

[11:11:17] # starting installimage
[11:11:17] -------------------------------------
[11:11:19] :   Hardware data:
[11:11:19] :   CPU1: NotSpecified Not Specified (Cores 8)
[11:11:19] :   Memory:  15606 MB
[11:11:19] :   Disk /dev/sda: 163 GB (=> 152 GiB)
[11:11:19] :   Total capacity 152 GiB with 1 Disk
[11:11:19] -------------------------------------
[11:11:19] # make clean config
[11:11:19] # SYSTYPE: vServer
[11:11:19] # SYSMFC:  Hetzner
[11:11:19] running swapoff -a
[11:11:20] running dmsetup remove_all
[11:11:20] # executing setupfile
[11:11:20] # SYSTYPE: vServer
[11:11:20] # SYSMFC:  Hetzner
[11:11:20] # checking if the script is disabled
[11:11:20] # starting menu...
[11:11:23] # chosen image: [ custom ]
[11:11:23] # copy & create config...
[11:11:25] # starting mcedit...
[11:11:25] Image info:
[11:11:25] :   DISTRIB ID:               debian
[11:11:25] :   DISTRIB RELEASE/CODENAME: custom
[11:11:45] # validating vars...
[11:11:45] :   /boot/efi : 256
[11:11:45] :   / : all
[11:11:45] Image info:
[11:11:45] :   DISTRIB ID:               ubuntu
[11:11:45] :   DISTRIB RELEASE/CODENAME: 2204
[11:11:45] :   Size of the first hdd is: 163842097152
[11:11:45] :   check_dos_partitions
[11:11:45] # asking for confirmation...
[11:11:47] # Confirmation for drive /dev/sda accepted
[11:11:47] # executing installfile...
[11:11:47] # SYSTYPE: vServer
[11:11:47] # SYSMFC:  Hetzner
[11:11:48] :   /boot/efi : 256
[11:11:48] :   / : all
[11:11:48] :   check_dos_partitions
[11:11:48] Image info:
[11:11:48] :   DISTRIB ID:               ubuntu
[11:11:48] :   DISTRIB RELEASE/CODENAME: 2204
[11:11:48] # load ubuntu specific functions...
[11:11:48] # Deleting partitions
[11:11:48] running swapoff -a
[11:11:49] running dmsetup remove_all
[11:11:49] # Deleting partitions on /dev/sda
[11:11:50] :   GPT data structures destroyed! You may now partition the disk using fdisk or
[11:11:50] :   other utilities.
[11:11:50] # Test partition size
[11:11:50] Using GPT partition layout.
[11:11:50] :   check_dos_partitions
[11:11:50] # Creating partitions and /etc/fstab
[11:11:50] # Creating partitions on /dev/sda
[11:11:50] :   deactivate all dm-devices with dmraid and dmsetup
[11:11:50] :   no raid disks
[11:11:50] :   
[11:11:50] :   /dev/sda:
[11:11:50] :   re-reading partition table
[11:11:51] :   Creating new GPT entries in memory.
[11:11:51] :   The operation has completed successfully.
[11:11:52] :   The operation has completed successfully.
[11:11:53] :   The operation has completed successfully.
[11:11:53] :   528384
[11:11:54] :   The operation has completed successfully.
[11:11:54] :   reread partition table after 5 seconds
[11:12:00] :   deactivate all dm-devices with dmraid and dmsetup
[11:12:00] :   no raid disks
[11:12:04] # formatting  /dev/sda1  with  vfat
[11:12:05] :   mkfs.fat 4.2 (2021-01-31)
[11:12:09] # formatting  /dev/sda2  with  ext4
[11:12:09] :   /dev/sda2: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
[11:12:21] # Mounting partitions
[11:12:21] # Sync time via ntp
[11:12:21] # Downloading image (http)
[11:17:02] :   Using standard Hetzner Online GmbH pubkey: /root/.oldroot/nfs/install/gpg/public-key.asc
[11:17:02] :   Using standard Hetzner Online GmbH pubkey: /root/.oldroot/nfs/install/gpg/public-key-2018.asc
[11:17:02] :   Using standard Hetzner Online GmbH pubkey: /root/.oldroot/nfs/install/gpg/public-key-2023.asc
[11:17:02] :   gpg: key 9E03E2BEB8F0F463: "Hetzner Online AG, RZ-Softwareentwicklung (Signing Key 2013) <info@hetzner.de>" not changed
[11:17:02] :   gpg: Total number processed: 1
[11:17:02] :   gpg:              unchanged: 1
[11:17:02] :   gpg: key 7030DBE4387333B3: "Hetzner Online GmbH image signing key <info@hetzner.com>" not changed
[11:17:02] :   gpg: Total number processed: 1
[11:17:02] :   gpg:              unchanged: 1
[11:17:02] :   gpg: key 5D6C6CC99D52C310: "info@hetzner.com" not changed
[11:17:02] :   gpg: key B97D95710D4B657E: "Hetzner Online GmbH (image signing key) <info@hetzner.com>" not changed
[11:17:02] :   gpg: Total number processed: 2
[11:17:02] :   gpg:              unchanged: 2
[11:17:02] # Validating image before starting extraction
[11:17:02] # Extracting image (http)
[11:35:20] :   tar: ./boot/efi: Not found in archive
[11:35:20] :   tar: Exiting with failure status due to previous errors
[11:40:38] :   cp: cannot create regular file '/installimage.Nl6dG/hdd/etc/fstab': No such file or directory
[11:40:38] # Setting up network config
[11:40:38] # setup network config
[11:40:38] # setting up /etc/netplan/01-netcfg.yaml
[11:40:38] => FAILED
[11:40:38] Sent install.conf to statsserver: HTTP/2 201 
[11:40:38] Sent debug.txt to statsserver: HTTP/2 201 
[11:40:38] cleaning up

If it's of any relevance, the project ID from the Cloud Console is 2716459, and the server ID is 41600525.

If there's any additional information required, please do let me know!

Best,

asciiprod commented 7 months ago

For support regarding installimage, please open a ticket within your Hetzner account.

Ma-ve commented 7 months ago

For support regarding installimage, please open a ticket within your Hetzner account.

I have, and this was the response (Ticket#2024010803014286):

Packages for our dedicated root servers and Cloud servers do not include software support. The packages also do not include support for configuring these servers. For dedicated root and Cloud servers, we only provide the hardware, network access and necessary infrastructure; and of course, we support our customers if there are any faults or disruptions. Since you are a customer of one of our dedicated root servers or Cloud servers, you are responsible for the configuration and administration of your server and for the software which runs on it.