Last active
August 29, 2015 14:16
-
-
Save vdemeester/452b7455ac85d904d0c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GuestAdditionsRunLevel=1 | |
GuestAdditionsVersion="4.3.20 r96996" | |
GuestAdditionsFacility_VirtualBox Base Driver=50,1425672347846 | |
GuestAdditionsFacility_Seamless Mode=0,1425672347846 | |
GuestAdditionsFacility_Graphics Mode=0,1425672347846 | |
DEBU[0044] STDERR: | |
DEBU[0044] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 33765 -i /home/vincent/.docker/machine/machines/node3/id_rsa docker@localhost ip addr show dev eth1 | |
DEBU[0044] SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 | |
link/ether 08:00:27:71:a5:87 brd ff:ff:ff:ff:ff:ff | |
inet 192.168.99.104/24 brd 192.168.99.255 scope global eth1 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::a00:27ff:fe71:a587/64 scope link | |
valid_lft forever preferred_lft forever | |
END SSH | |
DEBU[0044] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 33765 -i /home/vincent/.docker/machine/machines/node3/id_rsa docker@localhost echo "EXTRA_ARGS='--tlsverify --tlscacert=/var/lib/boot2docker/ca.pem --tlskey=/var/lib/boot2docker/server-key.pem --tlscert=/var/lib/boot2docker/server.pem --label=provider=virtualbox -H tcp://0.0.0.0:2376' | |
CACERT=/var/lib/boot2docker/ca.pem | |
SERVERCERT=/var/lib/boot2docker/server-key.pem | |
SERVERKEY=/var/lib/boot2docker/server.pem | |
DOCKER_TLS=no" | sudo tee -a /var/lib/boot2docker/profile | |
EXTRA_ARGS='--tlsverify --tlscacert=/var/lib/boot2docker/ca.pem --tlskey=/var/lib/boot2docker/server-key.pem --tlscert=/var/lib/boot2docker/server.pem --label=provider=virtualbox -H tcp://0.0.0.0:2376' | |
CACERT=/var/lib/boot2docker/ca.pem | |
SERVERCERT=/var/lib/boot2docker/server-key.pem | |
SERVERKEY=/var/lib/boot2docker/server.pem | |
DOCKER_TLS=no | |
DEBU[0044] Starting Docker... | |
DEBU[0044] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 33765 -i /home/vincent/.docker/machine/machines/node3/id_rsa docker@localhost sudo /etc/init.d/docker start | |
INFO[0044] Configuring Swarm... | |
DEBU[0044] executing: /usr/bin/VBoxManage showvminfo node3 --machinereadable | |
DEBU[0044] STDOUT: name="node3" | |
groups="/" | |
ostype="Linux 2.6 / 3.x (64 bit)" | |
UUID="a4294e8a-4f56-4584-a41c-0d9044c90a10" | |
CfgFile="/home/vincent/.docker/machine/machines/node3/node3/node3.vbox" | |
SnapFldr="/home/vincent/.docker/machine/machines/node3/node3/Snapshots" | |
LogFldr="/home/vincent/.docker/machine/machines/node3/node3/Logs" | |
hardwareuuid="a4294e8a-4f56-4584-a41c-0d9044c90a10" | |
memory=512 | |
pagefusion="off" | |
vram=8 | |
cpuexecutioncap=100 | |
hpet="on" | |
chipset="piix3" | |
firmware="BIOS" | |
cpus=4 | |
pae="on" | |
longmode="on" | |
synthcpu="off" | |
bootmenu="disabled" | |
boot1="dvd" | |
boot2="dvd" | |
boot3="disk" | |
boot4="none" | |
acpi="on" | |
ioapic="on" | |
biossystemtimeoffset=0 | |
rtcuseutc="on" | |
hwvirtex="on" | |
nestedpaging="on" | |
largepages="on" | |
vtxvpid="on" | |
vtxux="on" | |
VMState="running" | |
VMStateChangeTime="2015-03-06T20:05:30.768000000" | |
monitorcount=1 | |
accelerate3d="off" | |
accelerate2dvideo="off" | |
teleporterenabled="off" | |
teleporterport=0 | |
teleporteraddress="" | |
teleporterpassword="" | |
tracing-enabled="off" | |
tracing-allow-vm-access="off" | |
tracing-config="" | |
autostart-enabled="off" | |
autostart-delay=0 | |
defaultfrontend="" | |
storagecontrollername0="SATA" | |
storagecontrollertype0="IntelAhci" | |
storagecontrollerinstance0="0" | |
storagecontrollermaxportcount0="30" | |
storagecontrollerportcount0="30" | |
storagecontrollerbootable0="on" | |
"SATA-0-0"="/home/vincent/.docker/machine/machines/node3/boot2docker.iso" | |
"SATA-ImageUUID-0-0"="cf112e49-a485-46e6-8ed1-9f07c10969a8" | |
"SATA-tempeject"="off" | |
"SATA-IsEjected"="off" | |
"SATA-1-0"="/home/vincent/.docker/machine/machines/node3/disk.vmdk" | |
"SATA-ImageUUID-1-0"="4bf6542b-ce2c-44df-a12e-dcaff0d1854f" | |
"SATA-2-0"="none" | |
"SATA-3-0"="none" | |
"SATA-4-0"="none" | |
"SATA-5-0"="none" | |
"SATA-6-0"="none" | |
"SATA-7-0"="none" | |
"SATA-8-0"="none" | |
"SATA-9-0"="none" | |
"SATA-10-0"="none" | |
"SATA-11-0"="none" | |
"SATA-12-0"="none" | |
"SATA-13-0"="none" | |
"SATA-14-0"="none" | |
"SATA-15-0"="none" | |
"SATA-16-0"="none" | |
"SATA-17-0"="none" | |
"SATA-18-0"="none" | |
"SATA-19-0"="none" | |
"SATA-20-0"="none" | |
"SATA-21-0"="none" | |
"SATA-22-0"="none" | |
"SATA-23-0"="none" | |
"SATA-24-0"="none" | |
"SATA-25-0"="none" | |
"SATA-26-0"="none" | |
"SATA-27-0"="none" | |
"SATA-28-0"="none" | |
"SATA-29-0"="none" | |
natnet1="nat" | |
macaddress1="0800274D88A8" | |
cableconnected1="on" | |
nic1="nat" | |
nictype1="virtio" | |
nicspeed1="0" | |
mtu="0" | |
sockSnd="64" | |
sockRcv="64" | |
tcpWndSnd="64" | |
tcpWndRcv="64" | |
Forwarding(0)="ssh,tcp,127.0.0.1,33765,,22" | |
hostonlyadapter2="vboxnet0" | |
macaddress2="08002771A587" | |
cableconnected2="on" | |
nic2="hostonly" | |
nictype2="virtio" | |
nicspeed2="0" | |
nic3="none" | |
nic4="none" | |
nic5="none" | |
nic6="none" | |
nic7="none" | |
nic8="none" | |
hidpointing="ps2mouse" | |
hidkeyboard="ps2kbd" | |
uart1="off" | |
uart2="off" | |
lpt1="off" | |
lpt2="off" | |
audio="none" | |
clipboard="disabled" | |
draganddrop="disabled" | |
SessionType="headless" | |
VideoMode="720,400,0"@0,0 | |
vrde="off" | |
usb="off" | |
ehci="off" | |
VRDEActiveConnection="off" | |
VRDEClients=0 | |
vcpenabled="off" | |
vcpscreens=0 | |
vcpfile="/home/vincent/.docker/machine/machines/node3/node3/node3.webm" | |
vcpwidth=1024 | |
vcpheight=768 | |
vcprate=512 | |
vcpfps=25 | |
GuestMemoryBalloon=0 | |
GuestOSType="Linux26_64" | |
GuestAdditionsRunLevel=1 | |
GuestAdditionsVersion="4.3.20 r96996" | |
GuestAdditionsFacility_VirtualBox Base Driver=50,1425672347846 | |
GuestAdditionsFacility_Seamless Mode=0,1425672347846 | |
GuestAdditionsFacility_Graphics Mode=0,1425672347846 | |
DEBU[0044] STDERR: | |
DEBU[0044] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 33765 -i /home/vincent/.docker/machine/machines/node3/id_rsa docker@localhost ip addr show dev eth1 | |
DEBU[0044] SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 | |
link/ether 08:00:27:71:a5:87 brd ff:ff:ff:ff:ff:ff | |
inet 192.168.99.104/24 brd 192.168.99.255 scope global eth1 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::a00:27ff:fe71:a587/64 scope link | |
valid_lft forever preferred_lft forever | |
END SSH | |
DEBU[0044] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 33765 -i /home/vincent/.docker/machine/machines/node3/id_rsa docker@localhost sudo docker pull swarm:latest | |
511136ea3c5a: Pulling fs layer | |
ae115241d78a: Pulling fs layer | |
f49087514537: Pulling fs layer | |
fff73787bd9f: Pulling fs layer | |
97c8f6e912d7: Pulling fs layer | |
33f9d1e808cf: Pulling fs layer | |
62860d7acc87: Pulling fs layer | |
bf8b6923851d: Pulling fs layer | |
62860d7acc87: Verifying Checksum | |
62860d7acc87: Download complete | |
33f9d1e808cf: Verifying Checksum | |
33f9d1e808cf: Download complete | |
511136ea3c5a: Verifying Checksum | |
511136ea3c5a: Download complete | |
97c8f6e912d7: Verifying Checksum | |
97c8f6e912d7: Download complete | |
511136ea3c5a: Pull complete | |
fff73787bd9f: Verifying Checksum | |
fff73787bd9f: Download complete | |
bf8b6923851d: Verifying Checksum | |
bf8b6923851d: Download complete | |
f49087514537: Verifying Checksum | |
f49087514537: Download complete | |
ae115241d78a: Verifying Checksum | |
ae115241d78a: Download complete | |
ae115241d78a: Pull complete | |
f49087514537: Pull complete | |
fff73787bd9f: Pull complete | |
97c8f6e912d7: Pull complete | |
33f9d1e808cf: Pull complete | |
62860d7acc87: Pull complete | |
bf8b6923851d: Pull complete | |
swarm:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security. | |
Status: Downloaded newer image for swarm:latest | |
DEBU[0236] launching swarm node | |
EBU[0236] node args: --addr 192.168.99.104:2376 token://2f821211c1d5a4e95fab7540a944dfab | |
DEBU[0236] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 33765 -i /home/vincent/.docker/machine/machines/node3/id_rsa docker@localhost sudo docker run -d --restart=always --name swarm-agent -v /var/lib/boot2docker:/var/lib/boot2docker swarm:latest join --addr 192.168. 9.104:2376 token://2f821211c1d5a4e95fab7540a944dfab | |
1343edb7a8dba9f12cad777c343196d04eefb057aa30661a61e3b8d1cf0bb057 | |
INFO[0237] "node3" has been created and is now the active machine. | |
INFO[0237] To point your Docker client at it, run this in your shell: $(docker-machine env node3) | |
Wait 5s to let docker engine start.. | |
../../../images/ | |
postgres.tar.xz redis.tar.xz registry.tar.xz zenika_nc-avance-solution.tar.xz | |
Wait a bit.. to let Virtualbox breath.. | |
DEBU[0000] executing: /usr/bin/VBoxManage | |
DEBU[0000] STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 4.3.22_OSE | |
(C) 2005-2015 Oracle Corporation | |
All rights reserved. | |
Usage: | |
VBoxManage [<general option>] <command> | |
General Options: | |
[-v|--version] print version number and exit | |
[-q|--nologo] suppress the logo | |
[--settingspw <pw>] provide the settings password | |
[--settingspwfile <file>] provide a file containing the settings password | |
Commands: | |
list [--long|-l] vms|runningvms|ostypes|hostdvds|hostfloppies| | |
intnets|bridgedifs|hostonlyifs|natnets|dhcpservers| | |
hostinfo|hostcpuids|hddbackends|hdds|dvds|floppies| | |
usbhost|usbfilters|systemproperties|extpacks| | |
groups|webcams | |
showvminfo <uuid|vmname> [--details] | |
[--machinereadable] | |
showvminfo <uuid|vmname> --log <idx> | |
registervm <filename> | |
unregistervm <uuid|vmname> [--delete] | |
createvm --name <name> | |
[--groups <group>, ...] | |
[--ostype <ostype>] | |
[--register] | |
[--basefolder <path>] | |
[--uuid <uuid>] | |
modifyvm <uuid|vmname> | |
[--name <name>] | |
[--groups <group>, ...] | |
[--description <desc>] | |
[--ostype <ostype>] | |
[--iconfile <filename>] | |
[--memory <memorysize in MB>] | |
[--pagefusion on|off] | |
[--vram <vramsize in MB>] | |
[--acpi on|off] | |
[--pciattach 03:04.0] | |
[--pciattach 03:04.0@02:01.0] | |
[--pcidetach 03:04.0] | |
[--ioapic on|off] | |
[--hpet on|off] | |
[--triplefaultreset on|off] | |
[--hwvirtex on|off] | |
[--nestedpaging on|off] | |
[--largepages on|off] | |
[--vtxvpid on|off] | |
[--vtxux on|off] | |
[--pae on|off] | |
[--longmode on|off] | |
[--synthcpu on|off] | |
[--cpuidset <leaf> <eax> <ebx> <ecx> <edx>] | |
[--cpuidremove <leaf>] | |
[--cpuidremoveall] | |
[--hardwareuuid <uuid>] | |
[--cpus <number>] | |
[--cpuhotplug on|off] | |
[--plugcpu <id>] | |
[--unplugcpu <id>] | |
[--cpuexecutioncap <1-100>] | |
[--rtcuseutc on|off] | |
[--graphicscontroller none|vboxvga|vmsvga] | |
[--monitorcount <number>] | |
[--accelerate3d on|off] | |
[--accelerate2dvideo on|off] | |
[--firmware bios|efi|efi32|efi64] | |
[--chipset ich9|piix3] | |
[--bioslogofadein on|off] | |
[--bioslogofadeout on|off] | |
[--bioslogodisplaytime <msec>] | |
[--bioslogoimagepath <imagepath>] | |
[--biosbootmenu disabled|menuonly|messageandmenu] | |
[--biossystemtimeoffset <msec>] | |
[--biospxedebug on|off] | |
[--boot<1-4> none|floppy|dvd|disk|net>] | |
[--nic<1-N> none|null|nat|bridged|intnet|hostonly| | |
generic|natnetwork] | |
[--nictype<1-N> Am79C970A|Am79C973| | |
82540EM|82543GC|82545EM| | |
virtio] | |
[--cableconnected<1-N> on|off] | |
[--nictrace<1-N> on|off] | |
[--nictracefile<1-N> <filename>] | |
[--nicproperty<1-N> name=[value]] | |
[--nicspeed<1-N> <kbps>] | |
[--nicbootprio<1-N> <priority>] | |
[--nicpromisc<1-N> deny|allow-vms|allow-all] | |
[--nicbandwidthgroup<1-N> none|<name>] | |
[--bridgeadapter<1-N> none|<devicename>] | |
[--hostonlyadapter<1-N> none|<devicename>] | |
[--intnet<1-N> <network name>] | |
[--nat-network<1-N> <network name>] | |
[--nicgenericdrv<1-N> <driver> | |
[--natnet<1-N> <network>|default] | |
[--natsettings<1-N> [<mtu>],[<socksnd>], | |
[<sockrcv>],[<tcpsnd>], | |
[<tcprcv>]] | |
[--natpf<1-N> [<rulename>],tcp|udp,[<hostip>], | |
<hostport>,[<guestip>],<guestport>] | |
[--natpf<1-N> delete <rulename>] | |
[--nattftpprefix<1-N> <prefix>] | |
[--nattftpfile<1-N> <file>] | |
[--nattftpserver<1-N> <ip>] | |
[--natbindip<1-N> <ip> | |
[--natdnspassdomain<1-N> on|off] | |
[--natdnsproxy<1-N> on|off] | |
[--natdnshostresolver<1-N> on|off] | |
[--nataliasmode<1-N> default|[log],[proxyonly], | |
[sameports]] | |
[--macaddress<1-N> auto|<mac>] | |
[--mouse ps2|usb|usbtablet|usbmultitouch] | |
[--keyboard ps2|usb | |
[--uart<1-N> off|<I/O base> <IRQ>] | |
[--uartmode<1-N> disconnected| | |
server <pipe>| | |
client <pipe>| | |
file <file>| | |
<devicename>] | |
[--lpt<1-N> off|<I/O base> <IRQ>] | |
[--lptmode<1-N> <devicename>] | |
[--guestmemoryballoon <balloonsize in MB>] | |
[--audio none|null|oss|alsa|pulse] | |
[--audiocontroller ac97|hda|sb16] | |
[--clipboard disabled|hosttoguest|guesttohost| | |
bidirectional] | |
[--draganddrop disabled|hosttoguest | |
[--vrde on|off] | |
[--vrdeextpack default|<name> | |
[--vrdeproperty <name=[value]>] | |
[--vrdeport <hostport>] | |
[--vrdeaddress <hostip>] | |
[--vrdeauthtype null|external|guest] | |
[--vrdeauthlibrary default|<name> | |
[--vrdemulticon on|off] | |
[--vrdereusecon on|off] | |
[--vrdevideochannel on|off] | |
[--vrdevideochannelquality <percent>] | |
[--usb on|off] | |
[--usbehci on|off] | |
[--snapshotfolder default|<path>] | |
[--teleporter on|off] | |
[--teleporterport <port>] | |
[--teleporteraddress <address|empty> | |
[--teleporterpassword <password>] | |
[--teleporterpasswordfile <file>|stdin] | |
[--tracing-enabled on|off] | |
[--tracing-config <config-string>] | |
[--tracing-allow-vm-access on|off] | |
[--usbcardreader on|off] | |
[--autostart-enabled on|off] | |
[--autostart-delay <seconds>] | |
[--vcpenabled on|off] | |
[--vcpscreens [<display>],... | |
[--vcpfile <filename>] | |
[--vcpwidth <width>] | |
[--vcpheight <height>] | |
[--vcprate <rate>] | |
[--vcpfps <fps>] | |
[--defaultfrontend default|<name>] | |
clonevm <uuid|vmname> | |
[--snapshot <uuid>|<name>] | |
[--mode machine|machineandchildren|all] | |
[--options link|keepallmacs|keepnatmacs| | |
keepdisknames] | |
[--name <name>] | |
[--groups <group>, ...] | |
[--basefolder <basefolder>] | |
[--uuid <uuid>] | |
[--register] | |
import <ovfname/ovaname> | |
[--dry-run|-n] | |
[--options keepallmacs|keepnatmacs] | |
[more options] | |
(run with -n to have options displayed | |
for a particular OVF) | |
export <machines> --output|-o <name>.<ovf/ova> | |
[--legacy09|--ovf09|--ovf10|--ovf20] | |
[--manifest] | |
[--iso] | |
[--options manifest|iso|nomacs|nomacsbutnat] | |
[--vsys <number of virtual system>] | |
[--product <product name>] | |
[--producturl <product url>] | |
[--vendor <vendor name>] | |
[--vendorurl <vendor url>] | |
[--version <version info>] | |
[--description <description info>] | |
[--eula <license text>] | |
[--eulafile <filename>] | |
startvm <uuid|vmname>... | |
[--type gui|sdl|headless] | |
controlvm <uuid|vmname> | |
pause|resume|reset|poweroff|savestate| | |
acpipowerbutton|acpisleepbutton| | |
keyboardputscancode <hex> [<hex> ...]| | |
setlinkstate<1-N> on|off | | |
nic<1-N> null|nat|bridged|intnet|hostonly|generic| | |
natnetwork [<devicename>] | | |
nictrace<1-N> on|off | | |
nictracefile<1-N> <filename> | | |
nicproperty<1-N> name=[value] | | |
nicpromisc<1-N> deny|allow-vms|allow-all | | |
natpf<1-N> [<rulename>],tcp|udp,[<hostip>], | |
<hostport>,[<guestip>],<guestport> | | |
natpf<1-N> delete <rulename> | | |
guestmemoryballoon <balloonsize in MB> | | |
usbattach <uuid>|<address> | | |
usbdetach <uuid>|<address> | | |
clipboard disabled|hosttoguest|guesttohost| | |
bidirectional | | |
draganddrop disabled|hosttoguest | | |
vrde on|off | | |
vrdeport <port> | | |
vrdeproperty <name=[value]> | | |
vrdevideochannelquality <percent> | | |
setvideomodehint <xres> <yres> <bpp> | |
[[<display>] [<enabled:yes|no> | | |
[<xorigin> <yorigin>]]] | | |
screenshotpng <file> [display] | | |
vcpenabled on|off | | |
vcpscreens all|none|<screen>,[<screen>...] | | |
setcredentials <username> | |
--passwordfile <file> | <password> | |
<domain> | |
[--allowlocallogon <yes|no>] | | |
teleport --host <name> --port <port> | |
[--maxdowntime <msec>] | |
[--passwordfile <file> | | |
--password <password>] | | |
plugcpu <id> | | |
unplugcpu <id> | | |
cpuexecutioncap <1-100> | |
webcam <attach [path [settings]]> | <detach [path]> | <list> | |
discardstate <uuid|vmname> | |
adoptstate <uuid|vmname> <state_file> | |
snapshot <uuid|vmname> | |
take <name> [--description <desc>] [--live] | | |
delete <uuid|snapname> | | |
restore <uuid|snapname> | | |
restorecurrent | | |
edit <uuid|snapname>|--current | |
[--name <name>] | |
[--description <desc>] | | |
list [--details|--machinereadable] | |
showvminfo <uuid|snapname> | |
closemedium disk|dvd|floppy <uuid|filename> | |
[--delete] | |
storageattach <uuid|vmname> | |
--storagectl <name> | |
[--port <number>] | |
[--device <number>] | |
[--type dvddrive|hdd|fdd] | |
[--medium none|emptydrive|additions| | |
<uuid|filename>|host:<drive>|iscsi] | |
[--mtype normal|writethrough|immutable|shareable| | |
readonly|multiattach] | |
[--comment <text>] | |
[--setuuid <uuid>] | |
[--setparentuuid <uuid>] | |
[--passthrough on|off] | |
[--tempeject on|off] | |
[--nonrotational on|off] | |
[--discard on|off] | |
[--bandwidthgroup <name>] | |
[--forceunmount] | |
[--server <name>|<ip>] | |
[--target <target>] | |
[--tport <port>] | |
[--lun <lun>] | |
[--encodedlun <lun>] | |
[--username <username>] | |
[--password <password>] | |
[--initiator <initiator>] | |
[--intnet] | |
storagectl <uuid|vmname> | |
--name <name> | |
[--add ide|sata|scsi|floppy|sas] | |
[--controller LSILogic|LSILogicSAS|BusLogic| | |
IntelAHCI|PIIX3|PIIX4|ICH6|I82078] | |
[--portcount <1-30>] | |
[--hostiocache on|off] | |
[--bootable on|off] | |
[--remove] | |
bandwidthctl <uuid|vmname> | |
add <name> --type disk|network | |
--limit <megabytes per second>[k|m|g|K|M|G] | | |
set <name> | |
--limit <megabytes per second>[k|m|g|K|M|G] | | |
remove <name> | | |
list [--machinereadable] | |
(limit units: k=kilobit, m=megabit, g=gigabit, | |
K=kilobyte, M=megabyte, G=gigabyte) | |
showhdinfo <uuid|filename> | |
createhd --filename <filename> | |
[--size <megabytes>|--sizebyte <bytes>] | |
[--diffparent <uuid>|<filename> | |
[--format VDI|VMDK|VHD] (default: VDI) | |
[--variant Standard,Fixed,Split2G,Stream,ESX] | |
modifyhd <uuid|filename> | |
[--type normal|writethrough|immutable|shareable| | |
readonly|multiattach] | |
[--autoreset on|off] | |
[--property <name=[value]>] | |
[--compact] | |
[--resize <megabytes>|--resizebyte <bytes>] | |
clonehd <uuid|inputfile> <uuid|outputfile> | |
[--format VDI|VMDK|VHD|RAW|<other>] | |
[--variant Standard,Fixed,Split2G,Stream,ESX] | |
[--existing] | |
convertfromraw <filename> <outputfile> | |
[--format VDI|VMDK|VHD] | |
[--variant Standard,Fixed,Split2G,Stream,ESX] | |
[--uuid <uuid>] | |
convertfromraw stdin <outputfile> <bytes> | |
[--format VDI|VMDK|VHD] | |
[--variant Standard,Fixed,Split2G,Stream,ESX] | |
[--uuid <uuid>] | |
getextradata global|<uuid|vmname> | |
<key>|enumerate | |
setextradata global|<uuid|vmname> | |
<key> | |
[<value>] (no value deletes key) | |
setproperty machinefolder default|<folder> | | |
hwvirtexclusive on|off | | |
vrdeauthlibrary default|<library> | | |
websrvauthlibrary default|null|<library> | | |
vrdeextpack null|<library> | | |
autostartdbpath null|<folder> | | |
loghistorycount <value> | |
defaultfrontend default|<name> | |
usbfilter add <index,0-N> | |
--target <uuid|vmname>|global | |
--name <string> | |
--action ignore|hold (global filters only) | |
[--active yes|no] (yes) | |
[--vendorid <XXXX>] (null) | |
[--productid <XXXX>] (null) | |
[--revision <IIFF>] (null) | |
[--manufacturer <string>] (null) | |
[--product <string>] (null) | |
[--remote yes|no] (null, VM filters only) | |
[--serialnumber <string>] (null) | |
[--maskedinterfaces <XXXXXXXX>] | |
usbfilter modify <index,0-N> | |
--target <uuid|vmname>|global | |
[--name <string>] | |
[--action ignore|hold] (global filters only) | |
[--active yes|no] | |
[--vendorid <XXXX>|""] | |
[--productid <XXXX>|""] | |
[--revision <IIFF>|""] | |
[--manufacturer <string>|""] | |
[--product <string>|""] | |
[--remote yes|no] (null, VM filters only) | |
[--serialnumber <string>|""] | |
[--maskedinterfaces <XXXXXXXX>] | |
usbfilter remove <index,0-N> | |
--target <uuid|vmname>|global | |
sharedfolder add <uuid|vmname> | |
--name <name> --hostpath <hostpath> | |
[--transient] [--readonly] [--automount] | |
sharedfolder remove <uuid|vmname> | |
--name <name> [--transient] | |
guestproperty get <uuid|vmname> | |
<property> [--verbose] | |
guestproperty set <uuid|vmname> | |
<property> [<value> [--flags <flags>]] | |
guestproperty delete|unset <uuid|vmname> | |
<property> | |
guestproperty enumerate <uuid|vmname> | |
[--patterns <patterns>] | |
guestproperty wait <uuid|vmname> <patterns> | |
[--timeout <msec>] [--fail-on-timeout] | |
guestcontrol <uuid|vmname> | |
exec[ute] | |
--image <path to program> --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--domain <domain>] [--verbose] [--timeout <msec>] | |
[--environment "<NAME>=<VALUE> [<NAME>=<VALUE>]"] | |
[--wait-exit] [--wait-stdout] [--wait-stderr] | |
[--dos2unix] [--unix2dos] | |
[-- [<argument1>] ... [<argumentN>]] | |
copyfrom | |
<guest source> <host dest> --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--domain <domain>] [--verbose] | |
[--dryrun] [--follow] [--recursive] | |
copyto|cp | |
<host source> <guest dest> --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--domain <domain>] [--verbose] | |
[--dryrun] [--follow] [--recursive] | |
createdir[ectory]|mkdir|md | |
<guest directory>... --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--domain <domain>] [--verbose] | |
[--parents] [--mode <mode>] | |
removedir[ectory]|rmdir | |
<guest directory>... --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--domain <domain>] [--verbose] | |
[--recursive|-R|-r] | |
removefile|rm | |
<guest file>... --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--domain <domain>] [--verbose] | |
ren[ame]|mv | |
<source>... <dest> --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--domain <domain>] [--verbose] | |
createtemp[orary]|mktemp | |
<template> --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--directory] [--secure] [--tmpdir <directory>] | |
[--domain <domain>] [--mode <mode>] [--verbose] | |
list <all|sessions|processes|files> [--verbose] | |
process kill --session-id <ID> | |
| --session-name <name or pattern> | |
[--verbose] | |
<PID> ... <PID n> | |
[p[s]]kill --session-id <ID> | |
| --session-name <name or pattern> | |
[--verbose] | |
<PID> ... <PID n> | |
session close --session-id <ID> | |
| --session-name <name or pattern> | |
| --all | |
[--verbose] | |
stat | |
<file>... --username <name> | |
[--passwordfile <file> | --password <password>] | |
[--domain <domain>] [--verbose] | |
updateadditions | |
[--source <guest additions .ISO>] [--verbose] | |
[--wait-start] | |
[-- [<argument1>] ... [<argumentN>]] | |
watch [--verbose] | |
debugvm <uuid|vmname> | |
dumpguestcore --filename <name> | | |
info <item> [args] | | |
injectnmi | | |
log [--release|--debug] <settings> ...| | |
logdest [--release|--debug] <settings> ...| | |
logflags [--release|--debug] <settings> ...| | |
osdetect | | |
osinfo | | |
getregisters [--cpu <id>] <reg>|all ... | | |
setregisters [--cpu <id>] <reg>=<value> ... | | |
show [--human-readable|--sh-export|--sh-eval| | |
--cmd-set] | |
<logdbg-settings|logrel-settings> | |
[[opt] what ...] | | |
statistics [--reset] [--pattern <pattern>] | |
[--descriptions] | |
metrics list [*|host|<vmname> [<metric_list>]] | |
(comma-separated) | |
metrics setup | |
[--period <seconds>] (default: 1) | |
[--samples <count>] (default: 1) | |
[--list] | |
[*|host|<vmname> [<metric_list>]] | |
metrics query [*|host|<vmname> [<metric_list>]] | |
metrics enable | |
[--list] | |
[*|host|<vmname> [<metric_list>]] | |
metrics disable | |
[--list] | |
[*|host|<vmname> [<metric_list>]] | |
metrics collect | |
[--period <seconds>] (default: 1) | |
[--samples <count>] (default: 1) | |
[--list] | |
[--detach] | |
[*|host|<vmname> [<metric_list>]] | |
natnetwork add --netname <name> | |
--network <network> | |
[--enable|--disable] | |
[--dhcp on|off] | |
[--port-forward-4 <rule>] | |
[--loopback-4 <rule>] | |
[--ipv6 on|off] | |
[--port-forward-6 <rule>] | |
[--loopback-6 <rule>] | |
natnetwork remove --netname <name> | |
natnetwork modify --netname <name> | |
[--network <network>] | |
[--enable|--disable] | |
[--dhcp on|off] | |
[--port-forward-4 <rule>] | |
[--loopback-4 <rule>] | |
[--ipv6 on|off] | |
[--port-forward-6 <rule>] | |
[--loopback-6 <rule>] | |
natnetwork start --netname <name> | |
natnetwork stop --netname <name> | |
hostonlyif ipconfig <name> | |
[--dhcp | | |
--ip<ipv4> [--netmask<ipv4> (def: 255.255.255.0)] | | |
--ipv6<ipv6> [--netmasklengthv6<length> (def: 64)]] | |
create | | |
remove <name> | |
dhcpserver add|modify --netname <network_name> | | |
--ifname <hostonly_if_name> | |
[--ip <ip_address> | |
--netmask <network_mask> | |
--lowerip <lower_ip> | |
--upperip <upper_ip>] | |
[--enable | --disable] | |
dhcpserver remove --netname <network_name> | | |
--ifname <hostonly_if_name> | |
extpack install [--replace] <tarball> | | |
uninstall [--force] <name> | | |
cleanup | |
DEBU[0000] STDERR: | |
INFO[0001] Creating SSH key... | |
DEBU[0001] executing: /usr/bin/ssh-keygen ssh-keygen -t rsa -N -f /home/vincent/.docker/machine/machines/node4/id_rsa | |
Generating public/private rsa key pair. | |
Your identification has been saved in /home/vincent/.docker/machine/machines/node4/id_rsa. | |
Your public key has been saved in /home/vincent/.docker/machine/machines/node4/id_rsa.pub. | |
The key fingerprint is: | |
31:e9:8d:38:f2:01:6c:62:a7:6b:30:3f:8a:0e:a5:b7 vincent@hokkaido | |
The key's randomart image is: | |
+---[RSA 2048]----+ | |
| | | |
| . . | | |
| o = + | | |
| . = . o = | | |
|o o . + S . | | |
| * . o o | | |
|o * . | | |
|o+ o | | |
|+.E | | |
+-----------------+ | |
INFO[0001] Creating VirtualBox VM... | |
DEBU[0001] Creating 6000 MB hard disk image... | |
Converting from raw image file="stdin" to file="/home/vincent/.docker/machine/machines/node4/disk.vmdk"... | |
Creating dynamic image with size 6291456000 bytes (6000MB)... | |
DEBU[0004] executing: /usr/bin/VBoxManage createvm --basefolder /home/vincent/.docker/machine/machines/node4 --name node4 --register | |
DEBU[0004] STDOUT: Virtual machine 'node4' is created and registered. | |
UUID: dee61fdf-b700-4178-8874-a9aa6d55868b | |
Settings file: '/home/vincent/.docker/machine/machines/node4/node4/node4.vbox' | |
DEBU[0004] STDERR: | |
DEBU[0004] executing: /usr/bin/VBoxManage modifyvm node4 --firmware bios --bioslogofadein off --bioslogofadeout off --natdnshostresolver1 on --bioslogodisplaytime 0 --biosbootmenu disabled --ostype Linux26_64 --cpus 4 --memory 512 --acpi on --ioapic on --rtcuseutc on --cpuhotplug off --pae on --synthcpu off --hpet on --hwvirtex on --nestedpaging on --largepages on --vtxvpid on --accelerate3d off --boot1 dvd | |
DEBU[0004] STDOUT: | |
DEBU[0004] STDERR: | |
DEBU[0004] executing: /usr/bin/VBoxManage modifyvm node4 --nic1 nat --nictype1 virtio --cableconnected1 on | |
DEBU[0004] STDOUT: | |
DEBU[0004] STDERR: | |
DEBU[0004] executing: /usr/bin/VBoxManage modifyvm node4 --natpf1 ssh,tcp,127.0.0.1,36139,,22 | |
DEBU[0004] STDOUT: | |
DEBU[0004] STDERR: | |
DEBU[0004] executing: /usr/bin/VBoxManage list hostonlyifs | |
DEBU[0005] STDOUT: Name: vboxnet0 | |
GUID: 786f6276-656e-4074-8000-0a0027000000 | |
DHCP: Disabled | |
IPAddress: 192.168.99.1 | |
NetworkMask: 255.255.255.0 | |
IPV6Address: fe80:0000:0000:0000:0800:27ff:fe00:0000 | |
IPV6NetworkMaskPrefixLength: 64 | |
HardwareAddress: 0a:00:27:00:00:00 | |
MediumType: Ethernet | |
Status: Up | |
VBoxNetworkName: HostInterfaceNetworking-vboxnet0 | |
DEBU[0005] STDERR: | |
DEBU[0005] executing: /usr/bin/VBoxManage modifyvm node4 --nic2 hostonly --nictype2 virtio --hostonlyadapter2 vboxnet0 --cableconnected2 on | |
DEBU[0005] STDOUT: | |
DEBU[0005] STDERR: | |
DEBU[0005] executing: /usr/bin/VBoxManage storagectl node4 --name SATA --add sata --hostiocache on | |
DEBU[0005] STDOUT: | |
DEBU[0005] STDERR: | |
DEBU[0005] executing: /usr/bin/VBoxManage storageattach node4 --storagectl SATA --port 0 --device 0 --type dvddrive --medium /home/vincent/.docker/machine/machines/node4/boot2docker.iso | |
DEBU[0005] STDOUT: | |
DEBU[0005] STDERR: | |
DEBU[0005] executing: /usr/bin/VBoxManage storageattach node4 --storagectl SATA --port 1 --device 0 --type hdd --medium /home/vincent/.docker/machine/machines/node4/disk.vmdk | |
DEBU[0005] STDOUT: | |
DEBU[0005] STDERR: | |
DEBU[0005] executing: /usr/bin/VBoxManage guestproperty set node4 /VirtualBox/GuestAdd/SharedFolders/MountPrefix / | |
DEBU[0005] STDOUT: | |
DEBU[0005] STDERR: | |
DEBU[0005] executing: /usr/bin/VBoxManage guestproperty set node4 /VirtualBox/GuestAdd/SharedFolders/MountDir / | |
DEBU[0005] STDOUT: | |
DEBU[0005] STDERR: | |
INFO[0005] Starting VirtualBox VM... | |
DEBU[0005] executing: /usr/bin/VBoxManage showvminfo node4 --machinereadable | |
DEBU[0005] STDOUT: name="node4" | |
groups="/" | |
ostype="Linux 2.6 / 3.x (64 bit)" | |
UUID="dee61fdf-b700-4178-8874-a9aa6d55868b" | |
CfgFile="/home/vincent/.docker/machine/machines/node4/node4/node4.vbox" | |
SnapFldr="/home/vincent/.docker/machine/machines/node4/node4/Snapshots" | |
LogFldr="/home/vincent/.docker/machine/machines/node4/node4/Logs" | |
hardwareuuid="dee61fdf-b700-4178-8874-a9aa6d55868b" | |
memory=512 | |
pagefusion="off" | |
vram=8 | |
cpuexecutioncap=100 | |
hpet="on" | |
chipset="piix3" | |
firmware="BIOS" | |
cpus=4 | |
pae="on" | |
longmode="on" | |
synthcpu="off" | |
bootmenu="disabled" | |
boot1="dvd" | |
boot2="dvd" | |
boot3="disk" | |
boot4="none" | |
acpi="on" | |
ioapic="on" | |
biossystemtimeoffset=0 | |
rtcuseutc="on" | |
hwvirtex="on" | |
nestedpaging="on" | |
largepages="on" | |
vtxvpid="on" | |
vtxux="on" | |
VMState="poweroff" | |
VMStateChangeTime="2015-03-06T20:11:53.554000000" | |
monitorcount=1 | |
accelerate3d="off" | |
accelerate2dvideo="off" | |
teleporterenabled="off" | |
teleporterport=0 | |
teleporteraddress="" | |
teleporterpassword="" | |
tracing-enabled="off" | |
tracing-allow-vm-access="off" | |
tracing-config="" | |
autostart-enabled="off" | |
autostart-delay=0 | |
defaultfrontend="" | |
storagecontrollername0="SATA" | |
storagecontrollertype0="IntelAhci" | |
storagecontrollerinstance0="0" | |
storagecontrollermaxportcount0="30" | |
storagecontrollerportcount0="30" | |
storagecontrollerbootable0="on" | |
"SATA-0-0"="/home/vincent/.docker/machine/machines/node4/boot2docker.iso" | |
"SATA-ImageUUID-0-0"="cecb84eb-65b3-444d-9e86-d4313bccf453" | |
"SATA-tempeject"="off" | |
"SATA-IsEjected"="off" | |
"SATA-1-0"="/home/vincent/.docker/machine/machines/node4/disk.vmdk" | |
"SATA-ImageUUID-1-0"="f21d5ded-60cb-4665-8002-fb54e3a511b0" | |
"SATA-2-0"="none" | |
"SATA-3-0"="none" | |
"SATA-4-0"="none" | |
"SATA-5-0"="none" | |
"SATA-6-0"="none" | |
"SATA-7-0"="none" | |
"SATA-8-0"="none" | |
"SATA-9-0"="none" | |
"SATA-10-0"="none" | |
"SATA-11-0"="none" | |
"SATA-12-0"="none" | |
"SATA-13-0"="none" | |
"SATA-14-0"="none" | |
"SATA-15-0"="none" | |
"SATA-16-0"="none" | |
"SATA-17-0"="none" | |
"SATA-18-0"="none" | |
"SATA-19-0"="none" | |
"SATA-20-0"="none" | |
"SATA-21-0"="none" | |
"SATA-22-0"="none" | |
"SATA-23-0"="none" | |
"SATA-24-0"="none" | |
"SATA-25-0"="none" | |
"SATA-26-0"="none" | |
"SATA-27-0"="none" | |
"SATA-28-0"="none" | |
"SATA-29-0"="none" | |
natnet1="nat" | |
macaddress1="080027A12036" | |
cableconnected1="on" | |
nic1="nat" | |
nictype1="virtio" | |
nicspeed1="0" | |
mtu="0" | |
sockSnd="64" | |
sockRcv="64" | |
tcpWndSnd="64" | |
tcpWndRcv="64" | |
Forwarding(0)="ssh,tcp,127.0.0.1,36139,,22" | |
hostonlyadapter2="vboxnet0" | |
macaddress2="080027BE43DA" | |
cableconnected2="on" | |
nic2="hostonly" | |
nictype2="virtio" | |
nicspeed2="0" | |
nic3="none" | |
nic4="none" | |
nic5="none" | |
nic6="none" | |
nic7="none" | |
nic8="none" | |
hidpointing="ps2mouse" | |
hidkeyboard="ps2kbd" | |
uart1="off" | |
uart2="off" | |
lpt1="off" | |
lpt2="off" | |
audio="none" | |
clipboard="disabled" | |
draganddrop="disabled" | |
vrde="off" | |
usb="off" | |
ehci="off" | |
VRDEActiveConnection="off" | |
VRDEClients=0 | |
vcpenabled="off" | |
vcpscreens=0 | |
vcpfile="/home/vincent/.docker/machine/machines/node4/node4/node4.webm" | |
vcpwidth=1024 | |
vcpheight=768 | |
vcprate=512 | |
vcpfps=25 | |
GuestMemoryBalloon=0 | |
DEBU[0005] STDERR: | |
DEBU[0005] executing: /usr/bin/VBoxManage startvm node4 --type headless | |
DEBU[0005] STDOUT: Waiting for VM "node4" to power on... | |
VM "node4" has been successfully started. | |
DEBU[0005] STDERR: | |
INFO[0005] Waiting for VM to start... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
log() { | |
echo "$(tput setaf 2)>$(tput bold)>$(tput sgr0) $@" | |
} | |
warn() { | |
echo "$(tput setaf 3)>$(tput bold)>$(tput sgr0) $@" | |
} | |
notice() { | |
echo "$(tput setaf 6)<$(tput bold)<$(tput sgr0) $@" | |
} | |
# Exit on error | |
set -e | |
create_machine() { | |
NODE_NAME=$1 | |
shift | |
SWARM_CLUSTER_ID=$1 | |
docker-machine ls | grep ${NODE_NAME} || { | |
docker-machine -D create -d virtualbox --virtualbox-disk-size '6000' --virtualbox-memory '512' --swarm --swarm-discovery=token://${SWARM_CLUSTER_ID} ${NODE_NAME} | |
$(docker-machine env ${NODE_NAME}) | |
echo "Wait 5s to let docker engine start.." | |
sleep 5s | |
echo $IMAGES | |
ls $IMAGES/ | |
test -e ${IMAGES}/postgres.tar.xz && docker load --input ${IMAGES}/postgres.tar.xz || docker pull postgres | |
test -e ${IMAGES}/redis.tar.xz && docker load --input ${IMAGES}/redis.tar.xz || docker pull redis | |
test -e ${IMAGES}/zenika_nc-avance-solution.tar.xz && docker load --input ${IMAGES}/zenika_nc-avance-solution.tar.xz || docker pull zenika/nc-avance-solution | |
echo "Wait a bit.. to let Virtualbox breath.." | |
sleep 5s | |
} | |
} | |
docker-machine ls | grep swarm-manager || { | |
log "Create the swarm cluster" | |
CLUSTER_ID=$(swarm create) | |
notice "cluster id : ${CLUSTER_ID}" | |
docker-machine -D create -d virtualbox --virtualbox-disk-size '3000' --virtualbox-memory '256' --swarm --swarm-master --swarm-discovery=token://${CLUSTER_ID} swarm-manager | |
} | |
log "Create the node machines" | |
create_machine node1 ${CLUSTER_ID} | |
create_machine node2 ${CLUSTER_ID} | |
create_machine node3 ${CLUSTER_ID} | |
create_machine node4 ${CLUSTER_ID} | |
log "Setup environment variables" | |
$(docker-machine env --swarm swarm-manager) | |
log "Run a shell" | |
notice "You can now play with docker-compose, it will point on the swarm engine" | |
bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment