* [Qemu-devel] VM with two interfaces
@ 2010-10-21 16:23 Nirmal Guhan
2010-10-21 22:49 ` [Qemu-devel] " Nirmal Guhan
0 siblings, 1 reply; 3+ messages in thread
From: Nirmal Guhan @ 2010-10-21 16:23 UTC (permalink / raw)
To: kvm, qemu-devel
Hi,
Am trying to create a VM using qemu-kvm with two interfaces(fedora12
is the host and vm) and running into an issue. Given below is the
command :
qemu-kvm -net nic,macaddr=$macaddress,model=pcnet -net
tap,script=/etc/qemu-ifup -net nic,model=pcnet -net
tap,script=/etc/qemu-ifup -m 1024 -hda ./vdisk.img -kernel
./bzImage-1019 -append "ip=x.y.z.w:a.b.c.d:p.q.r.s:a.b.c.d
ip=x.y.z.u:a.b.c.d:p.q.r.s:a.b.c.d root=/dev/nfs rw
nfsroot=x.y.z.v:/blahblahblah"
On boot, both eth0 and eth1 come up but the vm tries to send dhcp and
rarp requests instead of using the command line IP addresses. DHCP
would fail in my case.
With just one interface, dhcp is not attempted and nfs mount of root works fine.
Any clue on what could be wrong here?
Thanks,
Nirmal
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: VM with two interfaces
2010-10-21 16:23 [Qemu-devel] VM with two interfaces Nirmal Guhan
@ 2010-10-21 22:49 ` Nirmal Guhan
2010-10-22 8:05 ` Stefan Hajnoczi
0 siblings, 1 reply; 3+ messages in thread
From: Nirmal Guhan @ 2010-10-21 22:49 UTC (permalink / raw)
To: kvm, qemu-devel
On Thu, Oct 21, 2010 at 9:23 AM, Nirmal Guhan <vavatutu@gmail.com> wrote:
> Hi,
>
> Am trying to create a VM using qemu-kvm with two interfaces(fedora12
> is the host and vm) and running into an issue. Given below is the
> command :
>
> qemu-kvm -net nic,macaddr=$macaddress,model=pcnet -net
> tap,script=/etc/qemu-ifup -net nic,model=pcnet -net
> tap,script=/etc/qemu-ifup -m 1024 -hda ./vdisk.img -kernel
> ./bzImage-1019 -append "ip=x.y.z.w:a.b.c.d:p.q.r.s:a.b.c.d
> ip=x.y.z.u:a.b.c.d:p.q.r.s:a.b.c.d root=/dev/nfs rw
> nfsroot=x.y.z.v:/blahblahblah"
>
> On boot, both eth0 and eth1 come up but the vm tries to send dhcp and
> rarp requests instead of using the command line IP addresses. DHCP
> would fail in my case.
>
> With just one interface, dhcp is not attempted and nfs mount of root works fine.
>
> Any clue on what could be wrong here?
>
> Thanks,
> Nirmal
>
Can someone help please? Hard pressed on time... sorry
-Nirmal
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: VM with two interfaces
2010-10-21 22:49 ` [Qemu-devel] " Nirmal Guhan
@ 2010-10-22 8:05 ` Stefan Hajnoczi
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2010-10-22 8:05 UTC (permalink / raw)
To: Nirmal Guhan; +Cc: qemu-devel, kvm
On Thu, Oct 21, 2010 at 11:49 PM, Nirmal Guhan <vavatutu@gmail.com> wrote:
> On Thu, Oct 21, 2010 at 9:23 AM, Nirmal Guhan <vavatutu@gmail.com> wrote:
>> Hi,
>>
>> Am trying to create a VM using qemu-kvm with two interfaces(fedora12
>> is the host and vm) and running into an issue. Given below is the
>> command :
>>
>> qemu-kvm -net nic,macaddr=$macaddress,model=pcnet -net
>> tap,script=/etc/qemu-ifup -net nic,model=pcnet -net
>> tap,script=/etc/qemu-ifup -m 1024 -hda ./vdisk.img -kernel
>> ./bzImage-1019 -append "ip=x.y.z.w:a.b.c.d:p.q.r.s:a.b.c.d
>> ip=x.y.z.u:a.b.c.d:p.q.r.s:a.b.c.d root=/dev/nfs rw
>> nfsroot=x.y.z.v:/blahblahblah"
>>
>> On boot, both eth0 and eth1 come up but the vm tries to send dhcp and
>> rarp requests instead of using the command line IP addresses. DHCP
>> would fail in my case.
>>
>> With just one interface, dhcp is not attempted and nfs mount of root works fine.
>>
>> Any clue on what could be wrong here?
>>
>> Thanks,
>> Nirmal
>>
> Can someone help please? Hard pressed on time... sorry
Try the #qemu or #kvm IRC channels on chat.freenode.net. Often people
will respond and debug interactively with you there.
Your problem does not seem QEMU/KVM related. You'll need to debug the
guest's boot process and network configuration just like a physical
machine. In fact, I bet with an identical setup on a physical machine
you'd see the same problem.
Double-check the kernel parameters documentation.
See if you have a network configuration in the initramfs or the root
filesystem that would cause it to DHCP and how to pull the
pre-configured settings from the kernel.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-22 8:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 16:23 [Qemu-devel] VM with two interfaces Nirmal Guhan
2010-10-21 22:49 ` [Qemu-devel] " Nirmal Guhan
2010-10-22 8:05 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).