Re: [libvirt][qemu] Ho to get a 'boot=on' parameter to appear on kvm command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 10, 2009 at 01:07:34PM +0400, Anton Protopopov wrote:
> Hi, all.
> 
> Can someone tell me how to get boot=on parameter to appear on my kvm
> cmdline?

What version of KVM have you got ?  There was one recent release which
broke the 'boot=on' parameter.

> I define domain with the following xml
> 
> <domain type="kvm">
>   <name>kvm-1</name>
>   <memory>524288</memory>
>   <vcpu>1</vcpu>
>   <os>
>     <type arch="x86_64" machine="pc">hvm</type>
>     <boot dev="hd"/>
>   </os>
>   <devices>
>     <emulator>/usr/bin/kvm</emulator>
>     <graphics type="vnc" port="-1"/>
>     <disk device="disk" type="file">
>       <source file="test.img"/>
>       <target dev="sda"/>
>     </disk>
>     <interface type="bridge">
>       <source bridge="breth0"/>
>     </interface>
>   </devices>
> </domain>
> 
> and get
> 
> /usr/bin/kvm -S -M pc -m 512 -smp 1 -name kvm-1 -uuid
> b462e575-4044-146c-193a-9a70523b4258 -monitor pty -no-acpi -boot c -drive
> file=test.img,if=scsi,index=0 -net nic,macaddr=52:54:00:09:9b:19,vlan=0 -net
> tap,fd=15,vlan=0 -serial none -parallel none -usb
> 
> But I want to get
>  -drive file=test.img,if=scsi,index=0,boot=on
> instead.


Your XML looks fine - the <boot dev='hd'/> tag should have resulted
in the boot=on parameter being used on the first disk. Thus I suspect
you have the broken KVM release.


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]