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.
No description
181 Replies
Tibix
TibixOP2w ago
No description
HikariKnight
HikariKnight2w ago
dont use a modified iso?
No description
HikariKnight
HikariKnight2w ago
because it works fine for me
Tibix
TibixOP2w ago
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
HikariKnight
HikariKnight2w ago
my point is, it does not happen on the iso downloaded from microsoft
Tibix
TibixOP2w ago
Oh you didn't mean Bazzite but Windows Sure, I can do a normal ISO
Tibix
TibixOP2w ago
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.
HikariKnight
HikariKnight2w ago
literally the one you download from the windows 11 download page
Tibix
TibixOP2w ago
Ah, so you don't need the install media tool thing for that Okay got it Now there's an error
Unable to complete install: 'internal error: Could not run '/usr/bin/swtpm_setup'. exitstatus: 1; Check error log '/var/log/swtpm/libvirt/qemu/mswin11-swtpm.log' for details.'

Traceback (most recent call last):
File "/app/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/app/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
installer.start_install(guest, meter=meter)
File "/app/share/virt-manager/virtinst/install/installer.py", line 726, in start_install
domain = self._create_guest(
^^^^^^^^^^^^^^^^^^^
File "/app/share/virt-manager/virtinst/install/installer.py", line 667, in _create_guest
domain = self.conn.createXML(initial_xml or final_xml, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.12/site-packages/libvirt.py", line 4545, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: Could not run '/usr/bin/swtpm_setup'. exitstatus: 1; Check error log '/var/log/swtpm/libvirt/qemu/mswin11-swtpm.log' for details.
Unable to complete install: 'internal error: Could not run '/usr/bin/swtpm_setup'. exitstatus: 1; Check error log '/var/log/swtpm/libvirt/qemu/mswin11-swtpm.log' for details.'

Traceback (most recent call last):
File "/app/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/app/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
installer.start_install(guest, meter=meter)
File "/app/share/virt-manager/virtinst/install/installer.py", line 726, in start_install
domain = self._create_guest(
^^^^^^^^^^^^^^^^^^^
File "/app/share/virt-manager/virtinst/install/installer.py", line 667, in _create_guest
domain = self.conn.createXML(initial_xml or final_xml, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.12/site-packages/libvirt.py", line 4545, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: Could not run '/usr/bin/swtpm_setup'. exitstatus: 1; Check error log '/var/log/swtpm/libvirt/qemu/mswin11-swtpm.log' for details.
swtpm at /usr/bin/swtpm does not support TPM 2
HikariKnight
HikariKnight2w ago
Re-run ujust setup-virtualization and enable virtualization, this was fixed like a week and so ago
Tibix
TibixOP2w 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
Tibix
TibixOP2w ago
No description
Tibix
TibixOP2w ago
No description
Niklas ⚡
Niklas ⚡2w ago
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.
HikariKnight
HikariKnight2w ago
their problem was that networking didnt work even after install
Niklas ⚡
Niklas ⚡2w ago
ah oof
HikariKnight
HikariKnight2w ago
well guess im re-downloading again, although i will be downloading the english one so i can read 🤣
Niklas ⚡
Niklas ⚡2w ago
:Harold:
HikariKnight
HikariKnight2w ago
inb4 its that 1 language iso that somehow dont have the intel e1000 drivers :clueless:
Tibix
TibixOP2w ago
yep this was my problem
HikariKnight
HikariKnight2w ago
the install just finished so lets see now
Tibix
TibixOP2w ago
also this, it shouldn't say unknown
No description
Tibix
TibixOP2w ago
its weird
HikariKnight
HikariKnight2w ago
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
HikariKnight
HikariKnight2w ago
No description
HikariKnight
HikariKnight2w ago
No description
HikariKnight
HikariKnight2w ago
uuid is irrelevant
No description
HikariKnight
HikariKnight2w ago
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
Tibix
TibixOP2w ago
hmm, for macvtap what would I enter?
HikariKnight
HikariKnight2w ago
however host and VM cannot communicate on the network
Tibix
TibixOP2w ago
also lemme show you the equivalent
Tibix
TibixOP2w ago
No description
HikariKnight
HikariKnight2w ago
No description
Tibix
TibixOP2w ago
this would mean?
HikariKnight
HikariKnight2w ago
device name is the network interface you have network connection on ignore the device model
Tibix
TibixOP2w ago
No description
Tibix
TibixOP2w ago
so then like so
HikariKnight
HikariKnight2w ago
change the device name to your network interface that is connected to the network you most likely do not have enp5s0
Tibix
TibixOP2w ago
I do tho
Tibix
TibixOP2w ago
No description
HikariKnight
HikariKnight2w ago
ah ok then just start the vm
Tibix
TibixOP2w ago
:wolfsob:
No description
Tibix
TibixOP2w ago
HOWWWWWWW
HikariKnight
HikariKnight2w ago
ok i have no idea why it wont work for you try the device model rtl8139
Tibix
TibixOP2w ago
I'm more than willing to do debugging with anyone willing to get this working
HikariKnight
HikariKnight2w ago
its a virtual realtek card
Tibix
TibixOP2w ago
I cannot select rtl8139 only options are
HikariKnight
HikariKnight2w ago
type it in
Tibix
TibixOP2w ago
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
HikariKnight
HikariKnight2w ago
then i have no idea 🤔
Tibix
TibixOP2w ago
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
HikariKnight
HikariKnight2w ago
something is severely wrong though since that should work ootb
Tibix
TibixOP2w ago
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
HikariKnight
HikariKnight2w ago
if i were to guess the dhcp doesnt work properly sudo virsh net-edit default should look like this, minus the uuid and mac
<network>
<name>default</name>
<uuid>ec4479c5-b12a-433f-bf88-8637ca25a985</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:ab:78:ca'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>
<network>
<name>default</name>
<uuid>ec4479c5-b12a-433f-bf88-8637ca25a985</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:ab:78:ca'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>
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
Tibix
TibixOP2w ago
No description
Tibix
TibixOP2w ago
yep no dhcp leases happen
No description
HikariKnight
HikariKnight2w ago
which qemu session are you using? system or user session?
Tibix
TibixOP2w ago
how do I check that?
HikariKnight
HikariKnight2w ago
check the top of the VM list in virt-manager
HikariKnight
HikariKnight2w ago
No description
Tibix
TibixOP2w ago
No description
HikariKnight
HikariKnight2w ago
No description
HikariKnight
HikariKnight2w ago
system session
Tibix
TibixOP2w ago
should I be using the other one?
HikariKnight
HikariKnight2w ago
ok i genuinely have no idea why it doesnt work
Tibix
TibixOP2w ago
:wolfsob: okay plan B
HikariKnight
HikariKnight2w ago
no youre on system which is the correct one
Tibix
TibixOP2w ago
can we vmware is it in fedora repos
HikariKnight
HikariKnight2w ago
vmware uses kernel modules we cant ship
Tibix
TibixOP2w ago
:DogeSobGif:
HikariKnight
HikariKnight2w ago
just out of curiosity though is this issue present with a linux iso 🤔
Tibix
TibixOP2w ago
uhh haven't tried virtualization with an iso
HikariKnight
HikariKnight2w ago
i would assume yes
Tibix
TibixOP2w ago
or you mean do you mean linux iso as a virtual machine or virt manager running from a live iso?
HikariKnight
HikariKnight2w ago
i mean like boot lets say pop os iso and just see if it connects
Tibix
TibixOP2w ago
yeah sure lemme try pop
HikariKnight
HikariKnight2w ago
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
Tibix
TibixOP2w ago
in the xml? sure just lemme know which prop to add
Tibix
TibixOP2w ago
current version is 22 something
No description
Tibix
TibixOP2w ago
last one here is 20.10 is it fine?
HikariKnight
HikariKnight2w ago
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
Tibix
TibixOP2w ago
No description
Tibix
TibixOP2w ago
lol
Tibix
TibixOP2w ago
No description
Tibix
TibixOP2w ago
thats insane man
Tibix
TibixOP2w ago
No description
Tibix
TibixOP2w ago
time to try windows 10?
HikariKnight
HikariKnight2w ago
huh interesting well then @Tibix what language iso is it you download? guess i need to try that one now :clueless:
HikariKnight
HikariKnight2w ago
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
Tibix
TibixOP2w ago
Same page as you sent here, language is Hungarian (hu-hu)
HikariKnight
HikariKnight2w ago
ok let me download and try that one this is getting weirder and weirder
Tibix
TibixOP2w ago
this is a rabbithole :OMEGALUL:
Tibix
TibixOP2w ago
THIS IS A RABBITHOLE
No description
Tibix
TibixOP2w ago
okay, english it is
HikariKnight
HikariKnight2w ago
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
Tibix
TibixOP2w ago
I should try an english ISO to see
HikariKnight
HikariKnight2w ago
well linux isos also use the virtio driver since they have it baked in
Tibix
TibixOP2w ago
I will be extremely weirded out if en-us also dies
HikariKnight
HikariKnight2w ago
worst case you install and just download the virtio drivers iso and install that in the vm 🤷
Tibix
TibixOP2w ago
wait holy shit you might be onto something okay can you send me the virtio iso
HikariKnight
HikariKnight2w ago
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
Tibix
TibixOP2w ago
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
Tibix
TibixOP2w ago
No description
Tibix
TibixOP2w ago
I assume this is how youmeant it
Tibix
TibixOP2w ago
seems like network is still dead
No description
Tibix
TibixOP2w ago
okay, for now I will try an english iso
HikariKnight
HikariKnight2w ago
im downloading the hungarian one just to sanity test :clueless: did you reboot?
Tibix
TibixOP2w ago
yup yup
HikariKnight
HikariKnight2w ago
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)
Tibix
TibixOP2w ago
I'll let you know as soon as I install the english iso cause I deleted the current vm
Tibix
TibixOP2w ago
I got it from here
HikariKnight
HikariKnight2w ago
yep thats the link
iMightBeSpyduck
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...
HikariKnight
HikariKnight2w ago
oh my download finished let me go be hungarian for a few mins 😄
iMightBeSpyduck
Hungarian and German ISO are broken with that driver
Tibix
TibixOP2w ago
AHAHAHAHAHAHAHA Dude my luck is absolutely insane 10/10
HikariKnight
HikariKnight2w ago
oh thats funny, maybe it also affects the intel e1000 driver too
Tibix
TibixOP2w ago
I am never downloading a hungarian thing ever again
HikariKnight
HikariKnight2w ago
guess i have another reason to keep running everything on my pc in english display language 🤣
Tibix
TibixOP2w ago
I hope this will be fine lmao
No description
HikariKnight
HikariKnight2w ago
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)
Tibix
TibixOP2w ago
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
HikariKnight
HikariKnight2w ago
im going to assume this is norwegian keyboard layout :clueless: why? because it looks like "norveg"
No description
Tibix
TibixOP2w ago
norwegian is indeed norvég
HikariKnight
HikariKnight2w ago
microsoft forgot to translate their installer fully 🤣
No description
Tibix
TibixOP2w ago
:OMEGALUL: :OMEGALUL: production ready os
HikariKnight
HikariKnight2w ago
imagine not knowing any english and not understanding that checkbox 😄
Tibix
TibixOP2w ago
I imagined that untranslated checkbox with peak hungarian english accent
HikariKnight
HikariKnight2w ago
haha
Tibix
TibixOP2w ago
btw I love in windows install how you specify your layout
Tibix
TibixOP2w ago
then
No description
Tibix
TibixOP2w ago
you specify it again
HikariKnight
HikariKnight2w ago
yep layout for installing layout for installed macos does the same
iMightBeSpyduck
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...
Tibix
TibixOP2w ago
<insert a lot of different swear words here>
No description
HikariKnight
HikariKnight2w ago
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
Tibix
TibixOP2w ago
I do not have the courage required :OMEGALUL:
Niklas ⚡
Niklas ⚡2w ago
the hungarian ISO is broken?
Tibix
TibixOP2w ago
yes all hungarian isos windows 10, 11
Niklas ⚡
Niklas ⚡2w ago
wtfffff lmfao
HikariKnight
HikariKnight2w ago
also affects german iso
Niklas ⚡
Niklas ⚡2w ago
What is microsoft doing 😭 i never install german Windows unless i have to, i live in english operating systems :clueless:
HikariKnight
HikariKnight2w ago
same! i never install norwegian language unless forced upon me and yeah
Tibix
TibixOP2w ago
No description
HikariKnight
HikariKnight2w ago
hungarian iso, no ip with e1000 absolutely wild
Tibix
TibixOP2w ago
I never install localization either, this was the only exception lmao
HikariKnight
HikariKnight2w ago
im still laughing irl
Tibix
TibixOP2w ago
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
HikariKnight
HikariKnight2w ago
i was joking about the whole "i wonder if the hungarian iso just doesnt have the driver"
Tibix
TibixOP2w ago
I was like there's no way and that turned out to be it exactly
HikariKnight
HikariKnight2w ago
not here for the money, but thanks 🙂 i dont have any crypto wallet anyway
Tibix
TibixOP2w ago
no worries, I really appreciate your help though so if I can make it up to you in any way lmk
iMightBeSpyduck
to be honest I did nothing, I just came here while you already had it fixed
Tibix
TibixOP2w ago
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..
HikariKnight
HikariKnight2w ago
i never had an arch phase :clueless:
Niklas ⚡
Niklas ⚡2w ago
yeah started out with arch as well
Tibix
TibixOP2w ago
thank yourself for this decision
HikariKnight
HikariKnight2w ago
went ubuntu --> pop --> ublue over the course of 17 years or something
Tibix
TibixOP2w ago
(some short experiments with random distros) ---> manjaro ---> endeavour ---> ublue some friends did suse but roughly followed the same pattern
HikariKnight
HikariKnight2w ago
that ubuntu and pop install were one and the same install didnt reinstall only reinstalled my main system 2 times
Niklas ⚡
Niklas ⚡2w ago
my linux journey is all over the place but nothing stuck until ublue before it i always went back to windows
HikariKnight
HikariKnight2w ago
oh yeah i did play around with lots of other distros on my laptop
Tibix
TibixOP2w ago
a good friend convinced me to try ublue, so it's thanks to him I'm here
HikariKnight
HikariKnight2w ago
@Niklas ⚡ i lived in solaris for 1 month on my macbook
Niklas ⚡
Niklas ⚡2w ago
😭 lol I now mostly live in macOS and Linux
HikariKnight
HikariKnight2w ago
i just noticed something funnily fitting in the hungarian OOTB window
HikariKnight
HikariKnight2w ago
No description
HikariKnight
HikariKnight2w ago
Igen looks like Igjen which means "again" in norwegian oh well time to nuke this vm
Tibix
TibixOP2w ago
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?
HikariKnight
HikariKnight2w ago
sorry what?
Niklas ⚡
Niklas ⚡2w ago
Yeah I have two laptops i dont use a desktop much anymore
Tibix
TibixOP2w ago
it's a book I like a lot title happens to be norwegian wood
HikariKnight
HikariKnight2w ago
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
Tibix
TibixOP2w ago
adhd here, these days it's very hard to sit down and read a book unless it really interests me
HikariKnight
HikariKnight2w ago
yep know that too well
Tibix
TibixOP2w ago
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?
HikariKnight
HikariKnight2w ago
No description
HikariKnight
HikariKnight2w ago
same energy
Tibix
TibixOP2w ago
^^^ 100% this
Vladimir Hodakov
henlo ❤️

Did you find this page helpful?