Hi, I’d like to run my multipass box with UTC while my local MacBook Pro runs JST. However, the multipass box timezone looks to be inherited from the host one. Please advise.
Here are steps to reproduce.
% multipass version
multipass 1.9.1-rc.22+ge2958279.mac
multipassd 1.9.1-rc.22+ge2958279.mac
% multipass launch --name foo
Launched: foo
% multipass shell foo
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-109-generic aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue May 17 23:35:29 JST 2022
System load: 0.53
Usage of /: 27.2% of 4.68GB
Memory usage: 19%
Swap usage: 0%
Processes: 103
Users logged in: 0
IPv4 address for enp0s1: 192.168.64.57
IPv6 address for enp0s1: fd48:fa41:3ef1:2641:5054:ff:fed5:15a6
0 updates can be applied immediately.
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@foo:~$ date
Tue May 17 23:35:30 JST 2022
ubuntu@foo:~$
% date
Wed May 18 08:28:41 JST 2022
% more cloud-init.yaml
#cloud-config
timezone: Utc
% multipass launch --cloud-init ./cloud-init.yaml
Launched: resolute-boar
% multipass shell resolute-boar
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-109-generic aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue May 17 23:28:06 UTC 2022
System load: 0.07
Usage of /: 27.2% of 4.68GB
Memory usage: 19%
Swap usage: 0%
Processes: 102
Users logged in: 0
IPv4 address for enp0s1: 192.168.64.58
IPv6 address for enp0s1: fd48:fa41:3ef1:2641:5054:ff:fe8a:39d6
0 updates can be applied immediately.
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
dTo run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@resolute-boar:~$ date
Tue May 17 23:28:08 UTC 2022
ubuntu@resolute-boar:~$ exit
logout