Hello Brian,

Thank you. I took a snapshot and did the upgrades 15.04->15.10->16.04.
The first one was rather bumpy as various packages got upset about
mmap/setcap/mknod not quite being fully implemented (and dbus got rather
sad, but I have seen that on non-smartos boxes so I think that is an old
dbus bug). The second one went rather more smoothly. Overall it did
appear to work.

Daniel

On 18/03/17 00:48, Brian Bennett wrote:
> Hi Daniel,
> 
> Yes, it's true that the kernel version reported is a meaningless string
> (that's my serverfault answer, btw!). The only meaning is whatever is
> inferred by applications inside the zone. The illumos kernel does not
> alter behavior in any way based on the kernel version specified in the
> zone config.
> 
> That being said, upgrading ubuntu from the inside with apt is entirely
> possible, though I've never tried it. It's a good idea to take a
> snapshot before attempting it. Even if a kernel does get installed it
> won't be used. Only the illumos kernel is used in lx brand zones.
> 
> -- 
> Brian Bennett
> Systems Engineer, Cloud Operations
> Joyent, Inc. | www.joyent.com <http://www.joyent.com>
> 
>> On Mar 17, 2017, at 10:59 AM, Daniel Thomas <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> I have a LX zone running Ubuntu 15.10 which is long out of security
>> support and I wish to upgrade it to a supported version of Ubuntu. I am
>> unfamiliar with smartos (a colleague set this up and then left).
>> The host is running:
>> # uname -a
>> SunOS REDACTED 5.11 joyent_20160929T025934Z i86pc i386 i86pc
>>
>> While I could easily perform the upgrade within the domain, I worry that
>> this might end rather badly. It seems that the kernel version and OS
>> type are baked into the joyent metadata about the VM. I don't want to
>> upgrade the userspace only to find that it relies on syscalls that are
>> not supported by smartos's syscall table for the linux kernel version it
>> is emulating (I currently get daily cron mail as a result of mmap not
>> being supported).
>> According to this post:
>> https://serverfault.com/questions/700370/what-kernel-versions-are-supported-in-smartos-lx-branded-zones/726690#726690
>> the kernel_version is meaningless and just a user facing string (is that
>> true?). However, the linux kernel does change and I think that the
>> current version of systemd might use syscalls not present in a kernel
>> for 15.10 (I have been bitten by this before in an OpenVZ context).
>>
>> 1) Does smartos support multiple Linux kernel versions?
>> 2a) If so which versions does it support and how do I switch a VM
>> between them?
>> 2b) If not then will upgrading the userspace to Ubuntu 16.04 work or
>> will it die horribly.
>>
>> 3) Can I snapshot such a VM and restore it if things go badly? Reading:
>> https://smartos.org/man/1m/vmadm
>> "Support for snapshots is currently experimental. It only works for OS
>> VMS which also have no additional datasets."
>> which does not sound promising.
>>
>> The json for the zone follows:
>>
>> # vmadm get f116308f-8892-41ec-b7e2-e057b55562d0
>> {
>>  "zonename": "f116308f-8892-41ec-b7e2-e057b55562d0",
>>  "autoboot": true,
>>  "brand": "lx",
>>  "limit_priv": "default",
>>  "v": 1,
>>  "create_timestamp": "2016-04-05T10:15:53.230Z",
>>  "image_uuid": "631e52e8-c884-11e5-a72c-ff625ef3bd2a",
>>  "cpu_shares": 100,
>>  "max_lwps": 2000,
>>  "max_msg_ids": 4096,
>>  "max_sem_ids": 4096,
>>  "max_shm_ids": 4096,
>>  "max_shm_memory": 12288,
>>  "zfs_io_priority": 1000,
>>  "max_physical_memory": 8192,
>>  "max_locked_memory": 8192,
>>  "max_swap": 8192,
>>  "billing_id": "00000000-0000-0000-0000-000000000000",
>>  "owner_uuid": "dc2a364c-fb11-11e5-b082-bffdf24c3b85",
>>  "tmpfs": 8192,
>>  "hostname": "REDACTED",
>>  "dns_domain": "local",
>>  "kernel_version": "3.13.0",
>>  "resolvers": [
>>    "REDACTED"
>>  ],
>>  "alias": "REDACTED",
>>  "nics": [
>>    {
>>      "interface": "eth0",
>>      "mac": "REDACTED",
>>      "nic_tag": "external",
>>      "gateway": "REDACTED",
>>      "gateways": [
>>        "REDACTED"
>>      ],
>>      "netmask": "255.255.252.0",
>>      "ip": "REDACTED",
>>      "ips": [
>>        "REDACTED"
>>      ],
>>      "primary": true
>>    }
>>  ],
>>  "filesystems": [
>>    {
>>      "source": "REDACTED",
>>      "target": "REDACTED",
>>      "type": "lofs"
>>    },
>>    {
>>      "source": "REDACTED",
>>      "target": "REDACTED",
>>      "type": "lofs",
>>      "options": [
>>        "ro"
>>      ]
>>    },
>>    {
>>      "source": "REDACTED",
>>      "target": "REDACTED",
>>      "type": "lofs"
>>    },
>>    {
>>      "source": "REDACTED",
>>      "target": "REDACTED",
>>      "type": "lofs",
>>      "options": [
>>        "ro"
>>      ]
>>    },
>>    {
>>      "source": "REDACTED",
>>      "target": "REDACTED",
>>      "type": "lofs",
>>      "options": [
>>        "ro"
>>      ]
>>    },
>>    {
>>      "source": "REDACTED",
>>      "target": "REDACTED",
>>      "type": "lofs",
>>      "options": [
>>        "ro"
>>      ]
>>    }
>>  ],
>>  "uuid": "f116308f-8892-41ec-b7e2-e057b55562d0",
>>  "zone_state": "running",
>>  "zonepath": "/zones/f116308f-8892-41ec-b7e2-e057b55562d0",
>>  "zoneid": 6,
>>  "last_modified": "2016-12-15T08:44:10.000Z",
>>  "firewall_enabled": false,
>>  "server_uuid": "6a028b80-3f36-11e6-906e-001560a04062",
>>  "platform_buildstamp": "20160929T025934Z",
>>  "state": "running",
>>  "boot_timestamp": "2016-12-15T08:44:40.000Z",
>>  "pid": 53896,
>>  "customer_metadata": {
>>    "root_authorized_keys": "REDACTED",
>>    "user-script": "/usr/sbin/mdata-get root_authorized_keys >
>> ~root/.ssh/authorized_keys; chmod 600 ~root/.ssh/authorized_keys"
>>  },
>>  "internal_metadata": {},
>>  "routes": {},
>>  "tags": {},
>>  "quota": 20,
>>  "zfs_root_recsize": 131072,
>>  "zfs_filesystem": "zones/f116308f-8892-41ec-b7e2-e057b55562d0",
>>  "zpool": "zones",
>>  "snapshots": []
>> }
>>
>>
>> Any help much appreciated.
>>
>> Thank you,
>>
>> Daniel
>>
>>
> 
> 


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to