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.
Customize OpenStack image | Windows10
1. Network preparation
BRCTL show sudo BRCTL addbr br0 sudo BRCTL addif br0 ens33 sudo ifconfig ens33 0.0.0.0 sudo ifconfig br0 192.168.177.137/24 route -n BRCTL show ifconfigCopy the code
2. Create a command
sudo virt-install --connect qemu:///system -n win10 --vcpus=1 -r 2048 \ --disk path=/home/ubuntu/ops/win10.qcow2,format=qcow2,device=disk,size=64,bus=virtio,cache=none \ --disk Path =/home/ubuntu/ops/ cn_windows_10_education_x64_dvD_6847843.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.171. Iso, device = cdrom, perms = rw \ - disk = / home/ubuntu/ops/virtio - win - 0.1.171 _amd64. VFDS, device = floppyCopy the code
Note command: Change the driver version to Windows
3. Load the driver
Select the disk driver and nic driver
- Load the disk driver:
- Loading the NIC driver:
4. View and manage
sudo virt-manager
Copy the code
After the installation and restart, the user may be stuck in “Please wait” due to the low configuration of the host, and then use sudo virt-Manager to close, manage, and continue the previous step of creating a user.