blob: 4e04c3f9b2b5d440822181e02ef151d52f6f7488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
Copyright (C) 2022 Pasha <pasha@member.fsf.org>
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 <https://www.gnu.org/licenses/>.
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
------------------------------------------------------
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.
|