#HAOS on Virt-Manager
1 messages ยท Page 1 of 1 (latest)
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
No. On the host. Where virt-manager is running on.
VM = guest. Host = device running the VMs.
i feel so stupid asking this but do you know how to exit out of the kvm vm window ๐ญ
Not at the top of my head. I don't use virt-manager.
alr gime a sec to figure it out
I virtualize with Proxmox VE myself.
thats what my friend was telling me to use but i thought it wasnt compaitiable with ha
no way in hell im remembering that
Sure is.
From where were you trying to access your HA website? From the same device?
my mac, im sshed into it
It's interesting that it has ips like 10.0.0.101 but also 192.168.122.1.
Can you please check your MAC's ip address?
101 is the machine itself
im pretty positive
How did you choose that ip?
my mac is 10.0.0.04
if i remmber
Yeah then this cannot work unless you have some good router.
im on the same router as it
if thats what u mean
Usually when virtualizing the bridge has the ip but not the NIC itself.
enp1s0 should not have an ip. and the bridge's ip should be in the same range as your MAC otherwise you cannot access it
If you want to cross networks like that you need a router than does this for you.
wdym cross networks
You cannot simply access 192.xxx when you are in 10.xxx.
but its on my network ?
The networking is very weirdly configured. You have two bridges. vtnet0 and virbr0 and they are connected to each other but enp1s0 is not part of it.
unless linux is diff, i had ha running before perfectly fine in my windows install
so im guessing its something to do with my bridge config then
bridge name bridge id STP enabled interfaces
breno1 8000.de139062b15c no
docker0 8000.0242bc7fece6 no
virbr0 8000.525400aa67d2 yes vnet0
root@sussexserver01:/home# ```
What OS is running on the host?
Ubuntu server, latest
I'm not too familiar with how they do networking there. I guess NetworkManager.
But basically you want ta bridge that is connected to enp1s0 and give that bridge to your HAOS VM.
Don't assign a static ip to that bridge. let it use DHCP.
do you wanna see my bridge config ?
Sure but I'm not sure how much I can help with it.
ah, alr then, well thank you appreciate your help alot
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
renderer: networkd
ethernets:
# here eno1 is the ethernet adapter for the host machine
# we found this name in a previous step
enp1s0:
dhcp4: no
dhcp6: no
bridges:
# breno1 will be the name of our bridge
# it will use DHCP to get an IP address
breno1:
dhcp4: yes
dhcp6: no
interfaces: [ enp1s0 ]
root@sussexserver01:/etc/netplan# ```
here it is anyways though lol
Ah. Netplan.
Hmm. As you can see here the interface is not assigned to the bridge: <#1237586584228991057 message>
You might ahve to run netplan apply or something like that,
no idea what that is lmao, i just went thru kvms install guide
my only guess is i put my network interface in wrong bc i didnt know what one it was
oh alr
ill take a look at that
There's a few instructions here too: https://www.tecmint.com/create-network-bridge-in-ubuntu/
ya my brains fried i pretty well did exactly the same as this so idk
Do it tomorrow with fresh eyes ๐
oh great now my server just decided to shit itself even know i can clearly see its online infront of me
loving my choice of swapping to linux sm lmfao
my grow lights, ebike, so much bull crap runs on ha
so annoying to do stuff manually
and all my lights
ive been sitting in the dark its sad
and i havnt even got to recovering the backup, i feel like that is gonna be the hell part of all of this i dont even wanna think abou tit
Restoring a backup is pretty trivial. Just have to remember to reboot the VM afterwards.
idk if you can tell from the ip a i sent but do i have the correct network adapter selected in my config? i have no idea how to figure out what one it would be
Yes. I'm just not sure what ubuntu uses right now.
Since you have a desktop environment that does stuff too.
i remember my first time installing ha i had issues and went back to check it 30m later and it was just randomly working, had to check it lmfao
So in your case I'd check this: https://www.tecmint.com/create-network-bridge-in-ubuntu/#nm-connection
welp idk what i did but my server has offically said its done with me
i cant ssh into it anymore
When testing networking stuff it's best to do that in a VM or with a keyboard and monitor ๐
its like the whole server went down at that ip nothing exists at the ip anymore even know its litterly alive infront of my eyes, i wonder if it some how reassigned itself to a new ip if thats even possible
what the fuck it did
its 10.0.0.45 now
my brains even more bambled now
This is fine. Your network seems to be based on 10.0.0.xx. Don't use anything else for now..
yeah its based on that but, why the hell did it change ips
i didnt edit shit
I'm not sure who picked 192.168.122.1 or why it was picked.
i think this means its done for the day
edited terminus from .101 to .45, works fine, its just like its trying to make me go crazy
What does ip a and brctl show say now?
about the same it looks like
Now you just need to delete virbr0 (not time sensitive) and set breno1 as your HAOS VM's interface.
what would virbr0 be from, and you mean in my bridge config or?
I'm not sure. Maybe virbr0 is a default virt-manager creates. It doesn't hurt to exist but it's not needed and might confuse you.
Maybe you could show me the dropdown menu of the NIC option for the VM.
wdym? my apologises i feel so stupid
This Source device dropdown here: https://i.stack.imgur.com/Ob1IH.png
ive never seen that menu
i didnt even know there was a menu thought it was all command base
Oh. I thought you use virt-manager?
thats just a gui right
Yeah.
kvm installed it, i tried opening it, got a error and gave up
so just used virt-install
kael@sussexserver01:~$
(virt-manager:1986): Gtk-WARNING **: 02:57:35.055: cannot open display:
Give me a second to replicate
i would of researched it but i thought i didnt need it since i managed to get it created without it and i was sick of looking at errors today if you know what i mean lmfao
You chose the hardest installation method to virtualize ๐
Not even I would dare do this.
i had a simular error with virt box too, saying qt cant open the display
bro
what other methods are there
theres the noob way of ha green
theres windows
and linux
really feeling like maybe i am though i thought i had more linux experience ๐ญ
i thought you virtualize too lmao
virt-manager is the GUI method. VirtualBox too. Proxmox VE is kind of more advanced but yloou get better hlep and have a GUI too,
ah
Or you install HA as docker container. Or even HAOS bare metal.
wanna know whats funny
i was gonna
on a windows vista machine
I do, just not straight from the command line like this.
i found one in my basement but i thought tomyslef i dont wanna sit there all day for it to run like a fucking peice of shit
ah
i used to manage a host somewhat ish a couple years back and used Ubuntu so i thought i could use it again but clearly not
my goal is to install truenas ha and plex all on this computer, and its a peice of shit so im trying to save as much preformance as possible
isnt it two parts
virtualizeing
and docker
thats what the instructions says i thought
You can virtualize HAOS or you can run HA core in a docker container.
HAOS uses docker too but it's its own whole OS.
No. The only benefit is things like addons which arre just docker containers.
i would of done docker if i knew i coulda lmao
im not going back now
way to far into this shit
I combine both. I run a VM where I can run docker in.
whats the point in that?
But I also have a HAOS VM to help others here. I don't use HAOS myself though.
^ For example.
ahh
is there no cmd i can run to show u this ?
I can also run Windows VMs and such.
Maybe. the config file for the VM is in nano /etc/libvirt/qemu/.
Like I said I don't use these CLI tools so I first have to research everything.
hass.xml?
Yup.
<source network='default'/> probably has to look like source bridge="breno1"/>.
You can edit this with virsh ... but it has like a thousand commands and options ๐
omg
where the hell
i dont see any steps where i configed that so at least i wasnt stupid
yeahhhh ima just take the nano option
Try
virsh net-list and virsh net-edit --network default.
For the latter you cna probably just replace virbr0 with breno1.
No that's just nano.
what about the other thing?
.
That was wrong ๐
error: internal error: bridge name 'breno1' already in use.
Failed. Try again? [y,n,f,?]: ```
Hmm.
Ah. I see.
The first option was correct.
It makes more sense to change the default settings but I don't know exactly how and I'm tired.
wdym, cant i just go into that file?
or is it more complicated then that
One is for the VM, one is fort the default config.
No but I don't know the syntax.
ChatGPT is often confidently incorrect.
so like
im so confused kinda
if i install haos, do i install anything else with that
or what the hell is ha container, supervised, etc
The only real options are Docker and HAOS. HAOS is a OS.
See here: #general-archived message
ah ok
Gonna go mobile. Might be slow to respond from now on.
holy shit im so stupid maybe
idk if the vm is even started now
when the server shitself i restarted it
and i bet you it dosent come back online automaticly
what if i try virsh ?
You can try. I'm out for today with this topic.
๐ have a gn