OpenStack create windows mirror implementation steps

  • 2020-05-27 07:46:56
  • OfStack

OpenStack creates an windows mirror

Create an windows mirror

Create an img file

kvm-img create -f qcow2 win7.qcow2 30G

Download the virtio driver

wget http://alt.fedoraproject.org/pub/alt/virtio-win/archives/virtio-win-0.1-59/virtio-win-0.1-59.iso
wget http://www.linuxwind.org/download/virtio-win-1.1.16.vfd

Start setup

sudo kvm -m 1024 -cdrom win7.iso -drive file=win7.qcow2,if=virtio,boot=on -fda virtio-win-1.1.16.vfd -boot d -nographic -vnc :0

Access to continue installation steps

I did it under ubuntu, just install one vncview

vncview localhost:5900

The port number here is based on step 1: -vnc :0, or -vnc :1, port 5901

Disk selection during installation

Installation selection disk display is empty, this time need to manually load the driver.

Method load driver - "ok -" floppy disk drive A:- "i386-" > win7- > Continue to

After loading don't worry, because there is no network card drive, use the following way

sudo kvm -m 1024 -cdrom virtio-win-0.1-59.iso -drive file=win7.qcow2,if=virtio,boot=on -net nic,model=virtio -boot d -nographic -net user -usb -usbdevice tablet -vnc :0

After entering the virtual machine, update the network card driver, and then the driver can search from CD-ROM

When you have a customization requirement, you can open it again. The command is as follows

sudo kvm -m 1024 -drive file=win7.qcow2,if=virtio,boot=on -net nic,model=virtio -boot d -nographic -vnc :0

If you used raw before you made it, change it to qcow2

qemu-img convert -f raw -O qcow2 ./win7.img ./win7.qcow2

Upload the windows image

The openstack command is based on the latest documentation, and online blogs are inevitably out of date

glance image-create --name="win7" --is-public=true --container-format=ovf --disk-format=qcow2 < win7.qcow2

Remote desktop connection

Open the xp remote desktop

Close the firewall first and head to the control panel To create a new user in the control panel, a password must be set. Computer - "properties -" remote - "remote desktop -" allows users to connect remotely Check 1 if the service is open: Remote Desktop Help Session Manager and Terminal Services

Open port in openstack (TCP 3389)

Several other commonly used ports

TCP 22 (ssh) ICMP -1 (ping) TCP 3306 (mysql) TCP 3389 (remote desktop)

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: