Try ubuntu core (by quqi99)

作者:张华 发表于:2024-07-20
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明(http://blog.csdn.net/quqi99)

try ubuntu core on qemu

#ovmf is to ensure compatibility with the required UEFI features in ubuntu core
sudo apt install qemu-kvm ovmf
kvm-ok
#swtpm is to provide a TPM emulator
sudo snap install --edge test-snapd-swtpm
#Download ubuntu core - https://ubuntu.com/core/docs/supported-platforms
wget https://cdimage.ubuntu.com/ubuntu-core/24/stable/current/ubuntu-core-24-amd64.img.xz
xz -d ubuntu-core-24-amd64.img.xz
#With TPM emulation and full disk encryption
sudo qemu-system-x86_64 -enable-kvm -smp 1 -m 2048 -machine q35 -cpu host -global ICH9-LPC.disable_s3=1 \
 -net nic,model=virtio -net user,hostfwd=tcp::8022-:22,hostfwd=tcp::8090-:80  \
 -drive file=/usr/share/OVMF/OVMF_CODE.secboot.fd,if=pflash,format=raw,unit=0,readonly=on \
 -drive file=/usr/share/OVMF/OVMF_VARS.ms.fd,if=pflash,format=raw,unit=1 \
 -drive "file=/images/kvm/ubuntu-core-24-amd64.img",if=none,format=raw,id=disk1 \
 -device virtio-blk-pci,drive=disk1,bootindex=1 -serial mon:stdio
#https://login.ubuntu.com  and https://login.ubuntu.com/ssh-keys
ssh <your-name>@localhost -p 8022

try ubuntu core on raspberry pi

#download image from https://ubuntu.com/core/docs/supported-platforms , eg: ubuntu-core-24-arm64+raspi.img.xz
xz -d ubuntu-core-24-arm64+raspi.img.xz
sudo dd if=ubuntu-core-24-arm64+raspi.img of=/dev/sdb status=progress; sync

try ubuntu core on x64 computer

#dd to usb or disk
sudo dd if=/images/kvm/ubuntu-core-24-amd64.img of=/dev/sdb status=progress; sync

Reference

[1] https://ubuntu.com/core/docs/testing-with-qemu

相关推荐

  1. PYTHON 120道题目详解(97-99

    2024-07-21 14:58:02       37 阅读
  2. Sketch 99.1 for macOS

    2024-07-21 14:58:02       43 阅读
  3. C99 linkedlist 容器实现

    2024-07-21 14:58:02       29 阅读
  4. HJ99 自守数

    2024-07-21 14:58:02       19 阅读
  5. 99个Python脚本实用实例

    2024-07-21 14:58:02       31 阅读
  6. 面试经典150题(90-92)

    2024-07-21 14:58:02       53 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-21 14:58:02       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-21 14:58:02       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-21 14:58:02       45 阅读
  4. Python语言-面向对象

    2024-07-21 14:58:02       55 阅读

热门阅读

  1. 独孤思维:副业赚钱,易如反掌

    2024-07-21 14:58:02       16 阅读
  2. Composition API对比Options API

    2024-07-21 14:58:02       15 阅读
  3. C# 删除DataTable里符合条件的行

    2024-07-21 14:58:02       17 阅读
  4. centos7更换yum源

    2024-07-21 14:58:02       16 阅读
  5. c++应用网络编程之五Windows常用的网络IO模型

    2024-07-21 14:58:02       17 阅读
  6. opencv—常用函数学习_“干货“_12

    2024-07-21 14:58:02       17 阅读
  7. AI文章特点详细分析

    2024-07-21 14:58:02       18 阅读
  8. ubuntu24无法网络无法连接的问题

    2024-07-21 14:58:02       16 阅读
  9. mqtt协议有哪些机制

    2024-07-21 14:58:02       17 阅读