multipass.run,快速运行一个ubuntu

  • v
    vonsy


    https://multipass.run/
    https://github.com/canonical/multipass

    // To download and launch a fresh Ubuntu VM
    $ multipass launch -n ubuntu-lts
    $ multipass launch -c 2 -m 2G -d 10G -n ubuntu-lts

    // List VMs
    $ multipass list

    // Execute commands in VMs from local system
    $ multipass exec ubuntu-lts -- lsb_release -a

    // Launch Ubuntu VM’s shell
    $ multipass shell ubuntu-lts

    // To list all available VMs
    $ multipass find

    // Create instances with custom specifications (Number of CPUs, hard disk size, and memory size)
    $ multipass launch -c 2 -m 2G -d 20G -n ubuntu-lts

    // Find information of the running instances
    $ multipass info ubuntu-lts

    // Suspend instances
    $ multipass suspend ubuntu-lts

    // Starting and stopping instances
    $ multipass stop ubuntu-lts
    $ multipass start ubuntu-lts

    // Delete VMs
    $ multipass delete ubuntu-lts
    $ multipass purge
  • s
    sandy981
  • 屋大维
    Windows下直接用WSL已经很满意了,启动速度很快。就是要自己下配置文件调一下配色 iOS fly ~
  • c
    cyberkiller
    Windows7失败鸟~~~
  • w
    windirt
    好像还是跟Docker差不多啊,都是一个个的vm
  • 1
    19840315
    回复5#windirt
    docker一般不是vm虽然可以是vm 看了下multipass在linux上就是libvirt或qemu的壳 主要还是针对win和mac用户小尾巴~