Commit 23c9cad
committed
guestfs: bringup: fix ssh key injection
Fixes error:
sudo virt-sysprep -a
/var/lib/libvirt/images/kdevops/guestfs/debian13/root.raw \
--hostname debian13 --ssh-inject \
kdevops:file:/media/tarkir/dagomez/src/linux-kdevops/
kdevops/guestfs/debian13/ssh/id_ed25519.pub \
--timezone Etc/UTC
[ 0.0] Examining the guest ...
[ 2.2] Performing "abrt-data" ...
[ 2.2] Performing "backup-files" ...
[ 2.3] Performing "bash-history" ...
...
[ 3.2] Performing "customize" ...
[ 3.2] Setting a random seed
virt-sysprep: warning: random seed could not be set for this type of
guest
[ 3.3] Setting the machine ID in /etc/machine-id
[ 3.3] Setting the hostname: debian13
[ 4.0] SSH key inject: kdevops
virt-sysprep: error: ssh-inject: the user kdevops does not exist on
the guest
If reporting bugs, run virt-sysprep with debugging enabled and include
the complete output:
virt-sysprep -v -x [...]
Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>1 parent 7a8fba2 commit 23c9cad
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
76 | 88 | | |
77 | 89 | | |
78 | 90 | | |
| |||
0 commit comments