LoginSignup
0
1

More than 5 years have passed since last update.

lubuntu17.10で/etc/network/interfacesを使う

Posted at

今回はlubuntu17.10でvirt-managerを使ってkvmを動かしたかった。
bridge設定をするため使い慣れた /etc/network/interfaces を使いたかった。

apt install -y \
 ssh virt-manager fcitx-mozc xfce4-screenshooter

ネットワーク設定

/etc/network/interfacesを利用するには ifenslave パッケージが必要。

apt install -y ifenslave
/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

allow-hotplug enp0s31f6
iface enp0s31f6 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.100.54
    netmask 255.255.255.0
    gateway 192.168.100.1
    bridge_ports enp0s31f6
    bridge_stp off
    bridge_fd 0
NetworkManagerの無効化
systemctl disable network-manager
  • NetworkManagerを使わないため、systemd-resolved でDNS設定が必要。
/etc/systemd/resolved.conf
[Resolve]
DNS=8.8.8.8
FallbackDNS=8.8.4.4
Domains=local
reboot

KVMでqedフォーマットを使うメモ

cd /var/lib/libvirt/images/
qemu-img create -f qed disk-1.qed 12G

スクリーンショット_2017-10-13_10-58-58.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1