On Wed, Jun 8, 2011 at 12:50 PM, Ricardo Espinoza
Hello
Actually my create script is empty, well just exit 0 as a shell script.The disk is "ide" but still can't boot after installation.I have the latest version of ganeti, any tips or a place where I can read a bit more for this?
Thanks
Hi,I currently have a couple of Windows 2008 R2 servers that runs flawlessy in my ganeti + kvm cluster.I did some custom OS scripts that works good for windows but requires the last release of ganeti ti work properly.I will publish them as soon as I will be sure that they are stable.Anyway, to make a windows guest, try to create the instance using an empty "create script" and "ide" as disk_type (if you don't have the virtio drivers floppy).regards.
--
By MCM.
On Wed, Jun 8, 2011 at 11:03 AM, Ricardo Espinoza
<ricardo....@gmail.com> wrote:
> It works to boot from the cdrom and install, but when the installation is
> finished and I have to boot from the hard disk, I get the error.
> It must be something with the boot loader or KVM not finding the right boot
> partition.
> The data is there is I activate the disks, so I know Windows XP can see the
> disk (ide).
> I also checked if the partition was set as "boot" and it actually is.
> I must be missing something else.
I had the same issue when installing Windows hosts under ganeti.
Unfortunately this seems to be
https://bugs.launchpad.net/qemu/+bug/586175 which was supposed to be
fixed, but in my experience, isn't. My workaround, was to install
Windows using kvm directly on a file with -hda and then to use dd to
move it to an lvm partition under a ganeti guest.
I did the following for a windows 2003 host, but I've also moved a
windows xp host from a kvm install to ganeti and got it working.
create 2 disks, one to be used to load the virtio drivers into windows
qemu-img create -f raw /home/kvm/server.img 45G
qemu-img create -f raw /home/kvm/server-d.img 2G
boot to install using the 2nd disk as a virtio disk
/usr/bin/qemu-system-x86_64 -hda /home/kvm/server.img -m 2048M -smp 4
-vnc :5101 -k pt -cdrom /home/kvm/images/win2003-r2.iso -boot c -fda
/home/kvm/images/virtio-win-1.1.16.vfd -drive
file=/home/kvm/server-d.img,if=virtio
boot after install using the 1st disk as a virtio disk and changing
the network card to virtio. I got the details from gnt-instance for
the host. This can be done after moving to ganeti.
/usr/bin/qemu-system-x86_64 -drive file=/home/kvm/server.img,if=virtio
-m 2048M -smp 4 -vnc :5101 -k pt -cdrom
/home/kvm/images/virtio-win-1.1.16.iso -boot c -fda
/home/kvm/images/virtio-win-1.1.16.vfd -drive
file=/home/kvm/server-d.img,if=virtio -netdev
type=tap,id=netdev0,fd=11 -device
virtio-net-pci,mac=aa:00:00:91:de:39,netdev=netdev0
create ganeti instance
/usr/sbin/gnt-instance add -n <ganeti-server> -o image+default -t
plain -s 100G -B vcpus=4 -B memory=4096M -H
kvm:boot_order=cdrom,cdrom_image_path=/home/kvm/images/win2003.iso,nic_type=e1000,kernel_path=""
--net=0:bridge=br1 <server-fqdn>
use dd to copy the installation from the file to the lvm
dd if=/home/kvm/server.img of=/dev/<dm device>
you can find the dm-device by looking at gnt-instance info server.
Check the lvm device under Disks and see where the /dev/ganeti/*
device points to.
I hope the above helps with the install. Feel free to poke me about this.
Regards,
Jorge Manuel B. S. Vicetto
Net / Sys admin - HSEAH
Gentoo developer
Did you actually put the image created with qemu-kvm under /isos ?
iustin
Alto not related to your error about the source file failing to open,
I would use this extra step before writing to the DRBD device :
gnt-instance activate-disks vm2.ganeti.test