This article describes how to create OpenStack images, including preparing the basic environment and creating images for common types of operating systems. Allows you to install an operating system from scratch and customize OpenStack images.

Nugget Community: Customizing OpenStack Images | tutorial series

Customizing OpenStack images | Environment preparation Customizing OpenStack images | Windows7 Customizing OpenStack images | Windows10 Customizing OpenStack images | Linux Customize an OpenStack image | Windows Server2019


CSDN: OpenStack Image Creation Tutorial guide (full)


Please refer to previous articles to omit some of the preceding steps.

1. Create a hard disk

qemu-img create -f qcow2 -o preallocation=metadata windows_server_2019.qcow2 64G
Copy the code

It is recommended to change the CPU of the following command to 2 memory and change it to 4G

2. Start making

virt-install --connect qemu:///system -n windows_server_2019 \ --vcpus=2 -r 4096 \ --disk path=/home/ubuntu/ops/windows_server_2019.qcow2,format=qcow2,device=disk,size=64,bus=virtio,cache=none \ --disk Path =/home/ubuntu/ops/cn_windows_server_2019_x64_dvd_4de40f33.iso,device=cdrom,perms=rw \ -- VNC --vnclisten=0.0.0.0 \ --os-type windows --os-variant=windows \ --accelerate --network=default,model=virtio \ --disk Path = / home/ubuntu/ops/virtio - win - 0.1.172. Iso, device = cdrom, perms = rw \ - disk = / home/ubuntu/ops/virtio - win - 0.1.172 _amd64. VFDS, device = floppyCopy the code

For configuration reasons, you may need to wait a while before loading here.

(1) Install the secret key and select “I don’t have a product key”.

(2) Installation options

3. Select a driver

For details, see creating a Windows server 2012r2 image for openstack

(1) Disk:

(2) Nic:

4. Start the installation

After the restart is complete, some system configurations are performed.

User name: Administrator

Password: admin @ 123

To complete.

5. File compression

qemu-img convert -O qcow2 windows_server_2019.qcow2 new-windows_server_2019.qcow2
Copy the code