-
Notifications
You must be signed in to change notification settings - Fork 184
Alexandru Pirvulescu edited this page Mar 24, 2015
·
7 revisions
You've just done your first SDC installation on a single server and discovered that you cannot create VMs. There are two choices:
- make the CN (compute node) explicit when creating the VM in the UI
- enable HN provisioning (from here: https://github.com/joyent/sdc-cnapi/blob/master/docs/index.md#sapi-configuration)
cnapi_svc=$(sdc-sapi /services?name=cnapi | json -Ha uuid)
sdc-sapi /services/$cnapi_svc -X PUT -d '{ "metadata": { "ALLOC_FILTER_HEADNODE": false } }'
You can sacrifice an "OS disk" for that. Assuming you have KVM over IP access on that server, here are the steps:
- download latest SmartOS ISO image from https://us-east.manta.joyent.com/Joyent_Dev/public/SmartOS/smartos-latest.iso
- use "Virtual Media" and attach the ISO image
- boot the server using the Virtual CD and select
noimport
option in GRUB - login into the live image using
root
/root
cd /tmp && curl -k -C - -O https://us-east.manta.joyent.com/Joyent_Dev/public/SmartDataCenter/usb-latest.tgz && tar xzvf usb-latest.tgz
-
dd
the.img
file into your "OS disk". You can display the disks usingformat </dev/null
. For example, usingc0t0d0
as the OS disk, the command would bedd if=name_of_img_file.img of=/dev/rdsk/c0t0d0p0 bs=1024k
- reboot the server using the "OS disk" you just created
- What are the networking requirements for successful communication between SDC and CN? Between SDC datacenters? https://docs.joyent.com/sdc7/sdc7-installation-prerequisites#firewallrules Firewall Rules
The following ports will need to be directly (unproxied) reachable from the new servers outbound to the Internet:
NTP (Port 123)
DNS (Port 53)
HTTP (Port 80)
HTTPS (Port 443)
HTTP Alternate (Port 8080)
- How do I set up communication between datacenters? See doc https://docs.joyent.com/sdc6/smartdatacenter-6-knowledge-base/setting-up-multiple-datacenters
- Provisioning new virtual machines with SSH PKI access. See doc https://docs.joyent.com/jpc/securing-your-infrastructure/managing-authentication/managing-ssh-keys#ManagingSSHKeys-AddinganSSHKey