Cannot migrate a VM from Ubuntu 9.04 to Ubuntu 10.04.1 LTS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Hi bug masters,
I have a Ubuntu 9.04 server running virtualization with many guests. The guests are defined by an xml file (attached) in /etc/libvirt/qemu and started by virsh start "domain name". The guests are using a qcow2 type disks. I want to upgrade this server to Ubuntu 10.04.1 LTS and to test if all my guests can be safely migrated over to new server I have installed lucid in a similar server and copied over the disk image and config xml. I created the domain using virsh create "domain xml file" (after making changes to IP address, mac address and source file location). When I start the VM using virsh start "domain name" I get an error in the vnc console (screen shot attached).
The disk image I copied from old server is running fine in that server. I have also tried with another disk image, in case the first image is corrupted, and result is the same.
Actual kvm command in the new server (lucid) is as follows:
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 256 -smp 1 -name a1.6-q2 -uuid 9f58079c-
In old server (jaunty):
/usr/bin/kvm -S -M pc -m 384 -smp 1 -name alex2 -uuid 4c949839-
One difference I noted was that the -drive option has an extra argument "format=raw" which looks odd because the image I am using is qcow2 in format.
Running the kvm command line directly from console in new server resulted in the following error:
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 256 -smp 1 -name a1.6-q2 -uuid 9f58079c-
char device redirected to /dev/pts/4
TUNGETIFF ioctl() failed: Bad file descriptor
TUNSETOFFLOAD ioctl() failed: Bad file descriptor
pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin"
So I could not test with "format=qcow2" in -drive option.
Pl let me know if any further information is required to traig this issue.
with regards,
raj
Thanks for reporting this bug and helping to make Ubuntu better.
Could you give the output of a1.6-q2. img
qemu-img info /var/kvm/
Do you know if that file happens to be virtio?
What output do you see if you do:
kvm -m 384 -monitor stdio -localtime -drive file=/var/ kvm/a1. 6-q2.img, if=ide, index=0, boot=on -serial pty -parallel none -usb -vnc 192.168.3.3:49