Copyright (C) 2022  Pasha 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see  .
GNU Hurd on OpenStack
----------------------
Install GNU Hurd in Qemu and save as qcow2 format.
Traditional way (check cloud_native file for more information)
-------------------
set console output
-------------------
# sed -i 's/{GRUB_CMDLINE_GNUMACH}/{GRUB_CMDLINE_GNUMACH} console=com0/' /etc/grub.d/10_hurd
# export PATH=$PATH:/usr/sbin/:/sbin/
# update-grub
------------------
install packages
------------------
# apt-get install inetutils-tools
--------
turn off
--------
# /sbin/shutdown -h now
------------------
make qcow2 smaller
------------------
virt-sparsify hurd.qcow2 hurdstack.qcow2
------------------------------------------------------
upload your image using openstack cli or web-interface
------------------------------------------------------
$ openstack image create \
  --container-format bare \
  --disk-format qcow2 \
  --property hw_disk_bus=ide \
  --property os_type=linux \
  --property os_distro=debian \
  --property os_admin_user=debian \
  --property os_version='10.12.7' \
  --property hw_vif_model=e1000 \
  --private \
  --file hurdstack.qcow2 \
  hurdstack
If you use web-interface please set the properties using edit button beside the image.
---------------------------------------------------------------------------------------------
start an instance with any flavor (example with m1.nano) using command line or web-interface.
---------------------------------------------------------------------------------------------
$ openstack server create \
  --flavor m1.nano \
  --image hurdstack \
  --nic net-id=44b3993a-60dd-4074-a911-1b9ac4b8b6fa \
  --security-group 8b5d5482-2686-40a8-b394-5c764b6fe310 \
  --key-name mykey hurdstackinstance
--------------------
check  server status
--------------------
# openstack server list
enable port 22 from web-interface or command line for ssh login.
Now, you can ssh to your server.
 
