Results 1 to 5 of 5

Thread: Upgrade Xen paravirtualized machine

  1. #1

    Default Upgrade Xen paravirtualized machine

    I want to upgrade a Xen paravirtualized guest from 10.3 to 11.0 but I cant figure out how to do. If I remember correctly there was earlier a Yast tool for "System update", but I cant find it in 10.3.
    The best would of course be to boot from an ISO image, but I dont know how to do this without converting it to a HVM guest.
    I also noticed that zypper in 11.0 has a dist-upgrade option, does it work to upgrade zypper in 10.3 and use this option ??

  2. #2
    Join Date
    Jun 2008
    The Netherlands

    Default Re: Upgrade Xen paravirtualized machine

    See this thread for some methods to upgrade other than using the dvd. Upgrade to 11.0 from 10.3 using ISO image - openSUSE Forums
    As far as I know a 'System Update' won't bring 10.3 up to 11, or do you mean the 'zypper dup' (see thread).

    I'm not sure what you mean by 'converting it to a HVM guest', but you should be able to boot your guest using the ISO (set it as first drive), and upgrade from there.

    Also curios to know if this is a production machine you are using?

    Have a lot of fun!

  3. #3

    Default Re: Upgrade Xen paravirtualized machine

    This link from the thread you posted, Upgrading openSUSE 10.3 –> 11.0 in a running system., 24/06/08, Benjamin's blog might work for me.

    The problem is with ISO images is that I cant find a way to boot a paravirtualized machine from an image, except when I do the first installation (using Yasts virtual machine install).
    If I convert it to a fully virtualized (HVM) machine I could add the ISO image as an emulated DVD and run the normal upgrade path.

    I meant "zypper dup", but that is not available in 10.3, but according to the above link it is easy to upgrade and run using the new 11.0 repos, I will give it a shot later. And no it is just a home system, and it it easy to just snapshot th VM and roll back if anything goes wrong.

    My Xen config looks like this, do you mean that I can replace the disk entries and put the 11.0 ISO image as the first disk ?
    Do I need to modify the bootargs ?
    I think I have tried that before without success though.

    extra=" "
    disk=[ 'file:/mnt/data2/vm/xen/Test1/disk0,xvda,w', 'file:/mnt/data2/OS/openSUSE-10.3-GM-DVD-x86_64.iso,xvdb:cdrom,r', ]
    vif=[ 'mac=00:16:3e:55:60:60,bridge=xenbr1', 'mac=00:16:3e:42:05:65,bridge=xenbr2', ]

    Thanks for the links

  4. #4
    Join Date
    Jun 2008
    The Netherlands

    Default Re: Upgrade Xen paravirtualized machine

    I don't have a Xen setup here at the moment.. so can't test.
    But simply try setting the cdrom/ISO as fist drive, like so:

    disk=[ 'file:/mnt/data2/OS/openSUSE-10.3-GM-DVD-x86_64.iso,xvdb:cdrom,r', 'file:/mnt/data2/vm/xen/Test1/disk0,xvda,w', ]
    It sould let the ISO take boot priority.

    If you are updating th file directly, shutdown the VM, issue a ' xm new <serverconfigfile> ' and then ' xm create <serverconfigfile> '(the xm new imports the changed configuration into the xml file).
    After running the update reverse the change you made.

    Hope that helps,
    Have a lot of fun!

  5. #5

    Default Re: Upgrade Xen paravirtualized machine

    Didnt work with reordering the boot devices, however upgrading zypper and using "zypper dup" worked just fine.

    It would be interesting to know how Yast handles the installation of VMs, it seems there is some kind of template which differs depending on which guest OS you want to install.
    I guess these contains the command line sent to "xm create", but I cant seem to find any information on this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts