How to install Fedora-13 beta using KVM under debian sid (32bits,sqeeze/sid)

In installing Fedora 13 beta under KVM, I met suddenly dying qemu imediately invoking virt-install.It is because libvirt append -no-reboot option to qemu in booting from cdrom image.The Fedora 13 beta install image causes reset immediately after the 1st booting, so the qemu is dying.

Consulting in the sources of libvirt and virt-install,unfortunately there is no way to disable appending -no-reboot option to qemu using virt-install.

Now, I'll show a dirty way for workaround this and how to install Fedora 13 beta using KVM.

Step 1. Generate the xmls of libvirt using virt-install command.

sudo virt-install --connect=qemu:///system -n fedora-01 --ram 1024 --cdrom /Fedora-13-Beta-i386-DVD.iso --os-variant=fedora13 --disk /var/lib/libvirt/images/fedora-01.img,size=10,device=disk,bus=virtio,format=raw --network bridge=br0,model=virtio --hvm --accelerate --vnc --soundhw ac97

After a while, blank virt-viewer are shown. Type Ctrl-C on the terminal and
stop virt-install. You can get /etc/libvirt/qemu/fedora-01.xml.

Step 2. Backup and edit /etc/libvirt/qemu/fedora-01.xml

sudo cp /etc/libvirt/qemu/fedora-01.xml /tmp
sudo virsh edit fedora-01

And modifiy like this,

--- before --
...

...



...
-------------
--- after ----
...

...




....
------------

Step 3. Invoke qemu using virsh ,and connect console.

sudo virsh start fedora-01
sudo virt-viewer fedora-01

Step 4. Continue install of Fedora 13.

Step 5. Reboot and stop the Guest OS

The last install procedure is rebooting machine. However after reboot,you met the some error messages, and stop qemu. Type follwing commands,and terminate the Guest OS.

sudo virsh destroy fedora-01

Step 6. Restore original xml

sudo cp /tmp/fedora-01.xml /etc/libvirt/qemu/

Step 7. Start Fedora 13 Guest OS.

sudo virsh start fedora-01
sudo virt-viewer fedora-01

After answering some questions of install procedure,successfully the installation of Fedora 13 Beta is done.