Quantcast
Channel: ubuntu – CrashMAG.net
Viewing all articles
Browse latest Browse all 3

Linux KVM host to guest connectivity

$
0
0

If you’re experience a lack of connectivity between your KVM host and your guests please see below. The instructions below will only directly work on Debian and/or Ubuntu. They will also require your guests to use macvlan or macvtap. This will also work if you’re using LXC.

Add the following to your

/etc/network/interfaces

configuration file. You need to adjust the network portion of the example below according to your own setup.

auto macvlan0
iface macvlan0 inet dhcp
    # as eth0 and macvlan0 are on the same LAN, we must drop default route and LAN route
    pre-up route del default
    pre-up route del -net 192.168.0.0 netmask 255.255.255.0
    pre-up ip link add link eth0 name macvlan0 type macvlan mode bridge

Now, either reboot or run

ifup macvlan0

as root.

// CrashMAG


Viewing all articles
Browse latest Browse all 3

Trending Articles