Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate dangling machine-id #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Towerful
Copy link

as per https://www.reddit.com/r/homelab/comments/w6v6n9/using_proxmox_need_vm_templates_read_on/ii9cnx5/

This is to truncate the dangling machine-id left by libguestfs.
The file cannot be removed, as this signals something different to the system. The recommended solution is to truncate the file.

Possible machine-id locations are /etc/machine-id and /etc/machine-info.
Unfortunately, if the truncate operation fails due to a missing file, it will corrupt the image.
So first, touch the file to make sure they exist, then truncate them both

as per https://www.reddit.com/r/homelab/comments/w6v6n9/using_proxmox_need_vm_templates_read_on/ii9cnx5/

This is to truncate the dangling machine-id left by libguestfs.   
The file cannot be removed, as this signals something different to the system. The recommended solution is to truncate the file.

Possible machine-id locations are `/etc/machine-id` and `/etc/machine-info`.   
Unfortunately, if the truncate operation fails due to a missing file, it will corrupt the image.  
So first, touch the file to make sure they exist, then truncate them both
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant