How to Install Fedora 25 Minimal


  • Service Provider

    First, start with the Fedora 25 Netinstall ISO. That is a direct link to the ISO.
    This is the download page.

    Download the ISO and move it to your hypervisor ISO store.

    Create a new VM and give it a single vCPU and say either half a gig or a gig of RAM. Connect it to your vSwitch and boot it up.

    You will be greeted with this screen counting down from 60 seconds.
    0_1493181953945_upload-6f7853b7-7176-44ac-aabb-7c519d990340

    Arrow up to the first choice and hit enter. A few moments later you will be presented with the installation GUI. Select your language appropriately and click Continue.
    0_1493182086534_upload-7067ad82-53a3-4023-9cd7-9fa08ace0aee

    Click on the installation destination
    0_1493182195096_upload-2809e527-4ea8-454c-9517-94072cf60da5

    Wait for the screen to load and then click done. The single virtual disk you made will already be selected along with a default partitioning setup.
    0_1493182345110_upload-b4bf525a-c047-4e7d-8ff0-d27f2f33367d

    Now click on Network and hostname
    0_1493182585859_upload-926b6166-1508-4d9c-8bac-3077a478feff

    Give your system a hostname and click the apply button to set it. Change your networking if desired (I generally use DHCP reservations so mostly leave this as DHCP). Then click Done
    0_1493182715307_upload-f3ad94a4-a48b-4f2a-845f-b3e8ffda6735

    Click on Time & Date
    0_1493182800329_upload-aa580e36-483f-4972-b303-9b74bc1f9e90

    Set your timezone as desired, then click the gear icon on the top right to setup NTP.
    0_1493182858258_upload-6545cbc9-9e82-42b7-9894-f619312ec5df

    By default Fedora 25 only lists one time source.
    0_1493182909642_upload-a4a4a7e4-ee42-47d7-8dc5-1f9961d91ed7

    I always use 3 at a minimum, so add two more. Click OK then Done
    0_1493182997587_upload-6e6bfe89-fb8c-4ca6-a5fe-6177b4c30a98
    0_1493183014485_upload-fd5942e5-7cd1-42cf-af93-c2278d176bba

    Now click on software selection. By default Fedora 25 selects Fedora Server Edition. I hate that. I want full control over what feature are going to be on every instance. I always want to start with the minimal experience.
    0_1493183105079_upload-4a53bd8d-63f2-4bbd-9ec4-efe3c4b377ec

    When you click on the Minimal Install button, you will notice the add on list to the right will change.
    0_1493183219357_upload-4a9e7996-253c-4904-811b-35aff110db4c
    0_1493183254737_upload-72153367-0828-4728-a66c-82de99a21b07

    The only add on I check is the Guest Agents, because I am always 100% of the time running this on a hypervisor.
    0_1493183347912_upload-afa9607b-d0b1-47a4-8198-c7d9749468b7

    Click done and you will be returned to the main setup screen. It should look like this. Now you click Begin Installation.
    0_1493183446071_upload-1c7f3b23-4054-4144-92c6-d56fc689da18.

    You will be given a screen to set a root password.
    0_1493183546920_upload-79428e0b-7dff-4129-8e68-b7a9ae260807

    Click on it, and set a root password then click done.
    0_1493183613233_upload-3df8f11f-3469-4b50-b900-31de5ec9412d

    I never add users at this point. I will do that later from SSH.
    Wait for the install to finish and click Reboot.
    0_1493183788617_upload-84d81793-640e-4dda-b469-a2441a9197bd

    While it is rebooting, make sure your hypervisor removes the ISO from the boot sequence. Hyper-V Server 2016 does not eject the ISO, but it does update the boot order when the VM is built as Generation 2. Your mileage may vary depending on the hypervisor.

    Once rebooted, you will be greeted with the log in screen. Log in once as root and get the IP of the system with ip a sh then you can do everything else from SSH assuming that you have direct IP connectivity to the VM.

    0_1493184047373_upload-92b92dec-1ed3-4e9e-9cea-eede95caa9d7

    If you are running this under Hyper-V you will need to add the Hyper-V tools.
    Log in as root and install them with dnf

    dnf install -y hyperv-daemons
    


  • Thx JB, sub'd!



  • @JaredBusch Let's say you want to use this VM as a file server.
    Is it better to create 2 disks (1 for o/s + 1 for storage) or just one big ass disk?


  • Service Provider

    @FATeknollogee said in How to Install Fedora 25 Minimal:

    @JaredBusch Let's say you want to use this VM as a file server.
    Is it better to create 2 disks (1 for o/s + 1 for storage) or just one big ass disk?

    As this example showed, I had a 127GB disk because I let Hyper-V Server 2016 use its default.

    Fedora only took 17GB of it. 2GB for swap and 15GB for root.

    The rest is sitting there waiting to be used however you want.

    So all you have to do is make the space usable.

    #create a logical volume named data
    lvcreate -l 100%FREE -n data fedora
    
    #format it to ext4
    mkfs.ext4 /dev/fedora/data
    
    #make a directory to mount it
    mkdir /data
    
    #mount it
    mount /dev/fedora/data /data
    

    Obviously you will want to have this mounted on reboot, so add it to /etc/fstab

    nano /etc/fstab
    
    #add this
    /dev/fedora/data /data                    ext4    defaults        1 2
    

  • Service Provider

    Note that the fedora in all those commands to use the space is because that is the name of the volume group

    vgdisplay



  • Does the same principle apply if I made the default disk 4 or 6TB in size?


  • Service Provider

    @FATeknollogee said in How to Install Fedora 25 Minimal:

    Does the same principle apply if I made the default disk 4 or 6TB in size?

    That is really just up to how you want to manage it.

    At that scale, I would personally want it to be a separate virtual disk. But that is honestly only because I have more options for recovery. It is easier to work with a disk that you know have nothing but data than tryign to attach a once bootable disk to a new VM, etc.

    None of that has anything to do with the host and how it mounts the space.

    Edit: but evcen as a separate virtual disk, you will format and mount it the same way. Well, barring it being a different device (/dev/sdb).



  • @JaredBusch said in How to Install Fedora 25 Minimal:

    @FATeknollogee said in How to Install Fedora 25 Minimal:

    Does the same principle apply if I made the default disk 4 or 6TB in size?

    That is really just up to how you want to manage it.

    At that scale, I would personally want it to be a separate virtual disk. But that is honestly only because I have more options for recovery. It is easier to work with a disk that you know have nothing but data than tryign to attach a once bootable disk to a new VM, etc.

    None of that has anything to do with the host and how it mounts the space.

    Thanks, that's kinda what I thought, just wanted to make sure.



  • @JaredBusch

    Wow so pre-configured addons and choices compared to Centos 7 Minimal installation.


  • Service Provider

    @msff-amman-Itofficer said in How to Install Fedora 25 Minimal:

    @JaredBusch

    Wow so pre-configured addons and choices compared to Centos 7 Minimal installation.

    Not the same thing at all. The CentOS install media is only for minimal, this is a net install and you choose which method you want.

    The full CentOS media has choices too.


  • Service Provider

    @JaredBusch said in How to Install Fedora 25 Minimal:

    @msff-amman-Itofficer said in How to Install Fedora 25 Minimal:

    @JaredBusch

    Wow so pre-configured addons and choices compared to Centos 7 Minimal installation.

    Not the same thing at all. The CentOS install media is only for minimal, this is a net install and you choose which method you want.

    The full CentOS media has choices too.

    A CentOS example would be...

    http://centos.itt-consulting.com/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1611.iso



  • When selecting guest agents, it doesn't automatically installs hyperv-daemons.


  • Service Provider

    @black3dynamite I noticed hyper-v did not show a good agent. Did not have time to test.



  • Is Fedora ext4 by default? Can you choose XFS during install?


  • Service Provider

    @NashBrydges said in How to Install Fedora 25 Minimal:

    Is Fedora ext4 by default? Can you choose XFS during install?

    XFS, EXT4, BtrFS... you can configure basically anything during the install.



  • @scottalanmiller said in How to Install Fedora 25 Minimal:

    @NashBrydges said in How to Install Fedora 25 Minimal:

    Is Fedora ext4 by default? Can you choose XFS during install?

    XFS, EXT4, BtrFS... you can configure basically anything during the install.

    Thanks.


  • Service Provider

    Yes, by default it is ext4 if you let it partition as shown.



  • Why ext4 as a default? Feels like they are moving backwards there. They made the move to XFS from ext4 already.



  • @JaredBusch said in How to Install Fedora 25 Minimal:

    @FATeknollogee said in How to Install Fedora 25 Minimal:

    @JaredBusch Let's say you want to use this VM as a file server.
    Is it better to create 2 disks (1 for o/s + 1 for storage) or just one big ass disk?

    As this example showed, I had a 127GB disk because I let Hyper-V Server 2016 use its default.

    Fedora only took 17GB of it. 2GB for swap and 15GB for root.

    The rest is sitting there waiting to be used however you want.

    So all you have to do is make the space usable.

    #create a logical volume named data
    lvcreate -l 100%FREE -n data fedora
    
    #format it to ext4
    mkfs.ext4 /dev/fedora/data
    
    #make a directory to mount it
    mkdir /data
    
    #mount it
    mount /dev/fedora/data /data
    

    Obviously you will want to have this mounted on reboot, so add it to /etc/fstab

    nano /etc/fstab
    
    #add this
    /dev/fedora/data /data                    ext4    defaults        1 2
    

    edit: If I have 2 virtual disks (1 for o/s + 1 for data). Anyone have a simple "how to do this" guide on the 2nd disk: /dev/xvdb or /dev/sdb ? (I read some guides on the 'net, thy all seem long & winded)


  • Service Provider

    @StrongBad said in How to Install Fedora 25 Minimal:

    Why ext4 as a default? Feels like they are moving backwards there. They made the move to XFS from ext4 already.

    No idea, but what you are seeing in this thread is what you get from a 127GB vhdx and let Fedora do automatic partitioning as shown above (edit: copied below)
    zZlenx9.png



  • @FATeknollogee said in How to Install Fedora 25 Minimal:

    @JaredBusch said in How to Install Fedora 25 Minimal:

    @FATeknollogee said in How to Install Fedora 25 Minimal:

    @JaredBusch Let's say you want to use this VM as a file server.
    Is it better to create 2 disks (1 for o/s + 1 for storage) or just one big ass disk?

    As this example showed, I had a 127GB disk because I let Hyper-V Server 2016 use its default.

    Fedora only took 17GB of it. 2GB for swap and 15GB for root.

    The rest is sitting there waiting to be used however you want.

    So all you have to do is make the space usable.

    #create a logical volume named data
    lvcreate -l 100%FREE -n data fedora
    
    #format it to ext4
    mkfs.ext4 /dev/fedora/data
    
    #make a directory to mount it
    mkdir /data
    
    #mount it
    mount /dev/fedora/data /data
    

    Obviously you will want to have this mounted on reboot, so add it to /etc/fstab

    nano /etc/fstab
    
    #add this
    /dev/fedora/data /data                    ext4    defaults        1 2
    

    Anyone have a simple "how to do this" guide on /dev/xvdb or /dev/sdb ? (I read some guides on the 'net, thy all seem long & winded)

    Off the top of my head even, let's go!

    pvcreate /dev/xvdb
    vgcreate vgname /dev/xvdb
    lvcreate -n 'lvname' vgname -l 100%FREE
    mkfs.xfs /dev/vgname/lvname
    mount /dev/vgname/lvname /mountpoint
    

    If you add an xfs volume to fstab, it's recommended to make the last two options (dump and fsck) zero. Yeah, xfs can really speed up boot times if you're switching from another file system that needs to run an fsck at boot.

    https://mangolassi.it/topic/11302/travis-hershberger-linux-lvm-storage



  • @travisdh1 Thx, will check out your video.



  • @StrongBad said in How to Install Fedora 25 Minimal:

    Why ext4 as a default? Feels like they are moving backwards there. They made the move to XFS from ext4 already.

    Fedora Server uses EXT4 (/boot) and XFS (/root). Fedora Workstation uses EXT4.



  • @JaredBusch

    guest-agents installs packages of open-vm-tools and qemu-guest-agent.

    Typing this command will so those packages:
    dnf groupinfo "guest-agents"


  • Service Provider

    @black3dynamite said in How to Install Fedora 25 Minimal:

    @JaredBusch

    guest-agents installs packages of open-vm-tools and qemu-guest-agent.

    Typing this command will so those packages:
    dnf groupinfo "guest-agents"

    yeah finally back to this. so yup, no Hyper-v agents. Fixed that. Let's see what Hyper-V thinks of it.

    [[email protected] ~]# dnf -y install hyperv-daemons
    Last metadata expiration check: 2:26:36 ago on Fri Apr 28 09:18:21 2017.
    Dependencies resolved.
    ===============================================================================================================
     Package                          Arch             Version                             Repository         Size
    ===============================================================================================================
    Installing:
     hyperv-daemons                   x86_64           0-0.17.20170105git.fc25             updates           8.7 k
     hyperv-daemons-license           noarch           0-0.17.20170105git.fc25             updates            16 k
     hypervfcopyd                     x86_64           0-0.17.20170105git.fc25             updates            15 k
     hypervkvpd                       x86_64           0-0.17.20170105git.fc25             updates            23 k
     hypervvssd                       x86_64           0-0.17.20170105git.fc25             updates            15 k
    

  • Service Provider

    Hyper-V still shows degraded, but it now shows the IP address in the console.
    0_1493399297907_upload-d0dc1ab1-e951-4599-9b3d-79191b511196
    0_1493399322234_upload-09cbd3d9-b1c3-45ee-b506-7b934d86ed1f


  • Service Provider

    This is a Fedora 25 VM without the hyperv-daemon

    0_1493399383460_upload-a64dc56a-957d-4c9a-a6f4-d7c5426a3c3d
    0_1493399401331_upload-605ba1b5-5fd2-4842-a0a7-cbbd5c678254


  • Service Provider

    first post updated with a note to install hyperv-daemons if running under Hyper-V



  • @JaredBusch said in How to Install Fedora 25 Minimal:

    Hyper-V still shows degraded, but it now shows the IP address in the console.
    0_1493399297907_upload-d0dc1ab1-e951-4599-9b3d-79191b511196
    0_1493399322234_upload-09cbd3d9-b1c3-45ee-b506-7b934d86ed1f

    I installed 2 "minimal install" vm's on Win Serv 2016 (Fedora 25 & CentOS).
    On the Fedora vm, I checked the "guest agen" add-on but not on the CentOS.
    Under Status, they both show ok, I didn't have to add hyperv-daemons


  • Service Provider

    @FATeknollogee said in How to Install Fedora 25 Minimal:

    @JaredBusch said in How to Install Fedora 25 Minimal:

    Hyper-V still shows degraded, but it now shows the IP address in the console.
    0_1493399297907_upload-d0dc1ab1-e951-4599-9b3d-79191b511196
    0_1493399322234_upload-09cbd3d9-b1c3-45ee-b506-7b934d86ed1f

    I installed 2 "minimal install" vm's on Win Serv 2016 (Fedora 25 & CentOS).
    On the Fedora vm, I checked the "guest agen" add-on but not on the CentOS.
    Under Status, they both show ok, I didn't have to add hyperv-daemons

    You mean under heartbeat on the summary tab? Yeah. it always does.
    Or you mean on the networkig tab? well there it show ok, but not any IP info until you install the hyper-v daemons and reboot.



Looks like your connection to MangoLassi was lost, please wait while we try to reconnect.