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

[Linux] Add variables for installing FusionOS with static IP address #531

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

keirazhang
Copy link
Contributor

Added below 4 variables to configure static IP at deploy_vm for FusionOS.

# ethernet0_ipv4_addr: 192.168.1.10
# ethernet0_gateway: 192.168.1.1
# ethernet0_netmask: 255.255.255.0
# ethernet0_nameservers: 192.168.1.1,192.168.1.2

After autoinstall completes, the network interface is successfully configured with static IP:

Nameservers are set:

# cat /etc/sysconfig/network-scripts/ifcfg-ens33 
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPADDR=x.x.x.x
PREFIX=20
GATEWAY=x.x.x.x
DNS1=x.x.x.x
DNS2=x.x.x.x
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=e3d3aa8b-76ad-4104-b06e-8ed5e1e12245
DEVICE=ens33
ONBOOT=yes

Nameservers are not set:

# cat /etc/sysconfig/network-scripts/ifcfg-ens33 
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPADDR=x.x.x.x
PREFIX=20
GATEWAY=x.x.x.x
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=0f031a4f-0f06-4537-bd5a-97d44f7a80f2
DEVICE=ens33
ONBOOT=yes

@keirazhang keirazhang added this to the 3.1 milestone Jan 9, 2024
@keirazhang keirazhang force-pushed the support_fusionos_staticip branch from 811c475 to 3e6e696 Compare January 9, 2024 11:26
linhuali
linhuali previously approved these changes Jan 10, 2024
Copy link
Collaborator

@linhuali linhuali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot!

Signed-off-by: Qi Zhang <[email protected]>
@keirazhang keirazhang merged commit b69332c into vmware:main Jan 11, 2024
ZouYuhua pushed a commit to ZouYuhua/ansible-vsphere-gos-validation that referenced this pull request Jan 18, 2024
@keirazhang keirazhang deleted the support_fusionos_staticip branch March 7, 2024 05:15
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.

3 participants