Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17851

CentOS VM refuses to use bridged connection

$
0
0

Hey. Recently started learning few things and the first thing I wanted to do is learn how to use KVM without GUI. Here's what I've done:

  1. I created a bridged connection called "br0" on my host machine (here's my /etc/network/interfaces config: http://pastebin.com/uh7Cn062)
  2. I've installed CentOS using the following command: virt-install --name=spacewalk --arch=x86_64 --vcpus=1 --ram=2048 --os-type=linux --os-variant rhel7 --hvm --connect=qemu:///system --network bridge:br0 --cdrom=/home/strelok/Downloads/CentOS-7-x86_64-DVD-1503-01.iso --disk path=/mnt/virtual_machines/spacewalk_serv.img,size=20 --accelerate --vnc

But as soon as the installation started, I've noticed the VM couldnt connect to the Internet. What was surprising is that it was trying to use an interface called eth0 (but maybe it's sorta KVM's magic thing since it was described as a virtual connection). And now I'm kinda confused since I cant really get it to work, when I'm trying to boot up the machine (with qemu-system-x86_64 -hda /mnt/virtual_machines/spacewalk_serv.img -netdev tap,id=br0) I'm greeted with following message: Warning: netdev br0 has no peer.

I've tried using the http://www.linux-kvm.org/page/Networking page but still no success. Any ideas?

submitted by postandforget95
[link][3 comments]

Viewing all articles
Browse latest Browse all 17851