Southpaw32 Posted January 10, 2023 Share Posted January 10, 2023 Unraid newbie, and setting up my first VM. Everything went smooth until I realized there is no ethernet apdater. No unknown devices in Device Manager. There are no mentions of networking in the Win 10 VM setting either. I have deleted and recreated the VM four times, and still having the same issues. Any ideas? Thanks! Quote Link to comment
JorgeB Posted January 10, 2023 Share Posted January 10, 2023 Please post a screenshot of the VM template. Quote Link to comment
Southpaw32 Posted January 10, 2023 Author Share Posted January 10, 2023 Do you mean the XML? (sorry, I see nothing labeled "template") <?xml version='1.0' encoding='UTF-8'?> <domain type='kvm' id='1'> <name>Windows 10</name> <uuid>f17af433-dcb2-6466-3aa7-effe2a298f57</uuid> <metadata> <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/> </metadata> <memory unit='KiB'>17301504</memory> <currentMemory unit='KiB'>4718592</currentMemory> <memoryBacking> <nosharepages/> </memoryBacking> <vcpu placement='static'>8</vcpu> <cputune> <vcpupin vcpu='0' cpuset='10'/> <vcpupin vcpu='1' cpuset='42'/> <vcpupin vcpu='2' cpuset='11'/> <vcpupin vcpu='3' cpuset='43'/> <vcpupin vcpu='4' cpuset='12'/> <vcpupin vcpu='5' cpuset='44'/> <vcpupin vcpu='6' cpuset='13'/> <vcpupin vcpu='7' cpuset='45'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-7.1'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/f17af433-dcb2-6466-3aa7-effe2a298f57_VARS-pure-efi.fd</nvram> </os> <features> <acpi/> <apic/> <hyperv mode='custom'> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> <vendor_id state='on' value='none'/> </hyperv> </features> <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='4' threads='2'/> <cache mode='passthrough'/> </cpu> <clock offset='localtime'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/local/sbin/qemu</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source file='/mnt/user/domains/Windows 10/vdisk1.img' index='3'/> <backingStore/> <target dev='hdc' bus='virtio'/> <boot order='1'/> <alias name='virtio-disk2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/isos/SW_DVD9_Win_Pro_10_22H2.1_64BIT_English_Pro_Ent_EDU_N_MLF_X23-31722.ISO' index='2'/> <backingStore/> <target dev='hda' bus='ide'/> <readonly/> <boot order='2'/> <alias name='ide0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/isos/virtio-win-0.1.229-1.iso' index='1'/> <backingStore/> <target dev='hdb' bus='ide'/> <readonly/> <alias name='ide0-0-1'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <alias name='usb'/> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <alias name='usb'/> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <alias name='usb'/> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <controller type='ide' index='0'> <alias name='ide'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </controller> <serial type='pty'> <source path='/dev/pts/0'/> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/0'> <source path='/dev/pts/0'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-1-Windows 10/org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <alias name='input0'/> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'> <alias name='input1'/> </input> <input type='keyboard' bus='ps2'> <alias name='input2'/> </input> <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0' keymap='en-us'> <listen type='address' address='0.0.0.0'/> </graphics> <audio id='1' type='none'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+0:+100</label> <imagelabel>+0:+100</imagelabel> </seclabel> </domain> Quote Link to comment
JorgeB Posted January 10, 2023 Share Posted January 10, 2023 Sorry, I meant the other view, form view, specifically this section: Quote Link to comment
Southpaw32 Posted January 10, 2023 Author Share Posted January 10, 2023 Here you go! There is no section for the MAC or any networking, despite the fact I have set them each time when I did my installs. This has happened every time I have re-created this VM. Quote Link to comment
JorgeB Posted January 10, 2023 Share Posted January 10, 2023 17 minutes ago, Southpaw32 said: There is no section for the MAC or any networking Yep, that would be the problem, I've seen that before but not sure what causes it or how to diagnose, any idea @SimonF 1 Quote Link to comment
SimonF Posted January 10, 2023 Share Posted January 10, 2023 1 hour ago, JorgeB said: Yep, that would be the problem, I've seen that before but not sure what causes it or how to diagnose, any idea @SimonF Not see that before. Try adding this but change XX in mac <interface type='bridge'> <mac address='xx:xx:xx:xx:xx:xx/> <source bridge='br0'/> <model type='virtio-net'/> </interface> 2 Quote Link to comment
Southpaw32 Posted January 10, 2023 Author Share Posted January 10, 2023 (edited) Where do I insert that into the XML? Just add it to the end? I tried to add it and got this error: VM creation error (domain_definition):126: Unescaped '<' not allowed in attributes values <source bridge='br0'/> ------^ Edited January 10, 2023 by Southpaw32 Quote Link to comment
SimonF Posted January 10, 2023 Share Posted January 10, 2023 41 minutes ago, Southpaw32 said: Where do I insert that into the XML? Just add it to the end? I tried to add it and got this error: VM creation error (domain_definition):126: Unescaped '<' not allowed in attributes values <source bridge='br0'/> ------^ Needs to be in the devices section so before this section. </devices> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+0:+100</label> <imagelabel>+0:+100</imagelabel> </seclabel> </domain> 1 Quote Link to comment
Southpaw32 Posted January 10, 2023 Author Share Posted January 10, 2023 Thanks! that's what I was trying, and I keep getting the following error: Quote Link to comment
Solution SimonF Posted January 10, 2023 Solution Share Posted January 10, 2023 5 minutes ago, Southpaw32 said: Thanks! that's what I was trying, and I keep getting the following error: Sorry missing ' on this line. but you also need to replace the XX. <mac address='52:54:00:91:9c:aa'/> 1 1 Quote Link to comment
Southpaw32 Posted January 10, 2023 Author Share Posted January 10, 2023 That fixed it! <interface type='bridge'> <mac address='xx:xx:xx:xx:xx:xx'/> <source bridge='br0'/> <model type='virtio-net'/> </interface> Sorry, I should have caught that! I did have a MAC in there on a previous attempt. Did a second copy/paste to make sure I didn't mess something up, and forgot to put in the MAC! Thank you for your time and help!!! 1 1 Quote Link to comment
LFFPicard Posted March 30, 2023 Share Posted March 30, 2023 (edited) Sorry to necro. I have the same issue. Stupid question, how would I find the MAC address? I done a bit of googling and it appears dockers will have different MAC addresses, but how do I find one for a VM? I loaded the Windows 10 VM but as it can not find a network adapter ipconfig /all wont give a MAC address. EDIT: I got it working and the mac address is the same as my server. But now it is just stuck identifying. Edited March 30, 2023 by LFFPicard Quote Link to comment
ghost82 Posted April 7, 2023 Share Posted April 7, 2023 (edited) On 3/30/2023 at 9:29 PM, LFFPicard said: how would I find the MAC address? you don't have to "find" anything to set a target mac address in a virtual machine. A mac address is simply 6 octects, so you can randomly generate one. However, in special cases, you may want to emulate a mac address belonging to a certain brand: of that 6 octects the first 3 identify the manufacturer. For example in my mac os vm, I prefer to set the mac of the emulated network device to one belonging to apple: c8:2a:14:xx:xx:xx where c8:2a:14 identify 'Apple' and the last 3 octects are randomly generated. There are public databases to identify mac address, like: https://macaddress.io/ It's not a good idea to have 2 identical mac addresses in the same network, generate a random one and set it in the vm. If you are lazy you can use online generators: https://miniwebtool.com/mac-address-generator/ Edited April 7, 2023 by ghost82 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.