July 26, 20169 yr I am installing CentOS 6.8 minimal (no GUI) and even after configuring an eth0 as wired in the CentOS install, and testing ifconfig via CLI I get only local loopback "lo" with a 127.0.0.1 ip address. The VM is set up with br0 as the network bridge. Eth0 is not created. What kind of user error am I guilty of?
July 26, 20169 yr Theoretically linux OS's include virtio drivers for network, but you could try changing the network model type in the XML from virtio to rtl8139.
July 26, 20169 yr Author Theoretically linux OS's include virtio drivers for network, but you could try changing the network model type in the XML from virtio to rtl8139. Is network found in the "bridge" section? I tried changing that but it didn't help... <domain type='kvm'> <name>CentOS</name> <uuid>c3f1456d-c3da-a5f1-0769-4fbd41608d26</uuid> <metadata> <vmtemplate xmlns="unraid" name="CentOS" icon="centos.png" os="centos"/> </metadata> <memory unit='KiB'>4194304</memory> <currentMemory unit='KiB'>4194304</currentMemory> <memoryBacking> <nosharepages/> </memoryBacking> <vcpu placement='static'>1</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> </cputune> <os> <type arch='x86_64' machine='pc-q35-2.5'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/c3f1456d-c3da-a5f1-0769-4fbd41608d26_VARS-pure-efi.fd</nvram> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-passthrough'> <topology sockets='1' cores='1' threads='1'/> </cpu> <clock offset='utc'> <timer name='rtc' tickpolicy='catchup'/> <timer name='pit' tickpolicy='delay'/> <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/CentOS/vdisk1.img'/> <target dev='hdc' bus='virtio'/> <boot order='1'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='mnt/cache/domains/CentOS-6.8-x86_64-minimal/CentOS-6.8-x86_64-minimal.iso'/> <target dev='hda' bus='sata'/> <readonly/> <boot order='2'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <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'> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <controller type='sata' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> </controller> <controller type='pci' index='0' model='pcie-root'/> <controller type='pci' index='1' model='dmi-to-pci-bridge'> <model name='i82801b11-bridge'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/> </controller> <controller type='pci' index='2' model='pci-bridge'> <model name='pci-bridge'/> <target chassisNr='2'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/> </controller> <controller type='virtio-serial' index='0'> <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/> </controller> <filesystem type='mount' accessmode='passthrough'> <source dir='/mnt/disk2/Backups/centVMdata/'/> <target dir='vmdata'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </filesystem> <interface type='bridge'> <mac address='52:54:00:ba:f6:53'/> <source bridge='virbr0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <channel type='unix'> <source mode='connect'/> <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> </video> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/> </memballoon> </devices> </domain>
July 26, 20169 yr Theoretically linux OS's include virtio drivers for network, but you could try changing the network model type in the XML from virtio to rtl8139. Is network found in the "bridge" section? I tried changing that but it didn't help... <interface type='bridge'> <mac address='52:54:00:ba:f6:53'/> <source bridge='virbr0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/> </interface> Yeah, did you modify it like so? <interface type='bridge'> <mac address='52:54:00:ba:f6:53'/> <source bridge='virbr0'/> <model type='rtl8139'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/> </interface> Remember, if you change something in the XML, you can't change anything in the gui or it will revert the XML. This is intentional behaviour, FWIW.
July 27, 20169 yr Author Theoretically linux OS's include virtio drivers for network, but you could try changing the network model type in the XML from virtio to rtl8139. Is network found in the "bridge" section? I tried changing that but it didn't help... <interface type='bridge'> <mac address='52:54:00:ba:f6:53'/> <source bridge='virbr0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/> </interface> Yeah, did you modify it like so? <interface type='bridge'> <mac address='52:54:00:ba:f6:53'/> <source bridge='virbr0'/> <model type='rtl8139'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/> </interface> Remember, if you change something in the XML, you can't change anything in the gui or it will revert the XML. This is intentional behaviour, FWIW. Yes, here it is. But no "ifconfig" joy yet.... ?? I see that it is set to vibr0 which was one of my earlier attempts to fix it. Maybe go back to br0? <interface type='bridge'> <mac address='52:54:00:ba:f6:53'/> <source bridge='virbr0'/> <model type='rtl8139'/>
Archived
This topic is now archived and is closed to further replies.