Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Install Guide for Turnkey VMs in Proxmox VE Helper-Scripts#144

havardthom started this conversation inGuides
Discussion options

This guide will explain how to fully install a Turnkey VM usingProxmox VE Helper-Scripts. These VMs comes with a Turnkey ISO image bootdisk and requires some extra installation steps to get the VM fully up and running.

  • Start by installing a Turnkey VM usingProxmox VE Helper-Scripts. In this example I'll be installing a Turnkey Nextcloud VM:
    bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/vm/nextcloud-vm.sh)"
    • The VM is created with two disks by default:
      • scsi0 - OS disk
      • scsi1 - Turnkey ISO image disk

hardware

(Expand sections for screenshots)

(Optional) Before booting, resize the OS disk (scsi0) to your liking, since it will be partitioned on first boot

resize-disk

Start the VM (boots from Turnkey ISO image disk by default)

boot-screen

Partition the OS disk (this will also install the OS)

partition-1
partition-2
partition-3
partition-4
partition-5

Install GRUB boot loader on OS disk

grub-1

Stop the VM when installation is complete

hard-stop

Change VM boot order to boot from OS disk first

boot-order

Start the VM and follow setup steps.Important: Domain must be set to the IP address of the VM

turnkey-1
turnkey-2
turnkey-3

Your Turnkey Nextcloud VM is up and running, congrats!

turnkey-4

You must be logged in to vote

Replies: 19 comments 38 replies

Comment options

CAn anyone mention how this is better than the container script?

You must be logged in to vote
1 reply
@pfeiffr
Comment options

Overall higher security, especially if exposed, by having higher isolation from the host system compared to the LXC container.

Comment options

Hello@havardthom,

First of all, thank you for providing the Proxmox VE Nextcloud VM script—it’s been very helpful! However, I’ve encountered an issue during the setup process that prevents me from using the server after installation.

It seems that the script defaults to a US keyboard layout during the initial setup. After installation, the keyboard layout switches to the system’s default (e.g., German in my case). This causes problems when special characters like @, =, or \ are used in the password during configuration. These characters are mapped differently in other layouts, and as a result, the password becomes unusable post-installation, making it impossible to log in to the server.

Here are the details of my setup:

Environment: TurnKey Linux (from your provided script)Keyboard layout: German (system default post-installation)Problem: Password mismatch due to the initial setup defaulting to a US keyboard layout.

To resolve this issue, I suggest one of the following solutions:

Add a prompt during the installation process to allow users to select their preferred keyboard layout before entering sensitive data like passwords.Set a default password (e.g., admin or changeme) during installation, with instructions to change it after the setup is complete.

Either of these changes would ensure users can log in to the server after installation without running into this issue.

Thank you for your time and support! Please let me know if you need any further details to address this.

Best regards,

You must be logged in to vote
2 replies
@hdortim
Comment options

This works for me:

  • Change the keyboard layout to US temporarly
  • enter the password in an editor with the german keys on the changed keyboard layout
  • note down the password with the changed characters
  • and try it to login
@hyzteric
Comment options

What I did is go to wikipedia and look at a qwerty keyboard layout and compared it to my belgian azerty keyboard so I could use the same keys.
I used Ertyuiojk8
What went wrong is that as for a number in the password I chose the number 8 ... but with the current keyboard layout during setup it was actually an * that got in... so my password that needed at least one lower case, one uppercase and one number happened to not have any number in.
So I could log in with user admin and my password Ertyuiojk* instead of Ertyuiojk8

Comment options

The installation is failing when trying to install GRUB.

  • proxmox-ve: 8.2.0
  • 4 x Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz (1 Socket)
  • Linux 6.8.8-2-pve (2024-06-24T09:00Z)
You must be logged in to vote
5 replies
@havardthom
Comment options

Make sure you are targeting the OS disk which is partitioned, it will fail if it tries to install GRUB on the ISO image disk. OnInstall GRUB boot loader on OS disk step you can also selectno option and then manually select which disk, e.g.sda orsdb depending on which is your partitioned OS disk.

@FriedrichVanWel
Comment options

Thank you havardthom. I was able to pick the correct disk, and everything worked fine from there.

@eagle275
Comment options

That is a dumb screen ...
when I select "no" .. I expect to stop installation of grub.. not give me manual control.. instead the stupid installer should "know" that the drive it just installed every other component onto is the one for the grub installer as well ..
I tried to manually do it from the "live cd" but then i get more errors ..

And even after manually getting grub installed correctly (at least according to the installer) .. it doesnt work

Booting from Hard Disk...
Grub loading...
Welcome to Grub!

error: attempt to read or write outside of disk 'hd0' .

What do I enter now?

@Sideflare
Comment options

installing grub to the correct 12gb disk failed for me

@Sideflare
Comment options

addind a few gbs to the larger disk and selecting 90% default fixed it. grub installed...

Comment options

Hey@havardthom ,

thank you for the detailed installation instrcutions.
I have the problem, that I can't login with theadmin oradminer users in nextcloud itself, the webmin or the db login. The root login for the terminal is working.

I have reinstalled mutiple times, also with setting up very easy passwords, that are not subject to the different keyboard layouts like1234Something but I always get the error message, that username or password are wrong.

I also tried to reset the admin password through the terminal, but there I get the message that occ is only allowed with the user that created it, www-data.sudo andsu are not working assudo is not installed.

Does anyone have any idea, where I did something wrong, or what I can do to be able to login and finish the setup?

You must be logged in to vote
3 replies
@markrgriffin
Comment options

I am in the same situation, install ok and can log in as root to the terminal, however I cannot get past the webpage login or webmin or Adminer. Anyone got a solution for this?

@kpatient
Comment options

I had this issue and was due to shift key not being passed through VM. So every password character I thought was uppercase was actually lowercase.

As others have mentioned there might also be other subtle differences either due to the img's default keyboard layout and how keyboard inputs are passed through the console.

@martin8310
Comment options

Really frustrating, the VM is running and it's failing because of that stupid login, what a shame. Unfortunately, this script is useless to me. But thanks for trying.

Comment options

Using Advanced Settings
Virtual Machine ID: 101
Using Machine Type: i440fx
Using Disk Cache: None
Using Hostname: turnkey-nextcloud-vm
Using CPU Model: KVM64
Allocated Cores: 2
Allocated RAM: 2048
Using Bridge: vmbr0
Using MAC Address: 02:CD:45:8E:EA:41
Using Vlan: Default
Using Interface MTU Size: Default
Start VM when completed: yes
Creating a TurnKey Nexcloud VM using the above advanced settings
✓ Using local-lvm for Storage Location.
✓ Virtual Machine ID is 101.
http://mirror.turnkeylinux.org/turnkeylinux/images/iso/turnkey-nextcloud-18.0-bookworm-amd64.iso
✓ Downloaded turnkey-nextcloud-18.0-bookworm-amd64.iso

  • Creating a TurnKey Nexcloud VM...
    [ERROR] in line 405: exit code 5: while executing command pvesm alloc $STORAGE $VMID $DISK0 4M >&/dev/null
You must be logged in to vote
1 reply
@kotovasia5120
Comment options

I didn't have the numbers of containers and disks for them. I manually assigned another container number with an unoccupied disk number.

Comment options

I installed it and everything started up nicely, but I have questions:

  1. how to add face recognition models, occ commands don't work
  2. is it possible to copy photos from the shell level to nestcloud directories and have it recognize them? I have a few thousand photos and adding them via the browser is tiring. When I copied a few photos from the shell level, nextcloud doesn't see them.
You must be logged in to vote
1 reply
@Gorkovets
Comment options

Я установил его, и все заработало хорошо, но у меня есть вопросы:

  1. как добавить модели распознавания лиц, команды occ не работают
  2. можно ли копировать фотографии с уровня оболочки в каталоги nestcloud и распознавать их? У меня несколько тысяч фотографий, и добавлять их через браузер утомительно. Когда я скопировал несколько фотографий с уровня оболочки, nextcloud их не видит.

buddy Use this command => turnkey-occ recognize:download-models

Comment options

Hello,

I installed the VM successfully and got to the login page.
What are the login details here?
Screenshot 2025-01-12 112358

You must be logged in to vote
6 replies
@Gorkovets
Comment options

Only Alpine: To get the username and password, run the script again inside the LXC shell.

@Node815
Comment options

For the VM, use this command and it will allow you to reset the password for the admin account:

sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin

NOTE: you most likely won't have sudo installed so you will need to run that. I ran into this error upon a fresh install.

@dizir71
Comment options

hello,
i told me sudo not installed, how to run the script to reset the admin password, i have a fresh install, can access the admin in the shell but no access to the admin on the website, nor can i access the database, first i thought it was the keyboard (german) but the i did not use any other characters then english and number, still access denied. can you tell me what is wrong or how can i run that script ? with runuser maybe? thank you or you can tell me to run "sudo command" or install it?

@S-lax
Comment options

Hi,
I also had the issue. Turns out the passwords were set (by me) in english keyboard layout.

You can login with the set nextcloud admin pw.

@ttrueten
Comment options

You can use the occ App to run commands.

hello, i told me sudo not installed, how to run the script to reset the admin password, i have a fresh install, can access the admin in the shell but no access to the admin on the website, nor can i access the database, first i thought it was the keyboard (german) but the i did not use any other characters then english and number, still access denied. can you tell me what is wrong or how can i run that script ? with runuser maybe? thank you or you can tell me to run "sudo command" or install it?

Comment options

Hi, thanks for the easy setup guide. Can I add my NFS share from my NAS to the VM so it stores the files there? Tried to find some informations on how to do it but didn't find anything helpful, so if anyone can help me that would be greatly appreciated!

You must be logged in to vote
10 replies
@SpacemannFinn
Comment options

Aww that sucks. I am trying to solve this issue with a ZFS pool I made in proxmox

@wtangofoxtrot
Comment options

I think the solution you want is:

  1. Make your nextcloud dataset in truenas accessible via a nfs share
  2. In the VM mount that NFS share locally over the directory where nextcloud stores its data and then add it to/etc/fstab so it retains the share on reboot.
@kevincmach
Comment options

Is anyone still interested in this? I got it working and i wrote a guide. For reference I iuse Proxmox 8 and TrueNAS Scale as my backing NAS

  1. Create TrueNAS dataset
  2. Enable NFS share on dataset
  3. Install NFS client in VM
  4. Create mount point in VM
  5. Mount NFS share manually
    6)Add NFS mount to /etc/fstab
  6. Bind-mount to Nextcloud’s
  7. Set Permissions
  8. Update Nextcloud config.php
  9. Reboot

drop me a DM if anyone needs help with this setup

@ryohiroko
Comment options

@kevincmach would u like to help to give detail from step 6 until 9 ? i already step add nfs in etc/fstab

@remcomeeder
Comment options

@kevincmach I am interested to see how you have solved it. I am in the process of setting up basically the same. I have a Proxmox server which hosts my TrueNAS instance.

Comment options

Turnkey only allow me to download at 50kbps. Also it is version 18. What year they living on? Currently v31 released

You must be logged in to vote
0 replies
Comment options

can you remove the extra hardisk used for install?

You must be logged in to vote
1 reply
@LeChat109
Comment options

yes you can, as soon as you finished the installation process

Comment options

Wouldn't the AIO Edition be more efficient AND better? ( All in One ) Even NextCloud officially uses thathttps://github.com/nextcloud/all-in-one

You must be logged in to vote
1 reply
@davemenkehorst
Comment options

I miss Borg backup and other solutions. Is the All in One version better?

Comment options

Hello
Any way to change keyboard layout during installation (complicate for all passwords setup with wrong keyboard) ?

You must be logged in to vote
0 replies
Comment options

Anyone who how join this VM via reverse proxy ? (NginxProxy Manager) ?
I joint all of my virtual machine except here (too many requests) if I join 80 in Http or 443 in https

You must be logged in to vote
3 replies
@writzthecat
Comment options

Having the some Problem. Even if i change for the thrusted proxies it's not going to work :;(

@Wajalot
Comment options

Anyone who how join this VM via reverse proxy ? (NginxProxy Manager) ? I joint all of my virtual machine except here (too many requests) if I join 80 in Http or 443 in https

Maybe is late, but to others. This worked for me.

Assuming ports 80 and 443 are targeting to the NginX Proxy Manager, I modified both /etc/apache2/ports.conf and /etc/apache2/sites-enabled/nextcloud.conf changing 8080 and 8443 instead 80 and 443 respectively, then I restarted apache2 and set those ports in NginX Proxy Manager. Actually just the 8443, with Lets encrypt certificated generated and linked and forcing https. Also the host with https.

@s-a-kuehl
Comment options

Thank you Wajalot, this worked for me as well and saved me a lot of trouble!

Comment options

not working with hardisk over 2TB

You must be logged in to vote
1 reply
@Wajalot
Comment options

I installed Nextcloud following the guide, however I added a disk with more than 2TB mounted in /var/... for data storing.

Comment options

Hello,
What are the beneficts from this VM over a unprivileged LXC container then install NC via a docker inside?
Thanks

You must be logged in to vote
0 replies
Comment options

After following the instructions here, it all worked fine when I was trying to access it through the IP of the VM. I'm using Cloudflare tunnel (cloudflared) for accessing my locally hosted things, and after setting up a subdomain and as a target my VM's IP (HTTP), when trying to access it through the domain if went into the redirect loop. I tried targetting HTTPS, but it doesn't work at all. So for anyone who's also struggling to make it work, here's how I solved it:

  • from the file /etc/apache2/sites-enabled/nextcloud.conf remove/comment the following lines

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

  • restart apache2 service

systemctl restart apache2

  • in the/var/www/nextcloud/config/config.php add your domain totrusted_domains,overwrite.cli.url,overwritehost, setoverwriteprotocol to https. Usethisguide for reference.

  • in cloudflare tunnel config pannel, point the domain to HTTP IP of your VM.

I'm new to self hosting and maybe did something wrong, but it seems to work. http -> https redirects still work, I guess that is handled on the cloudflare side. I honestly have no experience with apache, so if there's a better way to do it, let me know.

You must be logged in to vote
0 replies
Comment options

Hi, can you tell me how to connect a shared folder via SMB? For some reason, it says the password is incorrect, even though I'm entering everything correctly.

You must be logged in to vote
3 replies
@ghost
Comment options

Maybe this could help:https://forum.proxmox.com/threads/tutorial-unprivileged-lxcs-mount-cifs-shares.101795/

@Bazz-Man
Comment options

Unfortunately this is a known bug and has been around for a while, such a shame for what seems a simple function. Think the way forward is to mount locally vi fstab and then use the local share function in nextcloud
see for more infonextcloud/server#53472

@DeonXL
Comment options

Мне помогло установить на сервер php-smbclient

Comment options

Whats the best way to install this so data is stored on a separate disk? All my VM/LXC are on a small SSD and data is on a zfs pool.

So would like boot VM OS from my SSD but keep on data on zfs.

You must be logged in to vote
0 replies
Comment options

nextcloudwgetdownload

Is anyone else getting the same problem when trying to upgrade after installing? On the website updater it is failing and using wget also fails.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Guides
Labels
None yet
47 participants
@havardthom@kpatient@hyzteric@pvd276@kevincmach@hdortim@Aholicknight@emircanerkul@ttrueten@Praaug@jolypas@wtangofoxtrot@JonSnow88@Sideflare@Node815@writzthecat@nanohits@iukbox@Wajalot@SpacemannFinn@DeonXLand others

[8]ページ先頭

©2009-2025 Movatter.jp