[opensuse-virtual] Updating a OpenSuse 11.0 DomU to OpenSuse 11.1 problem
I recently installed OpenSuse 11.0 together with two OpenSuse 11.0 DomU´s. Now i want to update the complete system to OpenSuse 11.1. I had no problem´s to update the Dom0 system to OpenSuse 11.1. However updating the DomU´s seems to be a problem. The first install of the DomU´s was a install into directory with whole LVM´s partitions exported as disks. My layout is as follows: disk=[ 'phy:/dev/domX/daolin_root,xvda,w' , 'phy:/dev/domX/daolin_boot,xvdb,w' , 'phy:/dev/domX/daolin_usr,xvdc,w' , 'phy:/dev/domX/daolin_opt,xvdd,w' , 'phy:/dev/domX/daolin_var,xvde,w' , 'phy:/dev/domX/daolin_src,xvdf,w' , 'phy:/dev/domX/daolin_tmp,xvdg,w' , 'phy:/dev/data/home,xvdh,w' , 'phy:/dev/data/foto,xvdi,w' , 'phy:/dev/data/imap,xvdj,w' , 'phy:/dev/data/news,xvdk,w' , 'phy:/dev/data/squid,xvdl,w' , 'phy:/dev/data/srv,xvdm,w' , 'phy:/dev/hda1,xvdn,w' , 'phy:/dev/backup/backup,xvdo,w' , 'phy:/dev/sr0,xvdy:cdrom,r' , 'phy:/dev/sr1,xvdz:cdrom,r'] for the initial install i did mount the lvm volumens to subdirs of /tmp/install and did a install into this directory. The fstab of the system contains entry like /dev/xvda for mountpoints (i.e a whole disk, not a partition) This was working fine. But i don´t know how i know can update this system to 11.1. Installation into a directory seems to only can handle fresh installs. I created a special startup file for xen with allows a disk install of OpenSuse 11.1. However this doesn´t work because the exported disks are not recognized as expected. When i choose the update option, the installer shows no partitions at all. I have no idea to solve this problem. Do i really have to partition an exported lvm volume first in the DomU before using it as a mountpoint ? Greetings, Jörg -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
On 3/23/2009 at 08:19 AM, in message <49C79A5F.7070603@jetsys.de>, Jörg Spilker <js@jetsys.de> wrote: I recently installed OpenSuse 11.0 together with two OpenSuse 11.0 DomU´s. Now i want to update the complete system to OpenSuse 11.1. I had no problem´s to update the Dom0 system to OpenSuse 11.1. However updating the DomU´s seems to be a problem.
The first install of the DomU´s was a install into directory with whole LVM´s partitions exported as disks.
My layout is as follows:
disk=[ 'phy:/dev/domX/daolin_root,xvda,w' , 'phy:/dev/domX/daolin_boot,xvdb,w' , 'phy:/dev/domX/daolin_usr,xvdc,w' , 'phy:/dev/domX/daolin_opt,xvdd,w' , 'phy:/dev/domX/daolin_var,xvde,w' , 'phy:/dev/domX/daolin_src,xvdf,w' , 'phy:/dev/domX/daolin_tmp,xvdg,w' , 'phy:/dev/data/home,xvdh,w' , 'phy:/dev/data/foto,xvdi,w' , 'phy:/dev/data/imap,xvdj,w' , 'phy:/dev/data/news,xvdk,w' , 'phy:/dev/data/squid,xvdl,w' , 'phy:/dev/data/srv,xvdm,w' , 'phy:/dev/hda1,xvdn,w' , 'phy:/dev/backup/backup,xvdo,w' , 'phy:/dev/sr0,xvdy:cdrom,r' , 'phy:/dev/sr1,xvdz:cdrom,r']
for the initial install i did mount the lvm volumens to subdirs of /tmp/install and did a install into this directory.
The fstab of the system contains entry like /dev/xvda for mountpoints (i.e a whole disk, not a partition)
This was working fine.
But i don´t know how i know can update this system to 11.1. Installation into a directory seems to only can handle fresh installs.
I created a special startup file for xen with allows a disk install of OpenSuse 11.1.
What kind of startup file is this? Could you send it to me?
However this doesn´t work because the exported disks are not recognized as expected. When i choose the update option, the installer shows no partitions at all.
I haven't tried this scenario with an upgrade from os11.0 to 11.1, but when I have seen this before, I was always able to manually select the partition to upgrade (even though they weren't displayed on the main update page). What happens when you try this?
I have no idea to solve this problem. Do i really have to partition an exported lvm volume first in the DomU before using it as a mountpoint ?
You should be able to do everything you need to from within the domU. Other than config file modifications, you shouldn't have to do any mounting in dom0. In fact, I have seen instances where lvm volumes were getting auto-mounted in 11.1 dom0 which was causing endless problems for my VMs.
Greetings, Jörg -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
I will try to duplicate a similar (albeit simpler) setup and see what problems I encounter. Good luck. Jason -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
Jason Douglas schrieb:
What kind of startup file is this? Could you send it to me?
i used the following startup file to do an update with the OpenSUSE 11.1 DVD. The DVD was available via /dev/sr0. This file was created by me after watching vm-installer created configuration files for installing a DomU from DVD media. name="test" uuid="d3fd1172-3738-6c8d-330a-74b94a55a697" memory=384 maxmem=384 vcpus=1 on_poweroff="destroy" on_reboot="destroy" on_crash="destroy" localtime=0 keymap="de" builder="linux" kernel="/tmp/kernel.xen" ramdisk="/tmp/initrd.xen" extra=" install=hd:/dev/xvdy " root="/dev/xvda" disk=[ 'phy:/dev/domX/daolin_root,xvda,w' , 'phy:/dev/domX/daolin_boot,xvdb,w' , 'phy:/dev/domX/daolin_usr,xvdc,w' , 'phy:/dev/domX/daolin_opt,xvdd,w' , 'phy:/dev/domX/daolin_var,xvde,w' , 'phy:/dev/domX/daolin_src,xvdf,w' , 'phy:/dev/domX/daolin_tmp,xvdg,w' , 'phy:/dev/data/home,xvdh,w' , 'phy:/dev/data/foto,xvdi,w' , 'phy:/dev/data/imap,xvdj,w' , 'phy:/dev/data/news,xvdk,w' , 'phy:/dev/data/squid,xvdl,w' , 'phy:/dev/data/srv,xvdm,w' , 'phy:/dev/hda1,xvdn,w' , 'phy:/dev/backup/backup,xvdo,w' , 'phy:/dev/sr0,xvdy:cdrom,r' , 'phy:/dev/sr1,xvdz:cdrom,r'] vif=['mac=00:16:3e:35:55:5f'] vfb=['type=vnc,vncunused=1'] What happens is: The usual install appears in vncviewer. A new installation shows all the disks without any partitions and tries to install on /dev/xvdo (partioning it into two partitions). However when choosing updating an existing system, nothing is shown in the list of devices.
I haven't tried this scenario with an upgrade from os11.0 to 11.1, but when I have seen this before, I was always able to manually select the partition to upgrade (even though they weren't displayed on the main update page). What happens when you try this?
how could i do this? Shouldn´t be there an option to manually define the root device where to lookup for a /etc/fstab. I didn´t find such an option.
You should be able to do everything you need to from within the domU. Other than config file modifications, you shouldn't have to do any mounting in dom0. In fact, I have seen instances where lvm volumes were getting auto-mounted in 11.1 dom0 which was causing endless problems for my VMs.
can i do an update from 11.0 to 11.1 from within the running 11.0 domU? I thought this kind of update is only possible if the system is not running. Greeting, Jörg -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
So I attempted to duplicate your environment (although with less disks), and it seemed to work. My comments are in-line. Jason
On 3/23/2009 at 02:31 PM, in message <49C7F18C.5050007@jetsys.de>, Jörg Spilker <js@jetsys.de> wrote: Jason Douglas schrieb:
What kind of startup file is this? Could you send it to me?
i used the following startup file to do an update with the OpenSUSE 11.1 DVD. The DVD was available via /dev/sr0. This file was created by me after watching vm-installer created configuration files for installing a DomU from DVD media.
name="test" uuid="d3fd1172-3738-6c8d-330a-74b94a55a697" memory=384 maxmem=384 vcpus=1 on_poweroff="destroy" on_reboot="destroy" on_crash="destroy" localtime=0 keymap="de" builder="linux" kernel="/tmp/kernel.xen" ramdisk="/tmp/initrd.xen" extra=" install=hd:/dev/xvdy " root="/dev/xvda" disk=[ 'phy:/dev/domX/daolin_root,xvda,w' , 'phy:/dev/domX/daolin_boot,xvdb,w' , 'phy:/dev/domX/daolin_usr,xvdc,w' , 'phy:/dev/domX/daolin_opt,xvdd,w' , 'phy:/dev/domX/daolin_var,xvde,w' , 'phy:/dev/domX/daolin_src,xvdf,w' , 'phy:/dev/domX/daolin_tmp,xvdg,w' , 'phy:/dev/data/home,xvdh,w' , 'phy:/dev/data/foto,xvdi,w' , 'phy:/dev/data/imap,xvdj,w' , 'phy:/dev/data/news,xvdk,w' , 'phy:/dev/data/squid,xvdl,w' , 'phy:/dev/data/srv,xvdm,w' , 'phy:/dev/hda1,xvdn,w' , 'phy:/dev/backup/backup,xvdo,w' , 'phy:/dev/sr0,xvdy:cdrom,r' , 'phy:/dev/sr1,xvdz:cdrom,r'] vif=['mac=00:16:3e:35:55:5f'] vfb=['type=vnc,vncunused=1']
This was essentially the same as mine except that I pointed to the installation kernel and initrd (vmlinuz-xen & initrd-xen) directly on the DVD media for openSUSE 11.1 which I had mounted read-only at /os11.1-cd/. Here are the pertinent lines: kernel="/os11.1-cd/boot/x86_64/vmlinuz-xen" ramdisk="/os11.1-cd/boot/x86_64/initrd-xen" As long as your /tmp/kernel.xen / initrd.xen are the same files as these, we're on the same path. If not, then that's your first problem.
What happens is: The usual install appears in vncviewer. A new installation shows all the disks without any partitions and tries to install on /dev/xvdo (partioning it into two partitions). However when choosing updating an existing system, nothing is shown in the list of devices.
I saw this as well. When the installation program began, I selected update, and on the "Select for Update" screen, I clicked "Show All Partitions". I then selected /dev/xvda1, and clicked Next.
You should be able to do everything you need to from within the domU. Other than config file modifications, you shouldn't have to do any mounting in dom0. In fact, I have seen instances where lvm volumes were getting auto-mounted in 11.1 dom0 which was causing endless problems for my VMs.
can i do an update from 11.0 to 11.1 from within the running 11.0 domU? I thought this kind of update is only possible if the system is not running.
Sorry for the confusion. I simply meant that there was no need to mount any of the VM's disks in domain0. You are probably correct that the update needs to be done on a down server (although I'm not the right one to say for sure).
Greeting, Jörg
-- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
Jason Douglas schrieb:
As long as your /tmp/kernel.xen / initrd.xen are the same files as these, we're on the same path. If not, then that's your first problem.
i used the actual OpenSUSE 11.1 kernel from the running system (and not the original distribution). But will check if this is the reason.
I saw this as well. When the installation program began, I selected update, and on the "Select for Update" screen, I clicked "Show All Partitions". I then selected /dev/xvda1, and clicked Next.
well, see what happens here. /dev/xvda1 doesn´t show up on my last try (and why should it as the disk isn´t partioned. I created on ext3 filesystem on the lvm container without further partitiong. But i´ll try again with a original 11.1 kernel. Greeting, Jörg -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
Jason Douglas schrieb: Hello Jason, can you possibly send me your vm configuration file which you used to test the update. I tried it again (sorry for the long delay) with my setup and the SUSE installation kernel from DVD but with no success. Greetings, Jörg -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
Sorry for the delay. I have attached the config file from my original 11.0 install (opensuse11) and the file I modified to perform the upgrade (opensuse11-install). Jason
On 4/8/2009 at 12:20 AM, in message <49DC421C.70400@jetsys.de>, Jörg Spilker <js@jetsys.de> wrote: Jason Douglas schrieb:
Hello Jason,
can you possibly send me your vm configuration file which you used to test the update. I tried it again (sorry for the long delay) with my setup and the SUSE installation kernel from DVD but with no success.
Greetings, Jörg
Jason Douglas schrieb: Hello Douglas, the upgrade is still not working. I think the problem could be my initial installation. I´ll try it with your initial 11.0 installation config and then the update. Greetings, Jörg -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
participants (2)
-
Jason Douglas
-
Jörg Spilker