ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] ALT PVE и pciid сетевых карт
@ 2024-06-04  4:06 alexei
  2024-06-04  8:41 ` Alexey V. Vissarionov
  2024-06-04 11:18 ` Leonid Krivoshein
  0 siblings, 2 replies; 3+ messages in thread
From: alexei @ 2024-06-04  4:06 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Добрый день!

Скажите, пожалуйста, чем вызвана смена pciid у сетевых карт внутри виртуалок PVE относительно ванильного PVE?

Пример PVE в alt p10:

# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 05)
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
00:05.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:08.0 Communication controller: Red Hat, Inc. Virtio console
00:09.0 Communication controller: Red Hat, Inc. Virtio console
>>00:13.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:1e.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:1f.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
01:01.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI


То же внутри ванильного PVE:

# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 05)
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
00:05.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:08.0 Communication controller: Red Hat, Inc. Virtio console
00:09.0 Communication controller: Red Hat, Inc. Virtio console
>>00:12.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:1e.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:1f.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
01:01.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI


Как итог, при переносе виртуалок из ванильного proxmox на альтовском pve внутри виртуалок не поднимается сеть, так как разъезжаются имена интерфейсов относительно того что было.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [devel] ALT PVE и pciid сетевых карт
  2024-06-04  4:06 [devel] ALT PVE и pciid сетевых карт alexei
@ 2024-06-04  8:41 ` Alexey V. Vissarionov
  2024-06-04 11:18 ` Leonid Krivoshein
  1 sibling, 0 replies; 3+ messages in thread
From: Alexey V. Vissarionov @ 2024-06-04  8:41 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Good ${greeting_time}!

On 2024-06-04 12:06:40 +0800, alexei@taf.ru wrote:

 > Скажите, пожалуйста, чем вызвана смена pciid у сетевых карт
 > внутри виртуалок PVE относительно ванильного PVE?
 >>> 00:13.0 Ethernet controller: Red Hat, Inc. Virtio network device
 > То же внутри ванильного PVE:
 >>> 00:12.0 Ethernet controller: Red Hat, Inc. Virtio network device

То же самое устройство в другом PCI-слоте, хоть и виртуальном.
Совершенно штатная ситуация.

 > Как итог, при переносе виртуалок из ванильного proxmox на
 > альтовском pve внутри виртуалок не поднимается сеть, так
 > как разъезжаются имена интерфейсов относительно того что
 > было.

Имя интерфейса при старте ядра - eth0, и остается таковым до
выполнения `ip link set dev eth0 name some7garbage8`, что
происходит уже в усерспейсе и, следовательно, чинить нужно в
том же усерспейсе.


-- 
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [devel] ALT PVE и pciid сетевых карт
  2024-06-04  4:06 [devel] ALT PVE и pciid сетевых карт alexei
  2024-06-04  8:41 ` Alexey V. Vissarionov
@ 2024-06-04 11:18 ` Leonid Krivoshein
  1 sibling, 0 replies; 3+ messages in thread
From: Leonid Krivoshein @ 2024-06-04 11:18 UTC (permalink / raw)
  To: devel


On 6/4/24 07:06, alexei@taf.ru wrote:
> Добрый день!
>
> Скажите, пожалуйста, чем вызвана смена pciid у сетевых карт внутри виртуалок PVE относительно ванильного PVE?

Существенная разница в исходниках, PVE != Proxmox:

https://github.com/proxmox/qemu-server/blob/master/PVE/QemuServer/PCI.pm#L139
https://git.altlinux.org/gears/p/pve-qemu-server.git?p=pve-qemu-server.git;a=blob;f=PVE/QemuServer/PCI.pm;h=eca72d7490ee96a9ff1af957d012721c9673e462;hb=155a9c6ffe9856f1e310035f495b515480a3ccb6#l127

Почему так и что с этим делать -- лучше спрашивать у маинтейнера.
IMHO, лучше не привязываться к номеру устройства на шине.


> Пример PVE в alt p10:
>
> # lspci
> 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
> 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
> 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
> 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
> 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
> 00:02.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 05)
> 00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
> 00:05.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
> 00:08.0 Communication controller: Red Hat, Inc. Virtio console
> 00:09.0 Communication controller: Red Hat, Inc. Virtio console
>>> 00:13.0 Ethernet controller: Red Hat, Inc. Virtio network device
> 00:1e.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
> 00:1f.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
> 01:01.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI
>
>
> То же внутри ванильного PVE:
>
> # lspci
> 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
> 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
> 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
> 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
> 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
> 00:02.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 05)
> 00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
> 00:05.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
> 00:08.0 Communication controller: Red Hat, Inc. Virtio console
> 00:09.0 Communication controller: Red Hat, Inc. Virtio console
>>> 00:12.0 Ethernet controller: Red Hat, Inc. Virtio network device
> 00:1e.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
> 00:1f.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
> 01:01.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI
>
>
> Как итог, при переносе виртуалок из ванильного proxmox на альтовском pve внутри виртуалок не поднимается сеть, так как разъезжаются имена интерфейсов относительно того что было.
> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel

-- 
WBR, Leonid Krivoshein.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-04 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04  4:06 [devel] ALT PVE и pciid сетевых карт alexei
2024-06-04  8:41 ` Alexey V. Vissarionov
2024-06-04 11:18 ` Leonid Krivoshein

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git