attempt to run the metadata service
This commit is contained in:
parent
64164078c1
commit
9ed6bbd503
1 changed files with 5 additions and 1 deletions
|
@ -115,7 +115,7 @@ cat > $LIBVIRT_XML <<EOF
|
||||||
<os>
|
<os>
|
||||||
<type>hvm</type>
|
<type>hvm</type>
|
||||||
<kernel>$image_dir/kernel</kernel>
|
<kernel>$image_dir/kernel</kernel>
|
||||||
<cmdline>root=/dev/vda ro 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-net;s=http://192.168.$GUEST.1:4567/ ubuntu-pass=ubuntu</cmdline>
|
||||||
</os>
|
</os>
|
||||||
<features>
|
<features>
|
||||||
<acpi/>
|
<acpi/>
|
||||||
|
@ -154,6 +154,10 @@ cat > $LIBVIRT_XML <<EOF
|
||||||
</domain>
|
</domain>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cp -r $TOOLS_DIR/uec $vm_dir/uec
|
||||||
|
|
||||||
|
(cd $vm_dir/uec; python meta.py 192.168.$GUEST_NETWORK.1:4567 &)
|
||||||
|
|
||||||
# Create the instance
|
# Create the instance
|
||||||
virsh create $vm_dir/libvirt.xml
|
virsh create $vm_dir/libvirt.xml
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue