1

I'm working to create a new Ubuntu Server 18.04 template on my local vSphere environment to upload this again to our datacenter.

I downloaded the Ubuntu server 18.04.2 LTS.iso version from their website and during the Filesystem setup I choose for "Use an entire disk and set up LVM" so that I can have the following directory's:

/home
/tmp
/usr
/var
/var/log

and of course /, /boot and SWAP

By choosing this option in the Filesystem setup Ubuntu is creating by default a volume group and a LVM that is attached to /, it creates also /boot so for me is left to create the other directories as mentioned before.

After this step I select done, and finished the next step and once it asked to remove the installation medium and press enter, it reboots and I get the initramfs screen saying (see picture):

enter image description here

Any idea what I did wrong or how to fix this?

If you need more information please let me know, thanks in advance!

  • hi! this all seems a bit outdated what kind of hardware and what kind of memory size workload does your server have? because increases in the performance of the ubuntu system and of hardware as a whole has led to the sort-of deprecation of SWAP. on a 8GB of RAM (again depending on the type of memeory load you expect to have on that server) you will never get any sort of performance increase thanks to swap. So nowadays we generally opt out. Also I personally advise against LVM and instead advise a simple dual mountpoint setup / and /home. – tatsu Mar 29 '19 at 13:45
  • Hello, I also tried this in virtual box on my desktop that has 16GB of memory, i5 vPro processor with 500GB of data disk. My server is an HP server (ProLiant DL G6), vmware vsphere 6.0, Intel Xeon x5560 8 cpu's x 2,8GHz and 150GB total ram Does this answer your question? – user939289 Mar 29 '19 at 13:50
  • yes. ok so to me you do not need SWAP. of course it's up to you if disk space is a plenty that's fine. you are also free to add it at any later time. I just don't think ubuntu 18 will use it much under these contditions. – tatsu Mar 29 '19 at 13:53
  • I'm sorry, what do you exactly mean with running what? – user939289 Mar 29 '19 at 13:55
  • nevermind it was your previous edit, I too have edited since then. anyways are you open to trying without LVM? – tatsu Mar 29 '19 at 13:55
0

I would recomend first and foremost against :

having all these mountpoints (/, /boot, /home, /tmp, /usr, /var, /var/log, SWAP). The moddern popular approach is / (30GB) and /home (the rest) and that's all. (of course if the BIOS and the OS support UEFI then first comes a 500mb EFI patrition, if you're in LEGACY, ignore this.

(As a personal preference I go / alone, but this removes the posibility of salvaging and reusing /home on several reinstalls of the OS)

Then I'd recommend agaisnt SWAP. especially in your senatio where your hardware (Intel Xeon x5560 8 cpu's x 2,8GHz and 150GB of RAM) indicates that it'll never see any use.

Lastly I personally recommend against LVM. If you don't really need it, you shouldn't care about it. It makes boot much more iffy, and in your case I think the issue came from too many mountpoints + LVM.

of course using it is at your discretion.

| improve this answer | |
  • I have an update, I created all mount points that I wanted except /usr and everything went OK. so I can add /usr after the installation manually. But still is strange for me why I can't add them during the installation – user939289 Mar 29 '19 at 15:11
  • I am clueless as to this. perhaps someone else knows. some core programs install to usr instead of home, maybe this causes problems durring the installation, I don't know. – tatsu Mar 29 '19 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy