closer to fine
This commit is contained in:
parent
3b7685823c
commit
f5a76919b3
1 changed files with 3 additions and 5 deletions
|
@ -71,9 +71,7 @@ mkdir -p $vm_dir
|
||||||
rm -f $vm_dir/disk
|
rm -f $vm_dir/disk
|
||||||
|
|
||||||
# Create a copy of the base image
|
# Create a copy of the base image
|
||||||
# qemu-img create -f qcow2 -b ${BASE_IMAGE} $vm_dir/disk
|
qemu-img create -f qcow2 -b $image_dir/disk $vm_dir/disk
|
||||||
cp $image_dir/disk $vm_dir/disk
|
|
||||||
cp $image_dir/kernel $vm_dir/kernel
|
|
||||||
|
|
||||||
# Back to devstack
|
# Back to devstack
|
||||||
cd $TOP_DIR
|
cd $TOP_DIR
|
||||||
|
@ -112,8 +110,8 @@ cat > $LIBVIRT_XML <<EOF
|
||||||
<memory>$GUEST_RAM</memory>
|
<memory>$GUEST_RAM</memory>
|
||||||
<os>
|
<os>
|
||||||
<type>hvm</type>
|
<type>hvm</type>
|
||||||
<kernel>$vm_dir/kernel</kernel>
|
<kernel>$image_dir/kernel</kernel>
|
||||||
<cmdline>root=/dev/vda console=ttyS0 init=/usr/lib/cloud-init/uncloud-init ds=nocloud ubuntu-pass=ubuntu</cmdline>
|
<cmdline>root=/dev/vda ro console=ttyS0 init=/usr/lib/cloud-init/uncloud-init ds=nocloud ubuntu-pass=ubuntu</cmdline>
|
||||||
</os>
|
</os>
|
||||||
<features>
|
<features>
|
||||||
<acpi/>
|
<acpi/>
|
||||||
|
|
Loading…
Reference in a new issue