Author Topic: QEMU Help  (Read 276 times)

Mop

  • Hero Member
  • *****
  • Posts: 661
  • I POST CP
    • View Profile
QEMU Help
« on: November 22, 2011, 03:48:04 PM »
Hey all,

So I'm trying to set up a Centos 6.0 VM inside of QEMU. My qemu args tre the following:

qemu  -m 512 -net nic,macaddr=52:54:00:AE:57:7D -net user,net=72.0.0.0/8,hostfwd=tcp::2222-:2222 -vnc :1 -vga std  -hda /Users/dave/Desktop/QVM/CentOS6.img

Everything is working except networking. The VM recognizes that is has the nic eth0 and even gets assigned the IP 72.0.2.15. But, there's no DNS, nor can I ping out to IPs like 8.8.8.8. If I manually set the DNS's address using dns=72.0.2.3 in the -net user string, I still can't ping that local address or external ones.

QEMU's docs aren't that helpful. Any ideas?

Mop

  • Hero Member
  • *****
  • Posts: 661
  • I POST CP
    • View Profile
Re: QEMU Help
« Reply #1 on: November 22, 2011, 04:19:39 PM »
Oh god how did this get here I am not a clever man.

Please move this to General kthx

Pinako

  • Hero Member
  • *****
  • Posts: 1263
    • View Profile
    • inportb
Re: QEMU Help
« Reply #2 on: November 22, 2011, 07:43:06 PM »
Have you enabled net.ipv4.ip_forward?

Mop

  • Hero Member
  • *****
  • Posts: 661
  • I POST CP
    • View Profile
Re: QEMU Help
« Reply #3 on: November 23, 2011, 03:56:23 AM »
It's on an OSX host so I have NO idea how to / if it is.

However, I had a Centos 6 guest earlier and networking worked perfectly fine. So I think we can assume it is enabled.