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

Setting up a networked, multi-guest virtualized environment using QEMU 2.0.0, help?

$
0
0

xpost from /r/sysadmin

Hi all, I require some assistance and figure that this is likely the most effective place to ask this question. I cannot find any (effective, thus far) resources or straight out tutorials on how to accomplish this task as someone who is not experienced in this area.

The goal is to create a multi-guest environment that has networking capabilities wherein each guest may communicate with each other, as well as the external internet. I have tried many different resources, unfortunately all resulting in the guests being unable to reach the internet.

Current setup:

  • Ubuntu Host
  • This host is hosted in a datacenter that I have limited privileges in controlling.
  • 1 internet interface, eth0.
  • Arch Linux Guest(s)
  • Full control since they are on my host.

I have largely been following the Arch Linux QEMU instructions regarding setting up the networking environment. Using the bridge helper outright does not work.

qemu-system-x86_64 -name "$vm_name" -cdrom arch.iso -drive file=$disk_image,format=qcow2 -monitor stdio -vnc :15001 -m 800 -net nic,macaddr=$(python3 qemu-mac-hasher.py "$vm_name") -net bridge,br=br0 

I attempted changing the qemu-ifup script to the one found in the QEMU Wiki Helper Networking page, but that is also unsuccessful in allowing the hosts to reach the internet.

qemu-system-x86_64 -name "$vm_name" -cdrom arch.iso -boot order=d -drive file=$disk_image,format=qcow2 -monitor stdio -vnc :15001 -m 800 -net nic,macaddr=$(python3 qemu-mac-hasher.py "$vm_name") -net tap 

I am fairly baffled, does anyone have some step-by-step instructions on how this could be accomplished?

submitted by /u/mastarem
[link] [comments]

Viewing all articles
Browse latest Browse all 17763

Trending Articles