Add network config suggestions for VM running Ubuntu#721
Merged
innobead merged 1 commit intoharvester:mainfrom Mar 13, 2025
Merged
Add network config suggestions for VM running Ubuntu#721innobead merged 1 commit intoharvester:mainfrom
innobead merged 1 commit intoharvester:mainfrom
Conversation
|
w13915984028
approved these changes
Mar 4, 2025
docs/vm/backup-restore.md
Outdated
|
|
||
| :::note | ||
|
|
||
| If your OS is Ubuntu and the version is newer than 16.04, the network configuration is very likely handled by `netplan` by default. Please `Edit Config` > `Advanced Options` on your VM before creating backup, and take the following network-data as reference for DHCP configuration. |
Member
There was a problem hiding this comment.
Edit config means the VM needs to be restarted in general.
Add this hint to vm creation page too?
Contributor
Author
There was a problem hiding this comment.
Yup. The VM needs to be stopped before Edit Config. I'll add to the vm creation.
docs/vm/backup-restore.md
Outdated
| dhcp-identifier: mac | ||
| version: 2 | ||
| ``` | ||
| The restored VM will retain the same machine ID as the original, which will cause it to receive the same IP address from the DHCP server if `dhcp-identifier: mac` is not specified since `netplan` use machine ID as dhcp identifier by default. It is essential to configure the network-data before performing a VM backup for Ubuntu systems. Failure to do so will result in unexpected behavior and potential network conflicts. |
Member
There was a problem hiding this comment.
A further question, is it possbile to mutator the VM to change dhcp-identifier when restoring? That will benefits all users.
Contributor
Author
There was a problem hiding this comment.
I tried w/o luck. They will need to modify the netplan config and do netplan apply
Signed-off-by: Chris Chiu <chris.chiu@suse.com>
Contributor
Author
|
Thanks. I revised the backup-restore part per the suggestion and add the same in create-vm. |
innobead
approved these changes
Mar 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to harvester/harvester#4474