# Trying to install Discourse in an Ubuntu VM on Proxmox

**URL:** https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703
**Category:** Support
**Created:** [07.Апрель.2019 23:54:51 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703 "2019-04-07T23:54:51Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [07.Апрель.2019 23:54:51 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/1 "2019-04-07T23:54:51Z")

</div>

Hello Discourse community,

So I’ve successfully installed Discourse on an already set-up VM as well as on a physical server box. However, recently I bought a PowerEdge R710 and want to set up a Discourse forum in an [Ubuntu Server 18.04.2 LTS](https://www.ubuntu.com/download/server) VM. I’ve installed [Proxmox](https://www.proxmox.com/en/) for VM Management.

[So I’ve been following this article.](https://computingforgeeks.com/install-discourse-on-ubuntu-18-04/) and everything has been going well … until I perform `./launcher start app`

As it begins, I eventually receive the message `no space left on device` (pardon the small image sizes, since the Proxmox VM screen is small on my PC):

 ![no_space_left](https://global.discourse-cdn.com/meta/original/3X/8/5/851f28509eed7027b97415c336201632cebba5e9.png)  
Clearly the issue should be obvious. I ran a `df -h` and received the following:  
 ![disk_space](https://global.discourse-cdn.com/meta/original/3X/4/3/43da5f815bbb156917d02a2cda586d4e2782a13a.png)

Now you would think I only assigned 5 GB to the VM, but I actually assigned 100 GB, as [GParted](https://gparted.org/) shows:

 ![gparted](https://global.discourse-cdn.com/meta/original/3X/4/c/4c0a3c7fbdc326116e32f026eb129ff9b6779468.png)

So, where would I have assign the extra disk space to get Discourse to run? And I’m just talking about locally within the VM.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [08.Апрель.2019 00:07:02 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/2 "2019-04-08T00:07:02Z")

</div>

Why are you following a third-party installation guide?

We can only support installations here which follow the [standard install guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md).

If you want to use that guide then you consult its author, alternatively you can follow the supported [standard install](https://meta.discourse.org/t/142537?silent=true) linked above.

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [08.Апрель.2019 00:55:20 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/3 "2019-04-08T00:55:20Z")

</div>

Its basically the same guide as the [Standard Install Guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md), just without the Cloud steps (so starting from the Docker steps). I’m not looking to host this server in the Cloud (so not following them), I’m looking to host it in a VM on my server.

And the main Guide does _not_ suggest what to do in case I run into a disk space issue like this. That’s why I’m asking here where would I have assign the extra disk space to get Discourse to start properly.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [08.Апрель.2019 00:59:10 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/4 "2019-04-08T00:59:10Z")

</div>

More has to differ between your local server and a vanilla Ubuntu VM for you to be seeing that error.

We make a best effort here to support the [standard install](https://meta.discourse.org/t/142537?silent=true). The assumption is that if you choose to alter elements that you have the necessary expertise to do so.

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [08.Апрель.2019 12:15:26 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/5 "2019-04-08T12:15:26Z")

</div>

The LVM physical volume (sda3) is 99G, but most of that space is not allocated. You need to use `lvresize` to make `ubuntu—vg—ubuntu—lv` bigger. Don’t forget the `-r` flag to also resize the filesystem.

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [08.Апрель.2019 15:38:47 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/6 "2019-04-08T15:38:47Z")

</div>

@schleifer Thank you for answering!

How do I go about using `lveresize`? I’m not familiar with resizing partitions.

Looking at some other code examples online, I assume something like this?  
`lvresize -r +99G /dev/mapper/ubuntu--vg-ubuntu--lv`

Does `lvesize` know to take the 99 GB in `/dev/sda3`? More clarity would be helpful.

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [08.Апрель.2019 15:57:40 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/7 "2019-04-08T15:57:40Z")

</div>

[`-l +100%FREE`](https://linux.die.net/man/8/lvresize)

---

<div class="post-metadata">

### Author: ![naupe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@naupe](https://meta.discourse.org/u/naupe)
#### Post date: [09.Апрель.2019 00:12:51 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/8 "2019-04-09T00:12:51Z")

</div>

@schleifer I got it! I did the following:

`sudo /sbin/lvresize -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv`  
`sudo /sbin/resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv`

`/dev/mapper/ubuntu--vg-ubuntu--lv` now has 90 GB! I also got the Discourse Setup to come up in my browser (localhost)!

Of course, I’ll still need to figure out how to set it up so Discourse can be accessed outside the VM, which will be a new challenge for me from previous installs, but I’m glad I’ve gotten this far in 2 days.

I will likely post more progress here if I run into any more issues 🙂

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [24.Июнь.2022 06:13:08 UTC](https://meta.discourse.org/t/trying-to-install-discourse-in-an-ubuntu-vm-on-proxmox/113703/10 "2022-06-24T06:13:08Z")

</div>


