#HAOS on Virt-Manager

1 messages ยท Page 1 of 1 (latest)

strange solstice
#

What does ip a on the host say?

#

HAOS on Virt-Manager

subtle kettle
#

whats that paste site again

#

im brain dead

#

and its too much to paste here

vocal sonnetBOT
#

Please use a code share site to share code or logs, for example:

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.

subtle kettle
strange solstice
#

No. On the host. Where virt-manager is running on.

#

VM = guest. Host = device running the VMs.

subtle kettle
#

i feel so stupid asking this but do you know how to exit out of the kvm vm window ๐Ÿ˜ญ

strange solstice
#

Not at the top of my head. I don't use virt-manager.

subtle kettle
#

alr gime a sec to figure it out

strange solstice
#

I virtualize with Proxmox VE myself.

subtle kettle
#

no way in hell im remembering that

strange solstice
#

Sure is.

subtle kettle
#

control + ]

#

weird ass fu cking key combo

strange solstice
#

From where were you trying to access your HA website? From the same device?

strange solstice
#

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?

subtle kettle
#

im pretty positive

strange solstice
#

How did you choose that ip?

subtle kettle
#

if i remmber

strange solstice
#

Yeah then this cannot work unless you have some good router.

subtle kettle
#

if thats what u mean

strange solstice
#

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.

subtle kettle
#

wdym cross networks

strange solstice
#

You cannot simply access 192.xxx when you are in 10.xxx.

subtle kettle
strange solstice
#

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.

subtle kettle
#

unless linux is diff, i had ha running before perfectly fine in my windows install

subtle kettle
strange solstice
#

Can you run brctl show?

#

Yes.

subtle kettle
#

so im not suprized

subtle kettle
strange solstice
#

What OS is running on the host?

subtle kettle
strange solstice
#

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.

subtle kettle
#

do you wanna see my bridge config ?

strange solstice
#

Sure but I'm not sure how much I can help with it.

subtle kettle
#

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
strange solstice
#

Ah. Netplan.

#

You might ahve to run netplan apply or something like that,

subtle kettle
#

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

subtle kettle
#

ill take a look at that

strange solstice
subtle kettle
strange solstice
#

Do it tomorrow with fresh eyes ๐Ÿ™‚

subtle kettle
#

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

subtle kettle
#

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

strange solstice
#

Restoring a backup is pretty trivial. Just have to remember to reboot the VM afterwards.

subtle kettle
#

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

strange solstice
#

Yes. I'm just not sure what ubuntu uses right now.

#

Since you have a desktop environment that does stuff too.

subtle kettle
#

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

strange solstice
subtle kettle
#

welp idk what i did but my server has offically said its done with me

#

i cant ssh into it anymore

strange solstice
#

When testing networking stuff it's best to do that in a VM or with a keyboard and monitor ๐Ÿ˜„

subtle kettle
#

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

strange solstice
#

This is fine. Your network seems to be based on 10.0.0.xx. Don't use anything else for now..

subtle kettle
#

i didnt edit shit

strange solstice
#

I'm not sure who picked 192.168.122.1 or why it was picked.

subtle kettle
#

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

strange solstice
#

What does ip a and brctl show say now?

subtle kettle
#

about the same it looks like

strange solstice
#

No that looks better.

#

That looks like it should, actually.

subtle kettle
#

welp time to go testy and cross my fingers

#

nope

strange solstice
#

Now you just need to delete virbr0 (not time sensitive) and set breno1 as your HAOS VM's interface.

subtle kettle
#

what would virbr0 be from, and you mean in my bridge config or?

strange solstice
#

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.

subtle kettle
strange solstice
subtle kettle
#

ive never seen that menu

#

i didnt even know there was a menu thought it was all command base

strange solstice
#

Oh. I thought you use virt-manager?

subtle kettle
strange solstice
#

Yeah.

subtle kettle
#

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: 
strange solstice
#

Give me a second to replicate

subtle kettle
#

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

strange solstice
#

You chose the hardest installation method to virtualize ๐Ÿ˜„

#

Not even I would dare do this.

subtle kettle
subtle kettle
#

what other methods are there

#

theres the noob way of ha green

#

theres windows

#

and linux

subtle kettle
subtle kettle
strange solstice
#

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,

subtle kettle
#

ah

strange solstice
#

Or you install HA as docker container. Or even HAOS bare metal.

subtle kettle
#

i was gonna

#

on a windows vista machine

strange solstice
subtle kettle
#

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

subtle kettle
#

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

subtle kettle
#

virtualizeing

#

and docker

#

thats what the instructions says i thought

strange solstice
#

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.

subtle kettle
#

wait so i dont need haos?

#

oh

strange solstice
#

No. The only benefit is things like addons which arre just docker containers.

subtle kettle
#

i would of done docker if i knew i coulda lmao

#

im not going back now

#

way to far into this shit

strange solstice
#

I combine both. I run a VM where I can run docker in.

subtle kettle
#

whats the point in that?

strange solstice
#

But I also have a HAOS VM to help others here. I don't use HAOS myself though.

#

^ For example.

subtle kettle
#

ahh

subtle kettle
strange solstice
#

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.

subtle kettle
#

hass.xml?

strange solstice
#

Yup.

subtle kettle
strange solstice
#

<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 ๐Ÿ˜„

subtle kettle
#

where the hell

#

i dont see any steps where i configed that so at least i wasnt stupid

subtle kettle
strange solstice
#

Try
virsh net-list and virsh net-edit --network default.

subtle kettle
#

oh thats suck

#

sick

#

is that just nano on crack

strange solstice
#

For the latter you cna probably just replace virbr0 with breno1.

#

No that's just nano.

subtle kettle
strange solstice
#

That was wrong ๐Ÿ™‚

subtle kettle
#
error: internal error: bridge name 'breno1' already in use.
Failed. Try again? [y,n,f,?]: ```
strange solstice
#

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.

subtle kettle
#

or is it more complicated then that

strange solstice
#

One is for the VM, one is fort the default config.

#

No but I don't know the syntax.

subtle kettle
#

ah

#

chatgpt time baby

strange solstice
#

ChatGPT is often confidently incorrect.

subtle kettle
#

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

strange solstice
#

The only real options are Docker and HAOS. HAOS is a OS.

subtle kettle
#

ah ok

strange solstice
#

Gonna go mobile. Might be slow to respond from now on.

subtle kettle
#

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

subtle kettle
#

what if i try virsh ?

strange solstice
#

You can try. I'm out for today with this topic.

subtle kettle
subtle kettle
#

i gave up reinstalled to desktop Ubuntu lmfao

#

so much easier