No networking available in virt-manager
Hey, I setup virtualization with
ujust setup-virtualization
and added my user. I created a fresh Windows 11 VM, but I cannot get networking to work. No matter what I select it just says IP address unknown.
181 Replies

dont use a modified iso?

because it works fine for me
Yeah for me the IP is unknown
I sadly can't not use a modified ISO, this is my main work machine and I need certain things
However my modifications have nothing to do with networking
https://github.com/fat0troll/ublue-hdkv/blob/main/build-tibix.sh
So there shouldn't be much if any difference
my point is, it does not happen on the iso downloaded from microsoft
Oh you didn't mean Bazzite but Windows
Sure, I can do a normal ISO
https://uupdump.net/ or what do you recommend?
UUP dump
UUP dump
UUP dump lets you download Unified Update Platform files, like Windows Insider updates, directly from Windows Update.
literally the one you download from the windows 11 download page
Ah, so you don't need the install media tool thing for that
Okay got it
Now there's an error
swtpm at /usr/bin/swtpm does not support TPM 2
Re-run
ujust setup-virtualization
and enable virtualization, this was fixed like a week and so ago@HikariKnight The TPM problem now disappeared, the network problem is same as before
Official Microsoft ISO for Windows 11
IP Address is Unknown and the VM detects no connection


you should be able to go around this issue by pressing
Shift+F10
on your keyboard and typing in oobe\bypassnro
that should let you do the rest of the setup and then on the desktop you can install the drivers via the virtio-ISO.their problem was that networking didnt work even after install
ah oof
well guess im re-downloading again, although i will be downloading the english one so i can read 🤣
:Harold:
inb4 its that 1 language iso that somehow dont have the intel e1000 drivers :clueless:
yep this was my problem
the install just finished so lets see now
also this, it shouldn't say unknown

its weird
just waiting for the windows crank to finish turning on the first boot into the ootb experience
unknown
is what it will say until it has an ip, i forget if the qemu agent is required for it to show an ip for windows guests
but we will see
nvm works for me

uuid is irrelevant

if you specifically dont need it to be a nat network
you can try macvtap and fill in your interface
it will make it kinda like a bridged connection so the VM is part of your real network
hmm, for macvtap what would I enter?
however host and VM cannot communicate on the network
also lemme show you the equivalent


this would mean?
device name is the network interface you have network connection on
ignore the device model

so then like so
change the device name to your network interface that is connected to the network
you most likely do not have enp5s0
I do tho

ah ok
then just start the vm
:wolfsob:

HOWWWWWWW
ok i have no idea why it wont work for you
try the device model
rtl8139
I'm more than willing to do debugging with anyone willing to get this working
its a virtual realtek card
I cannot select
rtl8139
only options aretype it in
ah
same now
this doesn't make much sense to me, it's a fresh install, I haven't changed much
and the thing is, in virsh I see the network running exactly the same as yours
then i have no idea 🤔
hmm..
if I can put up a 20$ bounty would someone help me fix this asap?
if it's not against the rules
I kind of need this vm because I sometimes write windows specific code that doesn't apply to wine
something is severely wrong though since that should work ootb
well, I can post whatever logs you need
journal, dmesg
well not you in specific cause I don't wanna bother you if you're busy but whoever wants to help
if i were to guess the dhcp doesnt work properly
sudo virsh net-edit default
should look like this, minus the uuid and mac
and when the vm is booted you should see the dhcp leases with sudo virsh net-dhcp-leases --network default
also i dont think there are any rules against bounties. i sadly dont have a spare drive atm to test a fresh install though atm
yep no dhcp leases happen

which qemu session are you using?
system or user session?
how do I check that?
check the top of the VM list in virt-manager



system session
should I be using the other one?
ok i genuinely have no idea why it doesnt work
:wolfsob:
okay plan B
no youre on system which is the correct one
can we vmware
is it in fedora repos
vmware uses kernel modules we cant ship
:DogeSobGif:
just out of curiosity though
is this issue present with a linux iso 🤔
uhh haven't tried virtualization with an iso
i would assume yes
or you mean
do you mean linux iso as a virtual machine or virt manager running from a live iso?
i mean like boot lets say pop os iso and just see if it connects
yeah sure lemme try pop
also you can try see if setting the network to nat and manually setting the ip works
in which case for some reason the dhcp for your libvirt is broken for some reason
in the xml?
sure just lemme know which prop to add
current version is 22 something

last one here is 20.10
is it fine?
doesnt matter, it just sets recommended disk size, cores and memory
you could set it to freebsd, manually set cores, memory and disk size and it wouldnt bat an eye
no in the vm itself

lol

thats insane man

time to try windows 10?
huh
interesting
well then @Tibix what language iso is it you download?
guess i need to try that one now :clueless:
because i just download windows from here
https://www.microsoft.com/en-us/software-download/windows11 and that works as thats the official download page, any iso grabbed elsewhere even if its just a different iso directly from microsoft i would label as unofficial since its not the one served to users
Same page as you sent here, language is Hungarian (hu-hu)
ok let me download and try that one
this is getting weirder and weirder
this is a rabbithole :OMEGALUL:
THIS IS A RABBITHOLE

okay, english it is
it is since we ruled out the issue does not happen on English US iso (im norwegian i just dont enjoy tech using norwegian display language)
does not happen on linux isos
I should try an english ISO to see
well linux isos also use the virtio driver since they have it baked in
I will be extremely weirded out if en-us also dies
worst case you install and just download the virtio drivers iso and install that in the vm
🤷
wait holy shit you might be onto something
okay can you send me the virtio iso
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
remember to set the device model to virtio in network before booting
i swear though if its as dumb as "the driver is missing from the hungarian iso" i am going to laugh
okay so I mounted the iso, installed the drivers
stuff like spice installed fine because my mouse is super smooth now
I changed model to virtio

I assume this is how youmeant it
seems like network is still dead

okay, for now I will try an english iso
im downloading the hungarian one just to sanity test
:clueless:
did you reboot?
yup yup
i wonder what happens if you set the ip in windows to
192.168.122.5
subnet mask to 255.255.255.0
and gateway to 192.168.122.1
will you be able to reach the internet then (the ip wont show in virt-manager as its not handed out by the dhcp)
I'll let you know as soon as I install the english iso
cause I deleted the current vm
I got it from here
yep thats the link
GitHub
Windows 2022 and Red Hat VirtIO Ethernet Adapter · Issue #998 · vir...
Describe the bug The installation of virtio-win-0.1.240 ends up without the installed NIC-Drv: 'Red Hat VirtIO Ethernet Adapter' In Network setting I does not see a NIC To Reproduce Install...
oh my download finished
let me go be hungarian for a few mins 😄
Hungarian and German ISO are broken with that driver
AHAHAHAHAHAHAHA
Dude my luck is absolutely insane 10/10
oh thats funny, maybe it also affects the intel e1000 driver too
I am never downloading a hungarian thing ever again
guess i have another reason to keep running everything on my pc in english display language 🤣
I hope this will be fine lmao

its how i install windows then i do a registry hack to stop a windows bug from randomly switching me to the US keyboard layout (it will still say it uses it, but it will use the norwegian layout file instead)
that happened to me all the time when I was using windows
luckily as soon as I switched to Linux everything was good
I even removed the us layout it somehow always came back on windows
im going to assume this is norwegian keyboard layout :clueless:
why? because it looks like "norveg"

norwegian is indeed norvég
microsoft forgot to translate their installer fully 🤣

:OMEGALUL: :OMEGALUL:
production ready os
imagine not knowing any english and not understanding that checkbox 😄
I imagined that untranslated checkbox with peak hungarian english accent
haha
btw I love in windows install
how
you specify your layout
then

you specify it again
yep
layout for installing
layout for installed
macos does the same
also there is already fix for it in upstream, https://gitlab.com/qemu-project/qemu/-/issues/774 now you need to wait for fedora to include it
GitLab
Win(PE) NIC issue with pc-q35-6.1 (#774) · Issues · QEMU / QEMU · G...
Host environment Operating system: Fedora 35 OS/kernel version: 5.15.6-200.fc35.x86_64 Architecture: amd64 QEMU flavor: qemu-system-x86_64 QEMU...
<insert a lot of different swear words here>

lmao!
@Niklas ⚡ boy do i have a fun story for you :clueless:
i wonder if it breaks if you set the display language to hungarian after install
I do not have the courage required :OMEGALUL:
the hungarian ISO is broken?
yes
all hungarian isos
windows 10, 11
wtfffff
lmfao
also affects german iso
What is microsoft doing 😭
i never install german Windows unless i have to, i live in english operating systems :clueless:
same!
i never install norwegian language unless forced upon me
and yeah

hungarian iso, no ip with e1000
absolutely wild
I never install localization either, this was the only exception lmao
im still laughing irl
same dude
like there is no fucking way in hell lmao
I wanna keep my promise though
@HikariKnight @iMightBeSpyduck if you two don't mind, I'd like to send you 20$ each to thank you for helping, I can do usdc via solana
i was joking about the whole "i wonder if the hungarian iso just doesnt have the driver"
I was like there's no way and that turned out to be it exactly
not here for the money, but thanks 🙂
i dont have any crypto wallet anyway
no worries, I really appreciate your help though so if I can make it up to you in any way lmk
to be honest I did nothing, I just came here while you already had it fixed
ublue is awesome so far, I just changed from arch after being fed up after years of updates breaking my system
the weekly updated cycle was run
yay
, see what broke this time..i never had an arch phase :clueless:
yeah started out with arch as well
thank yourself for this decision
went ubuntu --> pop --> ublue over the course of 17 years or something
(some short experiments with random distros) ---> manjaro ---> endeavour ---> ublue
some friends did suse but roughly followed the same pattern
that ubuntu and pop install were one and the same install
didnt reinstall
only reinstalled my main system 2 times
my linux journey is all over the place but nothing stuck until ublue
before it i always went back to windows
oh yeah i did play around with lots of other distros on my laptop
a good friend convinced me to try ublue, so it's thanks to him I'm here
@Niklas ⚡ i lived in solaris for 1 month on my macbook
😭 lol
I now mostly live in macOS and Linux
i just noticed something funnily fitting in the hungarian OOTB window

Igen looks like Igjen which means "again" in norwegian
oh well time to nuke this vm
I was gonna get a macbook for cheap since I don't have a laptop
and do the same as you
desktop linux, mac laptop
ooh, that's a cool coincidence
sorry, I must ask every norwegian I meet, have you read norwegian wood?
sorry what?
Yeah I have two laptops
i dont use a desktop much anymore
it's a book I like a lot
title happens to be norwegian wood
oh lol
funny
sadly i got dyslexia so i dont read much
lots of text makes me nope out
funny enough reading documentation i have no issues with 🙃
brain funny
adhd here, these days it's very hard to sit down and read a book
unless it really interests me
yep
know that too well
docs I read plenty too, sometimes for better or for worse
I think at some point when you're a frontend dev you start dreading any new library
no matter how fancy their docs looks
it's a bit like meth
first it's awesome and you're excited for all these new tools
then oh, another library...? when will this end?

same energy
^^^ 100% this
henlo ❤️