Похожие чаты

Hey, how do I make a virtual interface name predictable

in libvirt usina QEMU/KVM?
The thing is that I created a bridge interface on the host and I connect my VMs to this bridge.
When it starts I have a vnet0 interface, when I restart it it becames vnet1 and so on

5 ответов

17 просмотров

Simple hack: grep output of ip -o link and take everything that starts with vnet and not yet connected to the bridge.

Create a bridge yourself and point the VMs to that

Ender
Simple hack: grep output of ip -o link and take ev...

Ip can format it output as JSON. Tools like jq can then used to extract the values by key.

Sebastian Dicke
Ip can format it output as JSON. Tools like jq can...

Thank you!!! Less dirty hacks in my scripts I'll have :)

Martin Rys
Create a bridge yourself and point the VMs to that

That's what I did, I have auto br0 iface br0 inet manual bridge_ports eth0 bridge_waitport 0 bridge_fd 0 in my /etc/network/interfaces and my VM points to it with this config generated by virt-install <interface type='bridge'> <mac address='redacted'/> <source bridge='br0'/> <model type='e1000'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </interface>

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта