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.
-
@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.
-
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)
-
@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)
https://i.imgur.com/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.
-
guest-agents installs packages of open-vm-tools and qemu-guest-agent.
Typing this command will so those packages:
dnf groupinfo "guest-agents" -
@black3dynamite said in How to Install Fedora 25 Minimal:
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.
[root@jrd-nc ~]# 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
-
Hyper-V still shows degraded, but it now shows the IP address in the console.
-
This is a Fedora 25 VM without the hyperv-daemon
-
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.
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 -
@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.
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-daemonsYou 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. -
@JaredBusch Networking tab. In that case, let me go ahead & install the daemons
-
@travisdh1 said in How to Install Fedora 25 Minimal:
@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
If you're doing
-l 100%FREE
it doesn't necessarily matter. But if you are ever going to have more than one volume, I'd dovgcreate -s 1G
(or more depending on volume size). 4M chunks become annoying to manage, especially when you can dovgcreate -l 1
vsvgcreate -l $((1024000 / 4096))
. -
@stacksofplates said in How to Install Fedora 25 Minimal:
@travisdh1 said in How to Install Fedora 25 Minimal:
@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
If you're doing
-l 100%FREE
it doesn't necessarily matter. But if you are ever going to have more than one volume, I'd dovgcreate -s 1G
(or more depending on volume size). 4M chunks become annoying to manage, especially when you can dovgcreate -l 1
vsvgcreate -l $((1024000 / 4096))
.I have to ask, how do the 4M chunks become annoying to manage?
The
-l 100%FREE
should really be a lower percentage anyway, so you can take a snapshot on the volume when you want to run a backup. -
@travisdh1 said in How to Install Fedora 25 Minimal:
@stacksofplates said in How to Install Fedora 25 Minimal:
@travisdh1 said in How to Install Fedora 25 Minimal:
@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
If you're doing
-l 100%FREE
it doesn't necessarily matter. But if you are ever going to have more than one volume, I'd dovgcreate -s 1G
(or more depending on volume size). 4M chunks become annoying to manage, especially when you can dovgcreate -l 1
vsvgcreate -l $((1024000 / 4096))
.I have to ask, how do the 4M chunks become annoying to manage?
The
-l 100%FREE
should really be a lower percentage anyway, so you can take a snapshot on the volume when you want to run a backup.You get both performance gains from using larger chunks and you don't need to do math when you grow your volume. If you only grow your volume to what you need at the time, it's much easier to just type the size in GB vs the number of extents / 4M.