Comment 18 for bug 691609

Revision history for this message
Rajkumar S (rajkumars) wrote : Re: [Bug 691609] Re: Cannot migrate a VM from Ubuntu 9.04 to Ubuntu 10.04.1 LTS

Hi,

That did the trick! Thanks!
The guest has been correctly started and network is working fine.

raj

On Tue, Dec 21, 2010 at 7:36 PM, Serge Hallyn <email address hidden> wrote:
> As you'd observed from the start, I suspect we need to drop the 'format=raw'
> from the command.  Please add the following to the disk definition in your
> .xml file (i.e. virsh edit a1.6-q2.log):
>
>      <driver name='qemu' type='qcow2'/>
>
> So the whole disk definition will probably look like:
>
> <disk type="file" device="disk">
>        <source file="/var/kvm/a1.6-q2.img"/>
>        <driver name='qemu' type='qcow2'/>
>        <target dev="hda" bus="ide"/>
> </disk>
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/691609
>
> Title:
>  Cannot migrate a VM from Ubuntu 9.04 to Ubuntu 10.04.1 LTS
>
> Status in “libvirt” package in Ubuntu:
>  Incomplete
>
> 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-057f-5726-4daa-3d30888d7bbe -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/a1.6-q2.monitor,server,nowait -monitor chardev:monitor -localtime -boot c -drive file=/var/kvm/a1.6-q2.img,if=ide,index=0,boot=on,format=raw -net nic,macaddr=52:54:00:13:34:42,vlan=0,name=nic.0 -net tap,fd=42,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 192.168.3.7:42 -vga cirrus
>
> In old server (jaunty):
>
> /usr/bin/kvm -S -M pc -m 384 -smp 1 -name alex2 -uuid 4c949839-9c2d-6c31-8bfb-1b0b0504f92e -monitor pty -pidfile /var/run/libvirt/qemu//alex2.pid -localtime -boot c -drive file=/usr/local/var/kvm/alex2.img,if=ide,index=0,boot=on -net nic,macaddr=52:54:00:12:34:49,vlan=0 -net tap,fd=28,script=,vlan=0,ifname=vnet6 -serial pty -parallel none -usb -vnc 192.168.3.3:49
>
> 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-057f-5726-4daa-3d30888d7bbe -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/a1.6-q2.monitor,server,nowait -monitor chardev:monitor -localtime -boot c -drive file=/var/kvm/a1.6-q2.img,if=ide,index=0,boot=on -net nic,macaddr=52:54:00:13:34:42,vlan=0,name=nic.0 -net tap,fd=42,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 192.168.3.7:42 -vga cirrus
> 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
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/691609/+subscribe
>