VirtualBox 7.0.2 + Ubuntu 22.04.1

目录

一、下载

VirtualBox 7.0.2

Ubuntu Server 22.04.1

二、安装

三、配置网络环境

VirtualBox网卡设置

Ubuntu网卡设置

1、根据VirtualBox网卡2设置,查看IP地址多出一个网卡名“enp0s8”

2、设置“enp0s8”网卡

3、网卡生效及查看"enp0s8"网卡IP地址

4、测试上网和远程访问


一、下载

VirtualBox 7.0.2

下载地址:https://www.virtualbox.org/wiki/Downloads

Ubuntu Server 22.04.1

下载地址:Get Ubuntu Server | Download | Ubuntu

二、安装

咔咔咔...........一顿装

三、配置网络环境

VirtualBox网卡设置

【网卡1】默认NAT,用来上网

 【网卡2】通过ssh远程访问

Ubuntu网卡设置

1、根据VirtualBox网卡2设置,查看IP地址多出一个网卡名“enp0s8”

2、设置“enp0s8”网卡

① 编辑文件 00-installer-config.yaml

② 编辑内容

# This is the network config written by 'subiquity'
network:
  ethernets:
    enp0s3:
      dhcp4: true
      dhcp4-overrides:
          route-metric: 100
    enp0s8:
      dhcp4: true
      dhcp4-overrides:
          route-metric: 200
  version: 2

3、网卡生效及查看"enp0s8"网卡IP地址

4、测试上网和远程访问

  • 测试Ubuntu是否可以上网:

  •  测试远程是否可以访问:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值