{"id":12000,"date":"2022-05-23T05:52:38","date_gmt":"2022-05-23T05:52:38","guid":{"rendered":"https:\/\/www.itwriting.com\/blog\/?p=12000"},"modified":"2022-05-23T05:52:38","modified_gmt":"2022-05-23T05:52:38","slug":"installing-ubuntu-22-04-on-apple-m1-with-utm","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/12000-installing-ubuntu-22-04-on-apple-m1-with-utm.html","title":{"rendered":"Installing Ubuntu 22.04 on Apple M1 with UTM"},"content":{"rendered":"<p>I&nbsp; started with Arch Linux for Linux development&nbsp; on&nbsp; M1, which works, but succumbed to Ubuntu just because it is so widely used and therefore easier to find help. It is also supported by VS Code for remote development, as I am aiming for something similar to a WSL setup on Windows and using VS Code on the host side. I had problems installing 22.04 though;&nbsp; the install completed but trying to boot resulted in:<\/p>\n<blockquote>\n<p>EFI stub: booting Linux Kernel <\/p>\n<p>EFI stub: Using DTB from configuration table<\/p>\n<p>EFI stub: Exiting boot services<\/p>\n<\/blockquote>\n<p>and there it would stay.<\/p>\n<p>The fix I found was to update QEMU:<\/p>\n<blockquote>\n<p>sudo port selfupdate<\/p>\n<p>sudo port install qemu<\/p>\n<\/blockquote>\n<p>after which Ubuntu started without issue (no need to reinstall). <\/p>\n<p>Following this I was able to install and use the Remote &#8211; SSH extension in VS Code which worked first time.<\/p>\n<p>Small points to note:<\/p>\n<ul>\n<li>I accepted the option in Ubuntu to install the OpenSSH server during installation<\/li>\n<li>In UTM I changed the networking for the VM to Emulated VLAN rather than Shared Network, in order to use port forwarding. I forwarded both the SSH port 22 and also the HTTP port 80, to different ports on the Mac, so that I can test web applications running on Ubuntu.<\/li>\n<\/ul>\n<p>Thanks also to Liz Rice for her post <a href=\"https:\/\/medium.com\/@lizrice\/linux-vms-on-an-m1-based-mac-with-vscode-and-utm-d73e7cb06133\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&nbsp; started with Arch Linux for Linux development&nbsp; on&nbsp; M1, which works, but succumbed to Ubuntu just because it is so widely used and therefore easier to find help. It is also supported by VS Code for remote development, as I am aiming for something similar to a WSL setup on Windows and using VS &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/12000-installing-ubuntu-22-04-on-apple-m1-with-utm.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing Ubuntu 22.04 on Apple M1 with UTM<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80,1519],"tags":[1590,1589,1591],"class_list":["post-12000","post","type-post","status-publish","format-standard","hentry","category-software-development","category-tech","tag-mac-m1","tag-utm","tag-vscode"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/12000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=12000"}],"version-history":[{"count":1,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/12000\/revisions"}],"predecessor-version":[{"id":12001,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/12000\/revisions\/12001"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=12000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=12000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=12000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}