1.5 KiB
Installing a Ubuntu 16.04 Xenial Guest on an Expandable LVM
For this example, I will use the vm/host name bro1.dfw.rg.net on the Dallas cluster. Modify to suit your needs.
In the xenial install, we are replacing the
Use the entire disk with LVM so that it is easy to expand later.
with the following recipe:
-
Choose Manual Partitioning
-
Choose Virtual disk 1
-
Yes to Create an empty partition table on this device
-
Select the Free Space
-
Create a new partition
-
Use the whole space. OTOH, if you will be creating many partitions and you may later wish to expand one of them, leave some space for that future expansion
-
Type of the new partition is Primary
-
Use as Physical volume for LVM
-
Done setting up the partition
-
Configure the Logical Volume Manager
-
Yes, Write the changes to disk
-
Create volume group
-
Name it as you wish. In this case, I used bro1-vg.
-
Select the device for the VG, normally /dev/vda1
-
Create logical volume, in the VG you just created
-
As I was building a single file system server, I named it 'root'.
-
Give it the whole partition. Or you can leave room for a swap partiton
-
If you want to also make a swap filesystem,
- Create another logical volume
- Name it 'swap'
- Give it the rest of the space
-
Finish
-
Select the #1 partition under the LVM VG you ust created
-
Use as Ext4
-
Mount point /
-
Label 'root'
-
Done setting up the partition
-
Finish partitioning and write changes to disk
2017.03.10