libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4

hanyandong
I run a VM on xen-4.4.0  , libvirt-1.2.9

ubuntu.xml

<domain type='xen'>
    <name>xubuntu12.xml</name>
    <memory>4131072</memory>
    <currentMemory>4131072</currentMemory>
    <vcpu>1</vcpu>
    <os>
        <type arch='x86_64' >hvm</type>
        <loader>/usr/local/lib/xen/boot/hvmloader</loader>
        <boot dev='hd'/>
    </os>
    <features>
        <pae/>
        <acpi/>
        <apic/>
    </features>
    <clock offset='localtime'/>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>destroy</on_crash>
    <devices>
        <emulator>/usr/local/lib/xen/bin/qemu-dm</emulator>
        <disk type='file'>
            <source file='/home/rip/Documents/xubuntu_12_x64.img'/>
            <target dev='hda'/>
        </disk>
        <interface type='bridge'>
            <source bridge='xenbr0'/>
        </interface>
        <input type='tablet' bus='usb'/>
        <input type='mouse' bus='ps2'/>
        <graphics type='vnc' port='70001' autoport='no' listen='0.0.0.0'/>
    </devices>
</domain>


But,  I run "ps aux | grep xen"  , I found it was qemu-system-i386 work.

/usr/local/lib/xen/bin/qemu-system-i386 -xen-domid 5 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-5,server,nowait -mon chardev=libxl-cmd,mode=control -nodefaults -name xubuntu12_x64 -vnc 127.0.0.1:0,to=99 -serial pty -device cirrus-vga -global vga.vram_size_mb=8 -boot order=dc -usb -usbdevice tablet -device rtl8139,id=nic0,netdev=net0,mac=00:16:3e:65:48:5d -netdev type=tap,id=net0,ifname=vif5.0-emu,script=no,downscript=no -machine pc,accel=xen -m 4088 -drive file=/home/rip/Documents/xubuntu_12_x64.img,if=ide,index=0,media=disk,format=raw,cache=writeback


how can I use qemu-dm with libvirt? anyone can help?


--
Best Regards,
yandong




_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4

Ian Campbell-10
On Fri, 2014-11-14 at 19:38 +0800, hanyandong wrote:
> I run a VM on xen-4.4.0  , libvirt-1.2.9
> [...]
>         <emulator>/usr/local/lib/xen/bin/qemu-dm</emulator>
[...]

By my reading since libvirt.git c5a003508f43ffcdc1f2fcf2b9fd2440f53c4bbf
[0] this is all which is needed. However this appears to have only gone
in for v1.2.10-rc1, so you probably need an upgrade. There may be other
relevant commits than the one I mention, it seems to be necessary but
perhaps not sufficient, I don't know.

Ian.

[0] http://libvirt.org/git/?p=libvirt.git;a=commit;h=c5a003508f43ffcdc1f2fcf2b9fd2440f53c4bbf



_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4

hanyandong
Thank you very much for your reply.
By the way, how many NICs can I apply to a VM?

On xen-4.4.0, Using qemu-dm, I can apply 8 NIC to a VM, but using qemu-system-i386, I can only apply 4 NICs to an VM?
is it normal?

> -----原始邮件-----
> 发件人: "Ian Campbell" <[hidden email]>
> 发送时间: 2014年11月14日 星期五
> 收件人: hanyandong <[hidden email]>
> 抄送: [hidden email], "Jim Fehlig" <[hidden email]>
> 主题: Re: [Xen-users] libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4

> On Fri, 2014-11-14 at 19:38 +0800, hanyandong wrote:
> > I run a VM on xen-4.4.0  , libvirt-1.2.9
> > [...]
> >         <emulator>/usr/local/lib/xen/bin/qemu-dm</emulator>
> [...]

> By my reading since libvirt.git c5a003508f43ffcdc1f2fcf2b9fd2440f53c4bbf
> [0] this is all which is needed. However this appears to have only gone
> in for v1.2.10-rc1, so you probably need an upgrade. There may be other
> relevant commits than the one I mention, it seems to be necessary but
> perhaps not sufficient, I don't know.

> Ian.

> [0] http://libvirt.org/git/?p=libvirt.git;a=commit;h=c5a003508f43ffcdc1f2fcf2b9fd2440f53c4bbf




--
Best Regards,
yandong





_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4

Jim Fehlig-2
In reply to this post by Ian Campbell-10
Ian Campbell wrote:

> On Fri, 2014-11-14 at 19:38 +0800, hanyandong wrote:
>  
>> I run a VM on xen-4.4.0  , libvirt-1.2.9
>> [...]
>>         <emulator>/usr/local/lib/xen/bin/qemu-dm</emulator>
>>    
> [...]
>
> By my reading since libvirt.git c5a003508f43ffcdc1f2fcf2b9fd2440f53c4bbf
> [0] this is all which is needed. However this appears to have only gone
> in for v1.2.10-rc1, so you probably need an upgrade. There may be other
> relevant commits than the one I mention, it seems to be necessary but
> perhaps not sufficient, I don't know.
>  

You'll also need

http://libvirt.org/git/?p=libvirt.git;a=commit;h=1c0bf509ef2063d877221dfc018d5be350432557

Both are included in libvirt 1.2.10.

Regards,
Jim
> Ian.
>
> [0] http://libvirt.org/git/?p=libvirt.git;a=commit;h=c5a003508f43ffcdc1f2fcf2b9fd2440f53c4bbf
>
>
>
>  

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Ian Campbell-10
In reply to this post by hanyandong
On Sat, 2014-11-15 at 10:16 +0800, hanyandong wrote:
> By the way, how many NICs can I apply to a VM?
>
> On xen-4.4.0, Using qemu-dm, I can apply 8 NIC to a VM, but using
> qemu-system-i386, I can only apply 4 NICs to an VM?
> is it normal?

I've no idea, CCing the qemu maintainers.

I'd have expected the number of PV nics to be completely independent of
the device mode, so I suppose you mean emulated NICs?

Ian.


_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Stefano Stabellini-3
On Mon, 17 Nov 2014, Ian Campbell wrote:

> On Sat, 2014-11-15 at 10:16 +0800, hanyandong wrote:
> > By the way, how many NICs can I apply to a VM?
> >
> > On xen-4.4.0, Using qemu-dm, I can apply 8 NIC to a VM, but using
> > qemu-system-i386, I can only apply 4 NICs to an VM?
> > is it normal?
>
> I've no idea, CCing the qemu maintainers.
>
> I'd have expected the number of PV nics to be completely independent of
> the device mode, so I suppose you mean emulated NICs?

I can pass 4 emulated NICs maximum, but you can easily reach 8 if you
use PV NICs instead. Just pass 'type=pv' like this:

vif=['', '', '', '', 'type=pv', 'type=pv', 'type=pv', 'type=pv']

it is going to create 4 emulated nics and 4 pv nics. The 4 emulated nics
also have 4 corresponding pv nics. The emulated nics get disconnected
soon after boot by the guest operating system (if it has pv drivers
installed, such as Linux). So overall once the boot sequence is fully
completed you'll end up with the 8 pv nics that you want.


BTW the reason for the failure seems to be that QEMU runs out of ram
(xen: failed to populate ram at 80110000, so
xc_domain_populate_physmap_exact failed) allocating roms for the rtl8139
(40000 bytes each). Maybe qemu-trad wasn't loading any roms for rtl8139.
Interestingly e1000 doesn't need any roms either, so another way around
this would be to set 'type=e1000' for all the vifs.

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Ian Campbell-10
On Mon, 2014-11-17 at 13:00 +0000, Stefano Stabellini wrote:
> BTW the reason for the failure seems to be that QEMU runs out of ram
> (xen: failed to populate ram at 80110000, so
> xc_domain_populate_physmap_exact failed) allocating roms for the rtl8139
> (40000 bytes each). Maybe qemu-trad wasn't loading any roms for rtl8139.
> Interestingly e1000 doesn't need any roms either, so another way around
> this would be to set 'type=e1000' for all the vifs.

With qemu-trad ROMs were loaded by hvmloader/ROMBIOS not via qemu. It's
possible it only did it for the first NIC, or that it shared things or
something along those lines.

Ian.


_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Ian Campbell-10
In reply to this post by Stefano Stabellini-3
On Mon, 2014-11-17 at 13:00 +0000, Stefano Stabellini wrote:

> On Mon, 17 Nov 2014, Ian Campbell wrote:
> > On Sat, 2014-11-15 at 10:16 +0800, hanyandong wrote:
> > > By the way, how many NICs can I apply to a VM?
> > >
> > > On xen-4.4.0, Using qemu-dm, I can apply 8 NIC to a VM, but using
> > > qemu-system-i386, I can only apply 4 NICs to an VM?
> > > is it normal?
> >
> > I've no idea, CCing the qemu maintainers.
> >
> > I'd have expected the number of PV nics to be completely independent of
> > the device mode, so I suppose you mean emulated NICs?
>
> I can pass 4 emulated NICs maximum, but you can easily reach 8 if you
> use PV NICs instead. Just pass 'type=pv' like this:
>
> vif=['', '', '', '', 'type=pv', 'type=pv', 'type=pv', 'type=pv']
>
> it is going to create 4 emulated nics and 4 pv nics. The 4 emulated nics
> also have 4 corresponding pv nics. The emulated nics get disconnected
> soon after boot by the guest operating system (if it has pv drivers
> installed, such as Linux). So overall once the boot sequence is fully
> completed you'll end up with the 8 pv nics that you want.

I wonder if we should do something in (lib)xl such that by default the
first 4 NICs have type LIBXL_NIC_TYPE_VIF_IOEMU (i.e. emulated+PV path)
and the rest have LIBXL_NIC_TYPE_VIF (i.e. PV only).

> BTW the reason for the failure seems to be that QEMU runs out of ram
> (xen: failed to populate ram at 80110000, so
> xc_domain_populate_physmap_exact failed) allocating roms for the rtl8139
> (40000 bytes each). Maybe qemu-trad wasn't loading any roms for rtl8139.
> Interestingly e1000 doesn't need any roms either, so another way around
> this would be to set 'type=e1000' for all the vifs.

Or to use the new option in 4.5 to increase the MMIO space (or is that
not where ROMs end up?)

Do we need to plumb through qemu's optionrom parameter to allow a)
limiting the number of NICs which will try to do PXE and b) allow custom
roms etc?

Ian.


_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Stefano Stabellini-3
On Thu, 20 Nov 2014, Ian Campbell wrote:

> On Mon, 2014-11-17 at 13:00 +0000, Stefano Stabellini wrote:
> > On Mon, 17 Nov 2014, Ian Campbell wrote:
> > > On Sat, 2014-11-15 at 10:16 +0800, hanyandong wrote:
> > > > By the way, how many NICs can I apply to a VM?
> > > >
> > > > On xen-4.4.0, Using qemu-dm, I can apply 8 NIC to a VM, but using
> > > > qemu-system-i386, I can only apply 4 NICs to an VM?
> > > > is it normal?
> > >
> > > I've no idea, CCing the qemu maintainers.
> > >
> > > I'd have expected the number of PV nics to be completely independent of
> > > the device mode, so I suppose you mean emulated NICs?
> >
> > I can pass 4 emulated NICs maximum, but you can easily reach 8 if you
> > use PV NICs instead. Just pass 'type=pv' like this:
> >
> > vif=['', '', '', '', 'type=pv', 'type=pv', 'type=pv', 'type=pv']
> >
> > it is going to create 4 emulated nics and 4 pv nics. The 4 emulated nics
> > also have 4 corresponding pv nics. The emulated nics get disconnected
> > soon after boot by the guest operating system (if it has pv drivers
> > installed, such as Linux). So overall once the boot sequence is fully
> > completed you'll end up with the 8 pv nics that you want.
>
> I wonder if we should do something in (lib)xl such that by default the
> first 4 NICs have type LIBXL_NIC_TYPE_VIF_IOEMU (i.e. emulated+PV path)
> and the rest have LIBXL_NIC_TYPE_VIF (i.e. PV only).

That looks like a simple and reasonable idea.


> > BTW the reason for the failure seems to be that QEMU runs out of ram
> > (xen: failed to populate ram at 80110000, so
> > xc_domain_populate_physmap_exact failed) allocating roms for the rtl8139
> > (40000 bytes each). Maybe qemu-trad wasn't loading any roms for rtl8139.
> > Interestingly e1000 doesn't need any roms either, so another way around
> > this would be to set 'type=e1000' for all the vifs.
>
> Or to use the new option in 4.5 to increase the MMIO space (or is that
> not where ROMs end up?)
>
> Do we need to plumb through qemu's optionrom parameter to allow a)
> limiting the number of NICs which will try to do PXE and b) allow custom
> roms etc?

The libxl solution is the best one for simplicity, besides I don't think
there is such an option for QEMU.

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Ian Campbell-10
On Thu, 2014-11-20 at 11:39 +0000, Stefano Stabellini wrote:

> On Thu, 20 Nov 2014, Ian Campbell wrote:
> > On Mon, 2014-11-17 at 13:00 +0000, Stefano Stabellini wrote:
> > > On Mon, 17 Nov 2014, Ian Campbell wrote:
> > > > On Sat, 2014-11-15 at 10:16 +0800, hanyandong wrote:
> > > > > By the way, how many NICs can I apply to a VM?
> > > > >
> > > > > On xen-4.4.0, Using qemu-dm, I can apply 8 NIC to a VM, but using
> > > > > qemu-system-i386, I can only apply 4 NICs to an VM?
> > > > > is it normal?
> > > >
> > > > I've no idea, CCing the qemu maintainers.
> > > >
> > > > I'd have expected the number of PV nics to be completely independent of
> > > > the device mode, so I suppose you mean emulated NICs?
> > >
> > > I can pass 4 emulated NICs maximum, but you can easily reach 8 if you
> > > use PV NICs instead. Just pass 'type=pv' like this:
> > >
> > > vif=['', '', '', '', 'type=pv', 'type=pv', 'type=pv', 'type=pv']
> > >
> > > it is going to create 4 emulated nics and 4 pv nics. The 4 emulated nics
> > > also have 4 corresponding pv nics. The emulated nics get disconnected
> > > soon after boot by the guest operating system (if it has pv drivers
> > > installed, such as Linux). So overall once the boot sequence is fully
> > > completed you'll end up with the 8 pv nics that you want.
> >
> > I wonder if we should do something in (lib)xl such that by default the
> > first 4 NICs have type LIBXL_NIC_TYPE_VIF_IOEMU (i.e. emulated+PV path)
> > and the rest have LIBXL_NIC_TYPE_VIF (i.e. PV only).
>
> That looks like a simple and reasonable idea.
>
>
> > > BTW the reason for the failure seems to be that QEMU runs out of ram
> > > (xen: failed to populate ram at 80110000, so
> > > xc_domain_populate_physmap_exact failed) allocating roms for the rtl8139
> > > (40000 bytes each). Maybe qemu-trad wasn't loading any roms for rtl8139.
> > > Interestingly e1000 doesn't need any roms either, so another way around
> > > this would be to set 'type=e1000' for all the vifs.
> >
> > Or to use the new option in 4.5 to increase the MMIO space (or is that
> > not where ROMs end up?)
> >
> > Do we need to plumb through qemu's optionrom parameter to allow a)
> > limiting the number of NICs which will try to do PXE and b) allow custom
> > roms etc?
>
> The libxl solution is the best one for simplicity, besides I don't think
> there is such an option for QEMU.

There is, it's the romfile option to -device e.g.
         -device $NICMODEL,vlan=0,romfile=$ROMFILE
       
where NICMODEL is e100, rtl8139, virtio-blah
and ROMFILE is e.g. an ipxe binary.

Ian.


_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Stefano Stabellini-3
On Thu, 20 Nov 2014, Ian Campbell wrote:

> On Thu, 2014-11-20 at 11:39 +0000, Stefano Stabellini wrote:
> > On Thu, 20 Nov 2014, Ian Campbell wrote:
> > > On Mon, 2014-11-17 at 13:00 +0000, Stefano Stabellini wrote:
> > > > On Mon, 17 Nov 2014, Ian Campbell wrote:
> > > > > On Sat, 2014-11-15 at 10:16 +0800, hanyandong wrote:
> > > > > > By the way, how many NICs can I apply to a VM?
> > > > > >
> > > > > > On xen-4.4.0, Using qemu-dm, I can apply 8 NIC to a VM, but using
> > > > > > qemu-system-i386, I can only apply 4 NICs to an VM?
> > > > > > is it normal?
> > > > >
> > > > > I've no idea, CCing the qemu maintainers.
> > > > >
> > > > > I'd have expected the number of PV nics to be completely independent of
> > > > > the device mode, so I suppose you mean emulated NICs?
> > > >
> > > > I can pass 4 emulated NICs maximum, but you can easily reach 8 if you
> > > > use PV NICs instead. Just pass 'type=pv' like this:
> > > >
> > > > vif=['', '', '', '', 'type=pv', 'type=pv', 'type=pv', 'type=pv']
> > > >
> > > > it is going to create 4 emulated nics and 4 pv nics. The 4 emulated nics
> > > > also have 4 corresponding pv nics. The emulated nics get disconnected
> > > > soon after boot by the guest operating system (if it has pv drivers
> > > > installed, such as Linux). So overall once the boot sequence is fully
> > > > completed you'll end up with the 8 pv nics that you want.
> > >
> > > I wonder if we should do something in (lib)xl such that by default the
> > > first 4 NICs have type LIBXL_NIC_TYPE_VIF_IOEMU (i.e. emulated+PV path)
> > > and the rest have LIBXL_NIC_TYPE_VIF (i.e. PV only).
> >
> > That looks like a simple and reasonable idea.
> >
> >
> > > > BTW the reason for the failure seems to be that QEMU runs out of ram
> > > > (xen: failed to populate ram at 80110000, so
> > > > xc_domain_populate_physmap_exact failed) allocating roms for the rtl8139
> > > > (40000 bytes each). Maybe qemu-trad wasn't loading any roms for rtl8139.
> > > > Interestingly e1000 doesn't need any roms either, so another way around
> > > > this would be to set 'type=e1000' for all the vifs.
> > >
> > > Or to use the new option in 4.5 to increase the MMIO space (or is that
> > > not where ROMs end up?)
> > >
> > > Do we need to plumb through qemu's optionrom parameter to allow a)
> > > limiting the number of NICs which will try to do PXE and b) allow custom
> > > roms etc?
> >
> > The libxl solution is the best one for simplicity, besides I don't think
> > there is such an option for QEMU.
>
> There is, it's the romfile option to -device e.g.
>          -device $NICMODEL,vlan=0,romfile=$ROMFILE
>        
> where NICMODEL is e100, rtl8139, virtio-blah
> and ROMFILE is e.g. an ipxe binary.

I think that option was intended to point QEMU to a different file, not
to disable the romfile.

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Ian Campbell-10
On Thu, 2014-11-20 at 14:46 +0000, Stefano Stabellini wrote:
> On Thu, 20 Nov 2014, Ian Campbell wrote:
> > There is, it's the romfile option to -device e.g.
> >          -device $NICMODEL,vlan=0,romfile=$ROMFILE
> >        
> > where NICMODEL is e100, rtl8139, virtio-blah
> > and ROMFILE is e.g. an ipxe binary.
>
> I think that option was intended to point QEMU to a different file, not
> to disable the romfile.

romfile="" does that, I think. Or use /dev/null etc etc.

Ian.


_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)

Stefano Stabellini-3
On Thu, 20 Nov 2014, Ian Campbell wrote:

> On Thu, 2014-11-20 at 14:46 +0000, Stefano Stabellini wrote:
> > On Thu, 20 Nov 2014, Ian Campbell wrote:
> > > There is, it's the romfile option to -device e.g.
> > >          -device $NICMODEL,vlan=0,romfile=$ROMFILE
> > >        
> > > where NICMODEL is e100, rtl8139, virtio-blah
> > > and ROMFILE is e.g. an ipxe binary.
> >
> > I think that option was intended to point QEMU to a different file, not
> > to disable the romfile.
>
> romfile="" does that, I think. Or use /dev/null etc etc.

Confirmed working.

---

libxl: do not load roms for any NICs except the first to avoid wasting memory

Signed-off-by: Stefano Stabellini <[hidden email]>

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 3e191c3..f907ca9 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -674,9 +674,10 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
                                                 LIBXL_NIC_TYPE_VIF_IOEMU);
                 flexarray_append(dm_args, "-device");
                 flexarray_append(dm_args,
-                   libxl__sprintf(gc, "%s,id=nic%d,netdev=net%d,mac=%s",
+                   libxl__sprintf(gc, "%s,id=nic%d,netdev=net%d,mac=%s%s",
                                                 nics[i].model, nics[i].devid,
-                                                nics[i].devid, smac));
+                                                nics[i].devid, smac,
+                                                i ? ",romfile=\"\"" : ""));
                 flexarray_append(dm_args, "-netdev");
                 flexarray_append(dm_args, GCSPRINTF(
                                           "type=tap,id=net%d,ifname=%s,"

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xen.org/xen-users