[one-users] unable to revert VMs settings to boot from HD
Andrzej
andrzej at mielnet.pl
Tue Jan 8 02:48:20 PST 2013
Sir, I owe you a glass of cold Zlaty Bazant!
It worked just as described, many thanks!
All the best,
Andrzej
On 08.01.2013 06:49, Benadik, Jan wrote:
> Hi,
>
> I have had the similar problem with virtio. If I remember, the issue
> was DEV_PREFIX="sd".
> Try to change it to DEV_PREFIX="hd", or remove it.
>
> Jan
>
> Dňa 08.01.2013 01:40, Andrzej wrote / napísal(a):
>> OK, should be a simple but this one bothers me for a couple of days now.
>> Slowly loosing mu mind :-)
>>
>> Basically I was experimenting with Opennebula VMs booting from network
>> and it worked OK. But now regardless of what I do my machines want to
>> boot from network. Tried to change context, no luck. I've wiped out old
>> template, created and imported new disk image, crate new template from
>> the scratch using new image but still, instead of booting from hd VM
>> keeps trying iPXE boot.
>>
>> My context in template definition:
>>
>> CONTEXT=[
>> SSH_PUBLIC_KEY="ssh-rsa sniped" ]
>> CPU="3"
>> DISK=[
>> BUS="virtio",
>> DEV_PREFIX="sd",
>> DRIVER="raw",
>> IMAGE_ID="11",
>> IMAGE_UNAME="oneadmin",
>> SIZE="11000" ]
>> GRAPHICS=[
>> LISTEN="0.0.0.0",
>> TYPE="vnc" ]
>> INPUT=[
>> BUS="usb",
>> TYPE="mouse" ]
>> MEMORY="15000"
>> NAME="Banana001"
>> NIC=[
>> MODEL="virtio",
>> NETWORK="BridgeHost10" ]
>> OS=[
>> ARCH="x86_64",
>> BOOT="hd" ]
>> RAW=[
>> TYPE="kvm" ]
>> TEMPLATE_ID="4"
>> VCPU="12"
>>
>>
>> And when I'm checking kvm process on host here are its parameters:
>>
>> /usr/bin/kvm -S -M pc-1.0
>> -enable-kvm
>> -m 15000
>> -smp 12,sockets=12,cores=1,threads=1
>> -name one-53
>> -uuid cd194922-7c1a-6abd-327f-f37d3e21fc23
>> -nodefconfig
>> -nodefaults
>> -chardev
>> socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-53.monitor,server,nowait
>>
>> -mon chardev=charmonitor,id=monitor,mode=control
>> -rtc base=utc
>> -no-shutdown
>> -device lsi,id=scsi0,bus=pci.0,addr=0x4
>> -drive
>> file=/var/lib/one//datastores/0/53/disk.0,if=none,id=drive-scsi0-0-0,format=raw
>>
>> -device scsi-disk,bus=scsi0.0,scsi-id=0,drive=drive-scsi0-0-0,id=scsi0-0-0
>> -drive
>> file=/var/lib/one//datastores/0/53/disk.1,if=none,media=cdrom,id=drive-ide0-0-0,readonly=on,format=raw
>>
>> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
>> -netdev tap,fd=20,id=hostnet0
>> -device
>> virtio-net-pci,netdev=hostnet0,id=net0,mac=02:00:c0:76:43:09,bus=pci.0,addr=0x3
>>
>> -usb
>> -device usb-mouse,id=input0
>> -vnc 0.0.0.0:53
>> -vga cirrus
>> -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
>>
>>
>>
>> I think I've been through every single kvm, qemu, libvirt and oned
>> config file more that 10 times. I need someone with a fresh look now and
>> would really appreciate any hint :-)
>>
>> Where should I look? What I messed up? Let me know if you need more info.
>>
>> Andrzej
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
> --
>
> *Ján Beňadik*
> Managed Services - Solution Design Architect
> mobile: +421 903 691 634
> fax: +421 2 6852 8380
> jan.benadik at atos.net <mailto://jan.benadik@atos.net>
> Vinohradnicka 6, 971 01 Prievidza
> www.sk.atos.net <http://www.sk.atos.net>
> __________________________________
>
>
More information about the Users
mailing list