Debian 12 VM Script Does not Prompt for HDD Size #232

Closed
opened 2026-02-04 17:16:16 +03:00 by OVERLORD · 17 comments
Owner

Originally created by @AT-StephenDetomasi on GitHub (Dec 29, 2024).

Have you read and understood the above guidelines?

Yes.

📜 What is the name of the script you are using?

Debian 12 VM

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/vm/debian-vm.sh)"

📝 Provide a clear and concise description of the issue.

During the advanced setup, several variable parameters are prompted to the user. Unfortunately, the HDD size is not prompted during the process, and the default 4GB HDD size is forced, which is insufficient for many users.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Run the command, select advanced options. Option to change HDD size does not appear.

Paste the full error output (if available).

No logs due to missing option.

🖼️ Additional context (optional).

Output from final command:

Using Advanced Settings
Virtual Machine ID: 222
Using Machine Type: q35
Using Disk Cache: None
Using Hostname: sb-debian-01
Using CPU Model: Host
Allocated Cores: 4
Allocated RAM: 1666
Using Bridge: vmbr0
Using MAC Address: 02:E1:F1:6E:38:03
Using Vlan: Default
Using Interface MTU Size: Default
Start VM when completed: yes
Creating a Debian 12 VM using the above advanced settings
 ✓ Using ZFS-S-02 for Storage Location.
 ✓ Virtual Machine ID is 222.
 ✓ https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2
 ✓ Downloaded debian-12-nocloud-amd64.qcow2
 ✓ Created a Debian 12 VM (sb-debian-01)
 ✓ Started Debian 12 VM
 ✓ Completed Successfully!****
Originally created by @AT-StephenDetomasi on GitHub (Dec 29, 2024). ### ✅ Have you read and understood the above guidelines? Yes. ### 📜 What is the name of the script you are using? Debian 12 VM ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/vm/debian-vm.sh)" ### 📝 Provide a clear and concise description of the issue. During the advanced setup, several variable parameters are prompted to the user. Unfortunately, the HDD size is not prompted during the process, and the default 4GB HDD size is forced, which is insufficient for many users. ### ⚙️ What settings are you using? - [ ] Default Settings - [X] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Run the command, select advanced options. Option to change HDD size does not appear. ### ❌ Paste the full error output (if available). No logs due to missing option. ### 🖼️ Additional context (optional). Output from final command: ``` Using Advanced Settings Virtual Machine ID: 222 Using Machine Type: q35 Using Disk Cache: None Using Hostname: sb-debian-01 Using CPU Model: Host Allocated Cores: 4 Allocated RAM: 1666 Using Bridge: vmbr0 Using MAC Address: 02:E1:F1:6E:38:03 Using Vlan: Default Using Interface MTU Size: Default Start VM when completed: yes Creating a Debian 12 VM using the above advanced settings ✓ Using ZFS-S-02 for Storage Location. ✓ Virtual Machine ID is 222. ✓ https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2 ✓ Downloaded debian-12-nocloud-amd64.qcow2 ✓ Created a Debian 12 VM (sb-debian-01) ✓ Started Debian 12 VM ✓ Completed Successfully!**** ```
Author
Owner

@AT-StephenDetomasi commented on GitHub (Dec 29, 2024):

I just tried the Ubuntu 24.04 VM as well - it also does not prompt for HDD size. This is less of an issue on LXCs since you can easily extend the storage (after all it is a quota and not a conventional virtual disk), but with VMs you must manually repartition which is sub-optimal.

@AT-StephenDetomasi commented on GitHub (Dec 29, 2024): I just tried the Ubuntu 24.04 VM as well - it also does not prompt for HDD size. This is less of an issue on LXCs since you can easily extend the storage (after all it is a quota and not a conventional virtual disk), but with VMs you must manually repartition which is sub-optimal.
Author
Owner

@oOStroudyOo commented on GitHub (Dec 29, 2024):

Hello @AT-StephenDetomasi

I'm just looking at this now, what would you recommend as a default disk-size?

Thanks.

@oOStroudyOo commented on GitHub (Dec 29, 2024): Hello @AT-StephenDetomasi I'm just looking at this now, what would you recommend as a default disk-size? Thanks.
Author
Owner

@AT-StephenDetomasi commented on GitHub (Dec 30, 2024):

8GB would be my minimum recommended size, but user choice here is important, as some people may want to install a desktop environment for various reasons. In my situation I want to install a desktop environment and have a disk size of around 25GB. Whilst I could manually resize partitions via a GParted Live environment afterwards, this is a bit of a chore.

The other thing not mentioned is swap, but this is probably less important.

@AT-StephenDetomasi commented on GitHub (Dec 30, 2024): 8GB would be my minimum recommended size, but user choice here is important, as some people may want to install a desktop environment for various reasons. In my situation I want to install a desktop environment and have a disk size of around 25GB. Whilst I could manually resize partitions via a GParted Live environment afterwards, this is a bit of a chore. The other thing not mentioned is swap, but this is probably less important.
Author
Owner

@oOStroudyOo commented on GitHub (Dec 30, 2024):

I've got something running in my repo at the moment, I assume this is what you're looking for:

image
image
image

The partitions haven't been adjusted, is this something you need?
image

@oOStroudyOo commented on GitHub (Dec 30, 2024): I've got something running in my repo at the moment, I assume this is what you're looking for: ![image](https://github.com/user-attachments/assets/23f73f8e-6797-4238-8276-381ab1c2e241) ![image](https://github.com/user-attachments/assets/694e1cf3-11d5-42a1-9a55-c32546c50413) ![image](https://github.com/user-attachments/assets/801e9501-cc35-482e-a8fc-56c64cf9b51a) The partitions haven't been adjusted, is this something you need? ![image](https://github.com/user-attachments/assets/ecc67c94-8d9c-4f79-9c4e-77b22620e506)
Author
Owner

@AT-StephenDetomasi commented on GitHub (Jan 1, 2025):

That definitely looks like we're on the right track. That said, typically when a user selects a given disk size as part of an operating system installation on a new system, it should be assumed that the entire disk would be allocated for this. I can't think of a good reason why someone would want it any other way...

@AT-StephenDetomasi commented on GitHub (Jan 1, 2025): That definitely looks like we're on the right track. That said, typically when a user selects a given disk size as part of an operating system installation on a new system, it should be assumed that the entire disk would be allocated for this. I can't think of a good reason why someone would want it any other way...
Author
Owner

@michelroegl-brunner commented on GitHub (Jan 14, 2025):

@oOStroudyOo Did you came up with a solution? If yes, do you mind opening a PR? If not i will look at the problem.

@michelroegl-brunner commented on GitHub (Jan 14, 2025): @oOStroudyOo Did you came up with a solution? If yes, do you mind opening a PR? If not i will look at the problem.
Author
Owner

@oOStroudyOo commented on GitHub (Jan 14, 2025):

Hello @michelroegl-brunner

I did have the code for Debian but the other VMs also need the same change.

You can carry on with this, I'm currently out of the country with work till mid Feb so don't have access to my code or software.

@oOStroudyOo commented on GitHub (Jan 14, 2025): Hello @michelroegl-brunner I did have the code for Debian but the other VMs also need the same change. You can carry on with this, I'm currently out of the country with work till mid Feb so don't have access to my code or software.
Author
Owner

@MickLesk commented on GitHub (Jan 15, 2025):

@oOStroudyOo can you replace an pr?

@MickLesk commented on GitHub (Jan 15, 2025): @oOStroudyOo can you replace an pr?
Author
Owner

@Faisbook commented on GitHub (Jan 17, 2025):

I desperately need this too. I tried to go with the default 2gb and expand it using GUI and CLI but no joy. Always run into problems. Please can you add a HDD size prompt? It would be a life-saver. 2Gb fills up just with the updates.

@Faisbook commented on GitHub (Jan 17, 2025): I desperately need this too. I tried to go with the default 2gb and expand it using GUI and CLI but no joy. Always run into problems. Please can you add a HDD size prompt? It would be a life-saver. 2Gb fills up just with the updates.
Author
Owner

@MickLesk commented on GitHub (Jan 23, 2025):

done with redesign and bigger default space

@MickLesk commented on GitHub (Jan 23, 2025): done with redesign and bigger default space
Author
Owner

@Faisbook commented on GitHub (Jan 27, 2025):

Excellent. Thank you - I'm quite a novice - how do I now run the new script?

@Faisbook commented on GitHub (Jan 27, 2025): Excellent. Thank you - I'm quite a novice - how do I now run the new script?
Author
Owner

@MickLesk commented on GitHub (Jan 27, 2025):

in proxmox shell, with a new vm after this

@MickLesk commented on GitHub (Jan 27, 2025): in proxmox shell, with a new vm after this
Author
Owner

@Faisbook commented on GitHub (Jan 27, 2025):

Thank you. Using the same script? bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/vm/debian-vm.sh)" ?

Will it now prompt for HDD size?

@Faisbook commented on GitHub (Jan 27, 2025): Thank you. Using the same script? bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/vm/debian-vm.sh)" ? Will it now prompt for HDD size?
Author
Owner

@MickLesk commented on GitHub (Jan 27, 2025):

no not tteck. tteck is passed away. look at reponame & user
prompt only in advanced mode

@MickLesk commented on GitHub (Jan 27, 2025): no not tteck. tteck is passed away. look at reponame & user prompt only in advanced mode
Author
Owner

@Faisbook commented on GitHub (Jan 29, 2025):

Thank you. So can you p[lease post a script I can use with the updated VM installation? Does it have a HD size prompt now?

@Faisbook commented on GitHub (Jan 29, 2025): Thank you. So can you p[lease post a script I can use with the updated VM installation? Does it have a HD size prompt now?
Author
Owner

@MickLesk commented on GitHub (Jan 29, 2025):

You can do this on ui?

@MickLesk commented on GitHub (Jan 29, 2025): You can do this on ui?
Author
Owner

@Faisbook commented on GitHub (Jan 29, 2025):

Thank you so much - please advise how? I'm so sorry, I'm new to this

@Faisbook commented on GitHub (Jan 29, 2025): Thank you so much - please advise how? I'm so sorry, I'm new to this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#232