Use debian cloud image under VirtualBox

Use the debian cloud image under VirtualBox to start using

insert image description here

After a day of tossing, I finally got it started with the debian cloud image under VirtualBox, so that I don’t need to install a virtual machine, which greatly saves some time.

what is cloud image

Cloud images are general-purpose images for public cloud users, that is, they can run on cloud servers such as AWS/Azure/Alibaba Cloud/Tencent Cloud. It can be customized and deployed in batches. It is suitable for virtual machine environment. The virtual machine is initialized with cloud-init. This article introduces how to use debian cloud image on the local virtual machine software VirtualBox. Other systems are similar to Ubuntu.

About metadata and userdata

When the cloud host system image is initialized, cloud-init will customize and initialize the system image based on the basic configuration information of the virtual machine at the platform level (namely metadata) and the common configuration information provided by the user, such as username and ssh-key (ie userdata). , see the reference section below for details.

Environmental preparation

Operating System: MacOS Ventura 13.2.1

Virtual machine software: VirtualBox 7

cloud image: https://cloud.debian.org/images/cloud/bullseye/latest/

Here we choosedebian-11-genericcloud-amd64.tar.xz

Guess you like

Origin blog.csdn.net/weixin_43846408/article/details/129739813