Upgrading to NetBSD 10.0 on a V-Colo

Using the NetBSD recovery system, you can upgrade NetBSD on your V-Colo using the NetBSD "sysinst" program.

This procedure will not allow you to change the size of your root disk. If you want to change the size of your root disk as well, you may instead want to do a fresh install.

  1. Back up your important data.

    The NetBSD installer should not cause data loss, but you should take every precaution as it's impossible to test every scenario.

  2. Add new dhcpcd group and user.

    NetBSD 10.0 adds a new group and user for the dhcpcd program. The upgrader doesn't add these, but you can add them before you begin the upgrade. As root:

      vcolo# mkdir -p /var/chroot/dhcpcd
      vcolo# groupadd -g 35 _dhcpcd
      vcolo# useradd -c "& pseudo-user" -d /var/chroot/dhcpcd -u 35 -g 35 -s /sbin/nologin _dhcpcd 
  3. Log into the V-Colo management interface

    Using the username and password you selected when you signed up, please log into the management interface at https://config.panix.com/vc. If you have more than one V-Colo, you'll need to select a V-Colo at the top of the page.

  4. Log into the console server

    Please see the instructions in the V-Colo management interface under "V-Colo management -> Tools -> Console" . Log into your V-Colo's console as you'll be needing this later.

  5. Record the disk name to be upgraded.

    On your V-Colo, if you enter "df /" you should see output like this:

       Filesystem  1K-blocks      Used     Avail Capacity  Mounted on
       /dev/xbd0a    3277966    849212   2264856    27%    / 
    The disk name is in the first column. In this case, it is "xbd0". You will need this later.
  6. Create a new boot profile to use the latest NetBSD kernel

    Once you perform the upgrade, you may no longer be able to boot with the old kernel, so you'll want to make sure you have a usable profile first.

    1. On the management interface click on the "Boot Options -> Boot Profiles" tab.
    2. Click on the profile which is currently set to boot. You'll need the record the "Root device", "Multiprocessor", "Enable writeback cache" and "Attach disks" information for the new profile.
    3. Click on "Create a new profile" located underneath your current boot profiles.
    4. Set the kernel to "HVM for NetBSD with Xen/PV drivers" and press "Set kernel to proceed".
    5. Enter something into the "Description" field such as "NetBSD 10.0". This field can not be left blank.
    6. Set the "Root device". This will be similar to the original profile, but instead of "/dev/xbdXa" it will be "diskX".
    7. Set "Multiprocessor", "Enable writeback cache", and "Attach disks" to be the same as the original profile.
    8. Press "Create profile".
  7. Boot the NetBSD upgrade/recovery system.

    Next, you'll next need to boot the NetBSD Upgrade/Recovery System

    1. On the same "Boot Options -> Boot Profiles" tab, go to the section "Boot a live CD" and select one of:
      • "NetBSD/amd64 Upgrade/Recovery System (10.0)" (64-bit)
      • "NetBSD/i386 Upgrade/Recovery System (10.0)" (32-bit)
    2. Press "Save boot change".
    3. Reboot your V-Colo.
    4. After a few minutes, log into your V-Colo's console again.
    5. Log in as "root". If you successfully booted the Upgrade/Recovery system, it will not ask you for a password.
  8. Perform the upgrade.

    Please see our step-by-step instructions

  9. Switch to the new boot profile.

    1. On the "Boot Profiles" tab in the management interface, go to the section "Boot a live CD" and select "Normal Boot".
    2. Press "Save boot change".
    3. Click the radio button next to the new NetBSD 10 profile created earlier.
    4. Press "Set as boot profile".
    5. Reboot your V-Colo again
Your V-Colo should now be running NetBSD 10.0.
Last Modified:Friday, 12-Apr-2024 13:17:09 EDT
© Copyright 2010, Public Access Networks Corporation