Useful Debian 12 VM Commands #1988
Replies: 13 comments 23 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@tteck - as a suggestion, linking to this announcement from the Helper Scripts page directly would make it easier for people to find/leverage (might reduce support questions in the future as well) |
Beta Was this translation helpful? Give feedback.
-
I think that the default size of the debian 12 VM is too small. I am unable to install parted in a 2gb VM |
Beta Was this translation helpful? Give feedback.
-
These instructions are extremely helpful! Question: How can I modify the network settings? (From DHCP to static.) (I tried a few things but nothing stuck. I searched for docs online, but a lot of them point to /etc/network/interfaces, which is just not how the debian 12 vm image configures the interfaces.) UPDATE with TL;DR: Debian uses netplan by default. See |
Beta Was this translation helpful? Give feedback.
-
Another easy way out of re-sizing the disk without parted is found here.. https://serverfault.com/a/994465 On a running system, run fdisk and carefully observe where the partition starts (p). Then remove it (d), and create (n) larger one on its place. Modern fdisk could ask about wiping signatures, if it will, say "no" (this is essential)! Pay special attention on its start, it must begin at exact same sector, but could have larger size. Exit fdisk writing changes (w).
|
Beta Was this translation helpful? Give feedback.
-
With the source image for this install one can use the following set of commands, no need for parted: growpart /dev/sda 1
resize2fs /dev/sda1 Done (no need for reboot). |
Beta Was this translation helpful? Give feedback.
-
Change dhcp to static :
and write information conection
for example
and finaly |
Beta Was this translation helpful? Give feedback.
-
What to do if return a |
Beta Was this translation helpful? Give feedback.
-
Add Guest Agent
|
Beta Was this translation helpful? Give feedback.
-
I had to |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I couldn't update the installed virtual machine due to Debian using more space on /boot. I edited /etc/initramfs-tools/initramfs.conf by changing the MODULES=most to MODULES=dep. |
Beta Was this translation helpful? Give feedback.
-
I typically doe's this:
Then I call this from my internal webserver: "ssh.sh"
And then I do call this: "expand_disk_size.sh"
Finally I do a But non of the above would be useful with out the cool helper scripts 🥇 |
Beta Was this translation helpful? Give feedback.
-
Select xterm.js under the Console pull down for copy/paste functions
Get SSH Going
Resize the Bootdisk (/dev/sda)
Hardware > Hard Disk (scsi0) > Disk Action > Resize
Expand VM Disk using parted (/dev/sda1)
parted /dev/sda
resizepart 1
Fix/Ignore?
Fix
Partition number?
1
Yes/No?
Yes
End? [2146MB]?
-0
(parted)
quit
(reboot if not going further)
Add Guest Agent
Change Hostname (replace "docker-vm" with whatever you want)
Install Docker
Install Docker Compose
Add Dockge
Dockge GUI, https:// IP:5001
Add Portainer
Portainer GUI, https:// IP:9443
Beta Was this translation helpful? Give feedback.
All reactions