Jun's Blog

Output, activities, memo and etc.

Install Fedora 23

Install Fedora Linux 23 on Virtual Box as guest OS.

Select "Server" type, and download iso image of DVD.
https://getfedora.org/en/server/download/

Installation policy.
Minimum install.

  • CPU: Intel 64 bit
  • Memory: 1024 MB
  • HDD: 20 GB

Setting of Virtual Box

Click "New" button.

Name and operating system

Name: Fedora23
Type: Linux
Version: Fedora (64 bit)

Memory size

1024 MB

Hard drive

Select "Create a virtual hard drive now"

Hard drive file type

Select "VDI (VirtualBox Disk Image)"

Storage on physical hard drive

Select "Dynamically allocated"

File location and size

File name: Fedora23
Size of virtual hard drive: 20 GB


After initial settings.

Network -> Enable Network Adapter: NAT

DVD Insert & Start Guest OS.

Installer page on Fedora 23

WELCOME TO FEDORA 23

Select "English (United States)"

LOCALIZATION

  • KEYBOARD
    • English (US)
  • LANGUAGE SUPPORT
    • English - English (Unied States)
    • Japanese

SOFTWARE

  • INSTALLATION SOURCE
    • Local media
  • SOFTWARE SELECTION
    • Minimal Install => Select this.
    • Fedora Server
    • Web Server
    • Infrastructure Server

SYSTEM

  • INSTALLATION DESTINATION
  • NETWORK & HOST NAME
    • Partitioning
      • Automatically configure partitioning. => Select this.
      • I will configure partitioning.

Starting to install software

Starting to installing software, you can set
USER SETTINGS
- ROOT PASSWORD
- User


Remove media (DVD).
Stop and start guest OS.

Access by ssh from host OS to guest OS.

At first, check your guest OS's IP.

$ ip addr
...
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
...

To access to guest OS Fedora 23 from host OS Mac.
You can set below setting

Guest OS's Settings -> Network -> Portforwarding.
Network type is NAT.

Name: ssh
Protocol: TCP
Host IP: 127.0.0.1
Host Port: 10022
Guest IP: 10.0.2.15
Guest Port: 22


Check LISTEN services. sshd is running on port 22.

$ ss -ln | grep LISTEN
u_str  LISTEN     0      128    /run/user/1000/systemd/private 18432                 * 0
u_str  LISTEN     0      30     /var/run/NetworkManager/private-dhcp 18000                 * 0
u_seq  LISTEN     0      128    /run/udev/control 13417                 * 0
u_str  LISTEN     0      128    /run/lvm/lvmpolld.socket 13424                 * 0
u_str  LISTEN     0      128    /run/systemd/journal/stdout 8579                  * 0
u_str  LISTEN     0      128    /run/lvm/lvmetad.socket 13460                 * 0
u_str  LISTEN     0      128    /run/systemd/private 13227                 * 0
u_str  LISTEN     0      128    /run/dbus/system_bus_socket 15559                 * 0
u_str  LISTEN     0      30     /var/run/NetworkManager/private 16633                 * 0
tcp    LISTEN     0      128       *:22                    *:*
tcp    LISTEN     0      128      :::22                   :::*

By the way, initd scripts are not used any more, and replaced to systemd in Fedora 23.

The systemd manual is here.
Systemd - FedoraProject

$ view /etc/init.d/README
...
init scripts have been replaced by native systemd services files.
...

$ man systemctl

$ systemctl | grep sshd
  sshd.service   loaded    active   running   OpenSSH server daemon


Finally I could access to guest OS by ssh.

$ ssh -l your_name -p 10022 127.0.0.1