#Debian installation in a VM
1 messages ยท Page 1 of 1 (latest)
Neither the GUI install nor the normal install look like that for me
Debian installation in a VM
gotcha
strange
did you see the fiel i used?
file
I can delete the entire VM and create a new one?
idk if that's going to solve anything tho
Yes. I tested with 12.0. No need to delete.
Just select GUI install.
Hold on, I'm gonna grab that iso.
oki :3
oh
how can I check that?
I only have the .iso, no tool to open it
on the device I'm typing from now
No I mean what dio you see in the Console of the VM if you boot off of the iso.
how do I boot off of the iso?
Go to Options and select the boot order to use the DVD foist or spam ESC during boot.
Should look like this: https://i.imgur.com/OJrrBqJ.png
But like I said earlier, you can simply go to youtube and enter proxmox debian.
I see..
I'm getting the hang of it, bit by bit...
thank you for being so patient
its still rebooting
I'm not that patient today ๐
Try Stop.
Hmm.
cant turn it off? lol
Double click the task to get more info.
Is another task still running?
You can try entering this in node > Shell: rm /var/lock/qemu-server/lock-100.conf and see if that fixes it.
how do I get in Node > Shell?
Left side. Datacenter > your node > Shell
Does stop still not work?
Read again what I wrote ๐ I never said that command was the only thing.
it should start the installer.
yes it has
woohoo
should I put max on it?
I already allocated 100gb to the VM
so it should give 100gb to Debian yes?
Sure, why not.
okay
does this look good to you?
I'm still learning brick by brick, so sorry to ask stupid stuff
but I learned a shitload today
I recommend you visit the proxcord discord though. Reason being that there#s other people than can chime in so I don't have to answer everything ๐
haha most definitely bud!
Yes that's fine.
You can always give VMs more storage later but shrinking storage is harder or impossible in some cases.
gotcha
It also makes backups take longer.
what to do here
good point
Yes.
nice
It's basically a confirm option.
ok time to follow the official Docker guide on how to install it on debian 12
I recommend the install script: https://get.docker.com/
You can find a portainer compose here: https://github.com/docker/awesome-compose/blob/master/portainer/compose.yaml
https://docs.docker.com/compose/
Just be aware that few people can help you with portainer due to how it works. Better stick to compose files.
checking in a minute
kindly noted
Use something close to you.
I stick to english with all but my package mirror and the keyboard layout.
I use xx.debian*.
Yeah that's fine. deb.debian.org actually "links" you to the nearest.
Read here: https://deb.debian.org/
Correct.
what to select here?
I must be annoying you a shitfuck
I'm so sorry
but I'm really learning SO, SO much lol
Use space to deselect.
Yes.
Correct.
Linux names drives like this.
Once the install is done make sure to create a snapshot and create more after certain milestones. You're bound to break something sooner or later. Just don't keep too many or let them get too old.
True..
you're right!
Will do after its done!
Installation is complete, nice!
Ow..
I need to change my boot order again
No, just remove the iso from the drive.
rebooting now with the changes
oh..
already done what I said haha
so that's how I should visualize things, just as if I have a physical PC on my desk..
but it's virtual
a VM...
sure.
Yep. Mostly.
Which issue?
Did you enable guest agent or something?
ok
dont think so!
Can you show me the hardware and options tabs?
Remember that reboot must be handled by something. If you're in the boot manager for example nothing will listen.
alright Debian is installed correctly now
gotcha
so now I just leave it like this? :
or I login and proceed with docker
Looks okay. Icd suggest double clocking the HDD and enabling discard and SSD even if it's not.
no clue how to do either
ill look into that tomorrow
want to get docker on before I hit the bed ๐
Double click on the disk in the hardware tab.
SSD Emulation you mean?
Grab a SSH client like putty and connect to the ip of the VM.
Yeah.
User is root.
Double click vm-100 disk: https://i.imgur.com/C8ADGuk.png
Or select it and click edit at the top.
alright, installing putty now, I've w orked wit hit before
I meant double left click on the item. It does the same as using the edit button.
You might be windering how to know the VM's ip?
yup! haha
I understand, but you said I need to double overclock?
oh double CLICK
LOL
ohh it's getting late here, so sorry
You can try to use its hostname you set during install rather than the ip. You can check your router's DHCP table, or you can use the console to log in and check with ip a or hostname -i for the ip.
If you enable and install the guest agent you can see the ip on the summary too.
You should install this any way for proper snapshots and so on.
I see, alright!
going to try to install it now and then do my first snap shot
or via CLI: qm set VMID --agent 1
what's CLI?
That orange color means you have to reboot the VM for it to apply.
Or stop and start.
yup I got that!
unsaved edits
CLI is the command line interface.
GUI is graphical user interface.
gotcha1
Yes.
and I have to do this PER each VM?
gotcha
oh damn!
I don't think I should do that though
I have 8gb RAM on HA
4gb on Docker/Portainer now
4 ram left
You can edit it. 8G is overkill for HA. I just use 2 for my test VM.
Start with what you need and max out later.
alright, should I edit it to 2?
or 4
wait I already edited it to 4
I'll leave it at 4
that means I have 4 left, at least, for another VM
I'll clone this VM with fresh Debian in case, already, and keep it for later
Whatever you want. 2G should be plenty and like I said, you can give it more when needed.
bro I learned so much today
like it might feel like peanuts to you, haha
but this is the core I need to learn
it'll help me improve from here
and it's so much fun tbh
It's eye opening actually. I take a lot of this for granted when I suggest people to use PVE.
yup it really is!
so I did the first command
I skipped the 2nd
then I did the 3rd and it seems to be buggy
รญt's not do ing anything when I write the 3rd command
just loading
Best to run shutdown -h niw and boot it up again.
You used CTRL+Z ๐
yes I did hahaha
and then start with which command? should I still do it btw, after you saw my last screenshot?
Try powering it off. Enable guest agent in options, then boot it again.
ok
done and starting back up now
now what?
which commands s hould I run?
or thats it
No commands, just enable guest agent in the options.
what should I see if guest agent works?
That is fine. Click on more to see all ips.
nice
yup
so it works1
it cant hurt showing people this fe80::be24:: etc etc IP?
I took a manual snapshot of both my VMs
I want to duplicate the newly made VM now, in prep for the future
how can I duplicate this fresh Debian VM?
and then I'm off to bed!
will get Docker/Portainer on it tomorrow!
I actually recomment creating a new one for that. You don't need 100G for every VM for example.
oh gotcha!
alright no worries!
I got a small bit of time left
I'll get docker on it I guess
using htis
Yeah. Check the notes at the top.
read it
how to copy paste a command inside the Console/terminal?
cntrl + V doesnt work
Just right click in7zo the putty window
The console cannot do that. You need xterm but that should be googled.
Nope. It should be 192....
gotcha
Not the node.
I see
You want the VM's ip.
where can I find the VMs localhost name?
No. Just docker01
You cropped too much
Maybe you named it that ๐
No. Remember the SSH option during install?
That installed a SSH server. Now you use a client in yoir PC to connect to that.
Yes, try that. If it doesn't work try the 192 ip you see in the summary under more.
Hmm. What does ip a in the console say?
Looks like it didn't get a ipv4 address.
Yoir router's DHCP might be broken. PVE had issues too during install.
hmm
Can you try dhclient -r; dhclient -v and show me what it says?
I told you you can't. Not with the normal console.
I see
how come it's .179 now? my node is .231
or does each VM connect to the .1.xxx subnet?
Every VM gets its own ip.
So you got a ip now but when you reboot things might change. Maybe you selected something during install that made it not work ๐คท
Your node has a static ip, btw.
got it
Your VMs usually use DHCP.
I do have DHCP enabled inside my router
Just like your PC or whatever else you connect to the network.
Can you try one more command in the VM?
cat /etc/network/interfaces
Now you use the ip you saw and connect to it via putty to install docker or whatever.
ok checking
Hmm. Nothing shows up.
Did you create a user during install?
Remote root login is disabled by default.
Please also show me this #1212170331570307102 message
continue with the docker script?
Yep. Whatever you want.
is there a way to copy the commands inside putty?
or I still have to write it over?
Yes. Just right click into the window like I said.
apt update && apt install curl then try again.
Yeah I'm doing all kinds of typos if you didn't notice. See edit.
Kinda obvious though considering the error message.
Now you try again.
Can you show me what the apt command said?
Oh wait.
You copied the symbol at the start. Don't.
It's not part of the command.
People often use # or $ to symbolize a shell command. # usually means as root and the other as normal user.
What should it do? It downloaded the file. Now you run that file.
bash install-docker.sh
ok this command is done
Then docker should be installed now.
Check the output.
It gives you a command to test IIRC.
Otherwise just type docker
yup its installed!!
nice!
next step is, portainer?
or we need to do something first
alright I will leave it here for today!
thank you so, SO much mate!
you've been incredibly helpful, I hope you realize that!
I'm learning a lot, taking a lot of ntoes
notes
won't take long until I become a veteran haha ๐
GN buddy!
๐ซก
Tomorrow portainer then.
yessir!
@tender phoenix hey buddy
eager to get Portainer installed - can you please point me in the right direction?
I think I need to follow this, right?
Can't view that picture. Please upload it again.
Put this into a file named compose.yaml
services:
portainer:
ports:
- 8000:8000
- 9443:9443
container_name: portainer
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer_data:/data
image: portainer/portainer-ce:latest
Then run docker compose up in the directory where it is. If everything works without errors you can CTRL+C and run it with -d to have it run in the background.
no worries, I got it to run! @tender phoenix
Thanks again, for that help
yo buddy
question
why do I need proxmox?
My friend is telling me that I should have installed docker on baremetal
And then manually create containers
for HA, and other use cases, etc etc
I thought you wanted to run HAOS in a VM.
he says Proxmox is useless for me lol
I know, it's a thought now
because people, like you, advised me to do so
Besides, there's other benefits: <#hardware-archived message>
I actually don't really like HAOS and don't use it myself other than in a dev VM to help people with it.
The majority of people use it so I have to be familiar with it and we assume people use it when they don't state otherwise: https://analytics.home-assistant.io/
You get the best support for it.
I see..
but
my friend is telling me that I should have installed docker on a baremetal device
and then c reated manual containers
and give each container a specific use case
like 1 container for HA
and another container for another use case
he says running docker inside proxmox is like double up
like doing the same thing twice
he says it's like you're running proxmox inside proxmox
Not really. Docker is not virtualization.
he says I have to pick between either docker or proxmox
And I shouldn't run both, and never both in the same VM
O_o
I have a feeling they don't know what proxmox Ve is.
You don't run proxmox VE in a VM. It is the OS where VMs run on.
what is it?
it's basically creating VMs on a device
Please google some of those questions.
but I know
If you're unhappy you can re-install bare-metal debian.
I can give you suggestions but I'm not interested convincing you. Take my facts and theirs and research what you want to do.
I totally understand buddy
so he's telling me that docker is creating VMs, but then in the shape of a container
Like Is said, I don't think they fully understand the difference between VMs and containers.
oh really..
but is he correct in what he's saying?
that Docker is also creating VMs, as containers?
I'm trying to learn
No that makes no sense.
It's like saying audi makes cars as bikes. Just check the links.
Now if you would create a VM for each docker container that would be redundant. But we ain't.
But let's close this thread as it's off-topic for the thread now too ๐
I recommend you ask your PVE question in the proxcord server. I'm usually there too.
Sure.
he says he's using proxmox himself on a server pc at home, he has plex in a vm, sabnzb in a different vm
he says Docker is offering the same, but then in containers
so he's saying that you can do everything with both
and with a container it's easier...
because you don't need the underlaying OS
like I do now
Yeah? Try to run windows in a docker container.
O_o
I just googled and this seems to be possible now : P
It just depends what you want to do. It makes more sense to run HA whatever in a container but that's what we do, just in a container in a VM.
Hah. Cool.
My point was that VMs and containers are different hence why I shared the links.
I understand, so I should've installed HA in a container? or no
yes understandable
Read them, see the differences. check if these matter to you.
And again, benefits linked earlier.
I don't see any disadvantages. Well besides harder installation.
Portainer is a GUI for docker containers. If you use portainer to install HA you use HA in a container. It just happens that the debian OS portainer is running on is running in a VM rather than bare-metal.
We use one single VM for dozens of docker containers. You can also use CTs which are similar to docker containers but they run a whole OS rather than a app.
I don't recommend CTs for now though.
what are CTs?
understand
Google CT proxmox
Goes like this
PVE
Hardware > PVE (debian) > VM (debian) > docker > portainer
> HA
> Other app
Bare-metal
Hardware > OS (debian) > docker > portainer
> HA
> Other app
Understand!
Interesting
So if you were to be me, in my scenario
Would you have installed proxmox > VMs > HA on one, and other use cases on another VM
Or debian baremetal > HA in a container
docker*
I run it like you do at the moment, just without portainer.
interesting..
so you think we only have pros, and no cons
versus the other options
because I like the way we did it now!
literally has no downside/con
afaik
The installation and setup is harder, of course, but other than that I don't see the con. The benefits outweigh them a lot for me.
the installation/setup of what we did?
Just the snapshotting alone is so useful for testing things and reverting them again.
Yeah.
No problem.
This docker image actually uses virtualization: https://github.com/dockur/windows
oh?
/dev/kvm
And what are the disadvantages of what you have right now? Why do they want you to stop it so badly?
good question!
But again, let the folks here convince you https://discord.gg/8R2W3jCWtw
I will provide you with an answer when I receive it!
thanks!
so he's saying this:
if he were to be me
he would either only install proxmox with VMs
or only docker with containers
not proxmox with a docker, with container on top
does that make sense..?
The why is missing.
What's so bad about running docker in a VM.
I initially suggested PVE because you wanted to run HAOS and other docker containers. HAOS does not support running random docker images so the only choice was to virtualize HAOS and run your other containers in a VM.
He says that Docker is perfectly capable to run standalone, in a VM we're losing resource power
And just because you only want to run HA right now in a container doesn't mean you might not want to run other things in a VM in the future. There's just no point limiting yourself if there's no con.
VMs are sharing resources
That does not explain why running VMs isn't bad but running docker in a VM is. Sharing resources is also very vague. Processes do that too.
he says that you can probably get HAOS on an ubuntu container within docker
that would have been an option
good point
I think the main point is that I have to allocate resources to a specific VM right?
and so that resource gets drawn from within the resource pool
good point!
is this an option?
I don't believe you can HAOS in a container but I'd like to see you try ๐
I'm open to change my mind.
See here how HAOS works: <#general-archived message>
Besides, running HA in non-official ways is bound to get you stuck with no help.
Same as I said for docker and portainer, stick to official guides or ways to run the software.
I still don't know what's so bad about what you do right now.
Why would you go through the pain of jerryrigging stuff for no reason.
I'm tired of this through. I gave you all the answers, don't pick sides, gain knowledge and choose your own path.
I completely understand you
This is good to know
However, why would we want HAOS in specific and not HA in Docker for example?
I'm trying t understand the main benefits of my setup now
Because it appears that the way we did it, is actually VERY solid
and really appreciate your insights/input on helping me get this done
but lets say, if I'd have HA on Docker opposed to HAOS on the VM as I have now
I don'I don't know your reasons nor woudl I be able to remember them if I did.
I understand!
HAOS is much simpler/easier right?
compared to just HA on a container
The only "benefit" HAOS has, IMO, are addons but you can just run the stuff in docker containers and have more freedom so ๐คท
I linked you the benefits. You now have freedom to use CTs, all kinds of OSs, VMs, whatever you want.
here?
And you also get snapshots, proper backups and so on.
With PVE vs bare metal.
The only benefit of HAOS I told you here: <#1212170331570307102 message>
Also see table here: https://www.home-assistant.io/installation/#advanced-installation-methods
Addons are easy to install and integrate nicely with HA but addons are very restrictive.