Похожие чаты

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 ответов

9 просмотров

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>

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

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

Комрады, хотел уточнить. Проперть в OnDestroy юнита-хозяина по-прежнему доступна? И еще уточнение: finalization юнита наступает раньше или позже OnDestroy?
Ed Doc
38
Здравствуйте! Есть вопросы по ПК: 1.1. Безопасно ли запускать программы, которым я не доверяю, в виртуальной машине под KVM+qemu? (x86_64) 1.2. То же самое при использовании ...
Pavel
5
Проблема с Windows scripting control Множество объектов получают iDispatch обертки и отдаются в скрипты. При этом скрипты могут эти обертки держать живыми очень долго, наприм...
Arioch The
16
Hi everyone! I have a two-folded message to share today. First: updates and news, as we are being asked for those. We still want to go like we did the last 6 years: we w...
Marten | Unibright.io
31
мужчины добрый вечер,подскажите пожалуйста зеленому какую базу и матчасть нужно знать чтобы хотя бы на младшего сис.админа идти?
Duhi
16
Я тут пытаюсь переработать архитектуру подсистемы памяти ядра во что-то осмысленное. Есть pmm, который создает набор range’ей(пока что только для ядра, потом для юзерспейса), ...
Evg Resh
9
Скажите, можно ли как-то "переместить" динамический массив из одной переменной в другую? Скажем, переместить из TList<> в TArray<>. Именно переместить, а не скопировать. Если ...
Eugene Krasnikov (ᴊɪɴ x)
37
У меня вопрос, а какой уровень оптимизации ставить при сборке на i5 4 ядра 16G ddr3 ОЗУ и видюха Geforce GTX 970?
Sir Jiga
18
What is the best and safest exchange to trade XMR ? with no kyc ...obviously 👍
cabbageflaps
13
Guys, what’s the most expensive part of your budget for your business/startup/app/website?
Ice Kream
18
Карта сайта