Upgrade of OES11sp2 XEN VM

Hi,

Running SLES11sp3 with OES11sp2 as a XEN virtual machine on a SUSE12 server. This VM server is my main DNS and DHCP server.

I have created FTP on the host server (SUSE12) and copied the upgrade software for SLES11sp4 and OES 2015sp1 onto the server
and the FTP://127.0.0.1 works correctly.

I then run "vm-install" and try the "I need to upgrade the existing operating system". The system seems to get to about 75% and
then fails at the point "Sending DHCP request to Eth0" (mmmh, it is not going to get an answer cos it is the DHCP server that is being upgraded)

My other VM's upgraded perfectly so now I am a bit stuck...

Any help in this regard will be appreciated.
John
Parents
  • mmmh, both the Host and the VM have hard coded IP's. The issue is that during the boot of the VM,
    a request is sent to the DHCP (who knows why) server, but the VM being upgraded is the DHCP server ...
  • On the initial screen you might want to add something like

    netsetup=hostip hostip=192.168.100.50 netmask=255.255.255.0 gateway=192.168.100.1

    to the command line. I roughly remember that somewhere in the process a DNS server would be mandatory, so you could add one with a
    nameserver=xx.xx.xx.xx
    statement. In older versions IIRC the initial parameter read "netsetup=1", but for rather current code i'd try "netsetup=hostip" first.
  • Thank you. I am not sure where I add this command. dns2:/ #vm-install netsetup=hostip hostip=192.168.100.50 netmask=255.255.255.0 gateway=192.168.100.1

    My secondary DNS server (also a VM and upgraded successfully yesterday) is available but not the DHCP service.
  • Oh, i didn't read thoroughly. This is XEN. I threw a 1 hour look at XEN more than 15 years ago, considered it unsuitable for professional use, went away and never looked back. The linuxrc parameters i've mentioned are normally used e.g. at the initial screen when booting from CD / DVD / ISO / whatsoever. Looking at the command line options of "vm-install" i see an "--os-settings" option which apparently allows to specify a linuxrc info file containing the parameters. But this is just a (not even educated) guess, hopefully someone with knowledge of XEN will jump in.
    Another dirty quickshot could be to simply setup a bogus DHCP server handing out the desired address to the VM...
  • Hi John,

    when I did this a few weeks ago during a OES2015->OES2018 upgrade, I
    used (all on one line):

    upgrade=1 hostname=fully-qualified.domain.name \
    ifcfg=eth0=10.0.0.3/16,10.0.0.1,10.0.0.2,domain.name

    upgrade=1: Force upgrade mode of the installer (to avoid mistakes)
    hostname=: a correct FQDN here is useful in my experience
    ifcfg=: Specify network params
    eth0: interface to use (can also be a MAC address)
    10.0.0.3: IP of host to upgrade
    16: netmask
    10.0.0.1: gateway
    10.0.0.2: DNS server(s) (for DSfW upgrades I recommend to use a DSfW
    DNS server)
    domain.name: DNS (search) domain name(s)

    I specified it using "New Virtual Machine" of virt-manager (look closely
    on each screen, the text field is easy to overlook). Looking at the
    man-page of vm-install I believe -x/--extra-args would be the option to
    use (possibly with some extra quoting I guess).

    Franz

    Am 2019-01-03 um 14:14 schrieb John Gill:
    >
    > Thank you. I am not sure where I add this command. *dns2:/
    > #*vm-install netsetup=hostip hostip=192.168.100.50 netmask=255.255.255.0
    > gateway=192.168.100.1
    >
    > My secondary DNS server (also a VM and upgraded successfully yesterday)
    > is available but not the DHCP service.
    >
    >


Reply
  • Hi John,

    when I did this a few weeks ago during a OES2015->OES2018 upgrade, I
    used (all on one line):

    upgrade=1 hostname=fully-qualified.domain.name \
    ifcfg=eth0=10.0.0.3/16,10.0.0.1,10.0.0.2,domain.name

    upgrade=1: Force upgrade mode of the installer (to avoid mistakes)
    hostname=: a correct FQDN here is useful in my experience
    ifcfg=: Specify network params
    eth0: interface to use (can also be a MAC address)
    10.0.0.3: IP of host to upgrade
    16: netmask
    10.0.0.1: gateway
    10.0.0.2: DNS server(s) (for DSfW upgrades I recommend to use a DSfW
    DNS server)
    domain.name: DNS (search) domain name(s)

    I specified it using "New Virtual Machine" of virt-manager (look closely
    on each screen, the text field is easy to overlook). Looking at the
    man-page of vm-install I believe -x/--extra-args would be the option to
    use (possibly with some extra quoting I guess).

    Franz

    Am 2019-01-03 um 14:14 schrieb John Gill:
    >
    > Thank you. I am not sure where I add this command. *dns2:/
    > #*vm-install netsetup=hostip hostip=192.168.100.50 netmask=255.255.255.0
    > gateway=192.168.100.1
    >
    > My secondary DNS server (also a VM and upgraded successfully yesterday)
    > is available but not the DHCP service.
    >
    >


Children