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

Closed
opened 2024-01-08 11:53:41 +01:00 by Ma-ve · 3 comments
Ma-ve commented 2024-01-08 11:53:41 +01:00 (Migrated from github.com)

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,

Trying to import a Ubuntu 22.04 image, but it consistently fails at this specific spot. Screenshot: ![image](https://github.com/hetzneronline/installimage/assets/11227996/de8acfc4-170b-4bfb-b975-d31ca7ae9429) `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 2024-01-15 07:45:26 +01:00 (Migrated from github.com)

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

For support regarding installimage, please open a ticket within your Hetzner account.
Ma-ve commented 2024-01-15 10:09:10 +01:00 (Migrated from github.com)

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.

> 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.
iAlex97 commented 2025-10-07 15:43:30 +02:00 (Migrated from github.com)

In case somebody comes across this in the future, the problem is that your "system backup" archive does not contain the /boot with its kernel or it's not in the right place - see requirements

In my particular setup, I had 2 variations of this issue:

  1. rebooted the "source" server into rescue mode and mounted the os partition without the /boot partition (in case your system is UEFI you might want to mount /boot/efi as well). This resulted in an archive without /boot and installimage would rightly complain that it could not find it.
  2. After mounting the /boot in its right place, the next problem were the paths in the tar archive. I created it with an absolute path and missed the fact that it included said path in the archive. The correct way of creating the archive is using the -C argument as shown below:
mkdir /data

# os data
mount -t auto /dev/nvme1n1p2 /data
# kernel
mount -t auto /dev/nvme1n1p2 /data/boot

cd /tmp
# this would first cd to /data and then crete the archive using relative paths. be careful to update your --exclude flag paths as well
tar vcf custom.tar.gz --exclude=./dev --exclude=./mnt --exclude=./proc --exclude=./sys --exclude=./tmp --exclude=./var/lib/docker/overlay2 --exclude=./lost+found -C /data/ .
In case somebody comes across this in the future, the problem is that your "system backup" archive does not contain the `/boot` with its kernel or it's not in the right place - see [requirements](https://docs.hetzner.com/robot/dedicated-server/operating-systems/installing-custom-images/#requirements) In my particular setup, I had 2 variations of this issue: 1. rebooted the "source" server into rescue mode and mounted the os partition without the /boot partition (in case your system is UEFI you might want to mount /boot/efi as well). This resulted in an archive without `/boot` and installimage would rightly complain that it could not find it. 2. After mounting the `/boot` in its right place, the next problem were the paths in the tar archive. I created it with an absolute path and missed the fact that it included said path in the archive. The correct way of creating the archive is using the `-C` argument as shown below: ```bash mkdir /data # os data mount -t auto /dev/nvme1n1p2 /data # kernel mount -t auto /dev/nvme1n1p2 /data/boot cd /tmp # this would first cd to /data and then crete the archive using relative paths. be careful to update your --exclude flag paths as well tar vcf custom.tar.gz --exclude=./dev --exclude=./mnt --exclude=./proc --exclude=./sys --exclude=./tmp --exclude=./var/lib/docker/overlay2 --exclude=./lost+found -C /data/ . ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DiamantTh/installimage#95
No description provided.