ioiioi
(alfiechan)
November 14, 2018, 2:18pm
1
I am confuse about tm_mad_system=“ssh”. I read the official doc
when say “Combining the shared & SSH Transfer Modes”,
Blockquote
To select the (alternate) deployment mode, add the following attribute to the Virtual Machine template:
TM_MAD_SYSTEM=“ssh”
but there is no tm_mad_system option for vm template. and the image datastore does have one. so is it typo or am I missing something?
1 Like
I’d like to know that as well.
Geclaff
(Geclaff)
November 27, 2018, 6:49pm
3
You can simply add this (Advanced mode):
DISK = [
DEV_PREFIX = “sd”,
DRIVER = “qcow2”,
IMAGE = “”,
IMAGE_UNAME = “”,
TM_MAD_SYSTEM = "SSH " ]
ioiioi
(alfiechan)
November 28, 2018, 3:17am
4
well, could you elaborate more detail about tm_mad_system options?
Geclaff
(Geclaff)
November 28, 2018, 8:16am
5
ioiioi
(alfiechan)
November 28, 2018, 9:56am
6
hmm,I just don’t understand when will utilize tm_mad_system, and when will utilize tm_mad.
the official doc does explanation well on this
juanmont
(Juan Jose Montiel Cano)
December 3, 2018, 11:43am
7
I’ll try to explain this option.
If we have 3 datastores: ( 2 Systems datastores and 1 Image Datastore), with these configurations:
TM_MAD=“ssh”
LN_TARGET=“SYSTEM”
CLONE_TARGET=“SYSTEM”
…
System datastore ( shared ):
TM_MAD=“shared”
LN_TARGET=“NONE”
CLONE_TARGET=“SYSTEM”
…
Image Datastore (shared):
TM_MAD = “shared”
LN_TARGET = “NONE”
CLONE_TARGET = “SYSTEM”
TM_MAD_SYSTEM =" ssh"
LN_TARGET_SSH = “SYSTEM”
CLONE_TARGET_SSH =" SYSTEM"
DISK_TYPE_SSH = “FILE”
…
We can have an image saved into image datastore and use this image in a system datastore with the option TM_MAD_SYSTEM, only you need to define this option into your disk definition:
DISK = [
DEV_PREFIX = “sd”,
DRIVER = “shared”,
IMAGE = “”,
IMAGE_UNAME = “”,
TM_MAD_SYSTEM = "SSH " ]
From this time, OpenNebula will use the ssh optons saved into the image datastore to clone the images ( CLONE_TARGET_SSH and LN_TARGET_SSH) , also you need to define a DISK_TYPE_SSH to say to OpenNebula that the new image will be in this format.
All of these configuration need to be defined into oned.conf file.