openstack qcow2 image file production_PHP tutorial
Jul 12, 2016 am 09:05 AMopenstack qcow2 image file production
1: Linux image file generationA. Bridge network device script
[root@app10-051 ~]# cat /etc /qemu-ifup
#!/bin/bash
# Bridge network device
switch=br0
if [ -n $1 ];then
ip link set $1 up
brctl addif ${switch} $1
exit 0
else
echo "no interface!"
exit 1
fi
Create qcow2 file
qemu-img create -f qcow2 centos_6. 5.qcow2 20G
Make linux image
/usr/libexec/qemu-kvm -m 1024 -cdrom iso/CentOS-6.5-x86_64-minimal.iso -drive file=centos6.5-30G. qcow2,if=virtio -net nic,model=virtio -net tap,script=no -boot d -nographic -vnc :0
Start the made linux image
/usr/libexec/qemu- kvm -m 4096 -drive file=CentOS6.5-x86_64-30G.qcow2,if=virtio -net nic,model=virtio -net tap -nographic -vnc :0
Two: Make windows image
/usr/libexec/qemu-kvm -m 2048 -cdrom iso/cn_windows_7_ultimate_x64_dvd_x15-66043.iso
-drive file=virtio-win-0.1-74.iso,media=cdrom -drive file=win7. qcow2,if=virtio
-net nic,model=e1000 -net tap,ifname=tap2,script=no -boot d -nographic -vnc :2

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades

Samsung Galaxy S25 Ultra leaks in first render images with rumoured design changes revealed

IFA 2024 | TCL\'s NXTPAPER 14 won\'t match the Galaxy Tab S10 Ultra in performance, but it nearly matches it in size

Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69 mm body

New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades

Samsung Galaxy S24 FE billed to launch for less than expected in four colours and two memory options

Motorola Razr 50s shows itself as possible new budget foldable in early leak

Xiaomi Redmi Note 14 Pro Plus arrives as first Qualcomm Snapdragon 7s Gen 3 smartphone with Light Hunter 800 camera
