openstack 命令行手册

创建磁盘(qcow2格式)
qemu-img create -f qcow2 win7.qcow2 100G
系统安装(加载光盘镜像,加载软盘驱动,添加网卡)
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom cn_windows_7_ultimate_x64_dvd_x15-66043.iso -fda virtio-win-1.1.16.vfd -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=cd -nographic -vnc :14 -localtime
网卡驱动
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom virtio-win-0.1-100.iso -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=cd -nographic -vnc :14 -localtime
启动一个系统
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom cn_windows_7_ultimate_x64_dvd_x15-66043.iso -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=d -nographic -vnc :14 -localtime
转换qcow2 到raw
qemu-img convert -f qcow2 -O raw disk disk_base
创建子网
neutron subnet-create --tenant-id $tenantID --gateway 192.168.115.254 --dns-nameserver 192.168.115.254 --allocation-pool start=192.168.118.100,end=192.168.118.110 sharednet1 192.168.112.0/21 
在指定的计算节点启动实例
nova boot --availability-zone nova:computer2 --flavor ugo.large5 --image win2008r2-vs2012-jdk16  --nic net-id=ffb49b72-4f7a-45e8-9601-604609ce802a   --security-group default --key-name supermap-key CI_VC11_JDK16_Server2008_Openstack_UGO7C_2

你可能感兴趣的:(openstack 命令行手册)