ployground / ploy_virtualbox Goto Github PK
View Code? Open in Web Editor NEWPlugin for ploy to provision virtual machines using VirtualBox.
License: BSD 3-Clause "New" or "Revised" License
Plugin for ploy to provision virtual machines using VirtualBox.
License: BSD 3-Clause "New" or "Revised" License
A virtual box machine is being created with no HostOnlyInterface named in the config, which is preventing the virtual box provisioning process from being completed.
Host: MacOs Yosemite.
Ploy fron git today.
Using the default test config:
[vb-instance:ploy-demo]
vm-nic2 = nat
vm-natpf2 = ssh,tcp,,44003,,22
storage =
--medium vb-disk:defaultdisk
--type dvddrive --medium http://mfsbsd.vx.sk/files/iso/10/amd64/mfsbsd-se-10.1-RELEASE-amd64.iso --medium_sha1 03af247c1058a78a251c46ad5a13dc7b84a7ee7d
Running: ploy start ploy-demo
The virtual box configuration file generated contains:
<Adapter slot="0" enabled="true" MACAddress="080027323DF0" cable="true" speed="0" type="Am79C973">
<DisabledModes>
<NAT>
<DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>
<Alias logging="false" proxy-only="false" use-same-ports="false"/>
</NAT>
<InternalNetwork name="intnet"/>
<NATNetwork name="NatNetwork"/>
</DisabledModes>
<HostOnlyInterface name=""/>
</Adapter>
Note that the should be
How do I resolve this please?
Using the ploy-quickstart, the Virtual box image isn't being created with 64 bit extensions enabled:
<Hardware version="2">
<CPU count="1" hotplug="false">
<HardwareVirtEx enabled="true"/>
<HardwareVirtExNestedPaging enabled="true"/>
<HardwareVirtExVPID enabled="true"/>
<HardwareVirtExUX enabled="true"/>
<PAE enabled="true"/>
<LongMode enabled="false"/>
<HardwareVirtExLargePages enabled="true"/>
<HardwareVirtForce enabled="false"/>
</CPU>
LongMode is false, which prevents the mfsboot from booting the kernel. This is with the version of ploy from git, and the current version of virtualbox.
when trying to start a machine that has been saved from the VirtualBox GUI i get:
ploy_virtualbox.VirtualBoxError: Don't know how to handle VM 'naster-provider' in state 'saved'
perhaps it might be able to start from that, as well?
and ploy_virtualbox might even allow to save the state from the command line?
When running ploy start on FreeBSD I get:
ERROR: Failed to start VM 'test-call':
Command 'VBoxManage startvm test-call' returned non-zero exit status 1
Maybe the startvm command should be called with the "--type headless" switch.
I went down the "homebrew -> py-virtualenv -> git clone -> make -> pip install ploy_virtualbox -> quickstart" path, and that's what i ended up with:
(bsdploy)McLenix:ploy-quickstart lenix$ ploy start ploy-demo
INFO: Creating instance 'ploy-demo'
INFO: Adding default 'sata' controller.
Traceback (most recent call last):
File "/Users/lenix/Projects/private/unixuni/bsdploy/bin/ploy", line 9, in <module>
load_entry_point('ploy==1.0.3', 'console_scripts', 'ploy')()
File "/Users/lenix/Projects/private/unixuni/bsdploy/lib/python2.7/site-packages/ploy/__init__.py", line 540, in ploy
return ctrl(argv)
File "/Users/lenix/Projects/private/unixuni/bsdploy/lib/python2.7/site-packages/ploy/__init__.py", line 532, in __call__
args.func(sub_argv, args.func.__doc__)
File "/Users/lenix/Projects/private/unixuni/bsdploy/lib/python2.7/site-packages/ploy/__init__.py", line 284, in cmd_start
result = instance.start(overrides)
File "/Users/lenix/Projects/private/unixuni/bsdploy/lib/python2.7/site-packages/ploy_virtualbox/__init__.py", line 327, in start
medium = self.master.disks[medium[8:]].filename(self)
File "/Users/lenix/Projects/private/unixuni/bsdploy/lib/python2.7/site-packages/ploy_virtualbox/__init__.py", line 540, in __getitem__
self._cache[key] = self.klass(key, self.config[key])
KeyError: 'defaultdisk'
(bsdploy)McLenix:ploy-quickstart lenix$ which python
/Users/lenix/Projects/private/unixuni/bsdploy/bin/python
(bsdploy)McLenix:ploy-quickstart lenix$ python --version
Python 2.7.6
(bsdploy)McLenix:ploy-quickstart lenix$ which pip
/Users/lenix/Projects/private/unixuni/bsdploy/bin/pip
(bsdploy)McLenix:ploy-quickstart lenix$ which ploy
/Users/lenix/Projects/private/unixuni/bsdploy/bin/ploy
(bsdploy)McLenix:ploy-quickstart lenix$ pip list
ansible (1.8.3)
ecdsa (0.13)
Jinja2 (2.7.3)
lazy (1.2)
MarkupSafe (0.23)
paramiko (1.15.2)
pip (1.5.6)
ploy (1.0.3)
ploy-virtualbox (1.1.0)
pycrypto (2.6.1)
PyYAML (3.11)
setuptools (12.2)
virtualenv (12.0.7)
wsgiref (0.1.2)
zc.buildout (2.3.1)
(bsdploy)McLenix:ploy-quickstart lenix$ uname -a
Darwin McLenix.private 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64
(bsdploy)McLenix:ploy-quickstart lenix$ cat etc/ploy.conf
[vb-instance:ploy-demo]
vm-nic2 = nat
vm-natpf2 = ssh,tcp,,44003,,22
storage =
--medium vb-disk:defaultdisk
--type dvddrive --medium http://mfsbsd.vx.sk/files/iso/10/amd64/mfsbsd-se-10.1-RELEASE-amd64.iso --medium_sha1 03af247c1058a78a251c46ad5a13dc7b84a7ee7d
(bsdploy)McLenix:ploy-quickstart lenix$
any hints?
In the documentation, it is said that I can control where ploy_virtualbox plugin downloads mfsbsd iso image via property "download_dir" in "global" section.
If I understand it correctly, I have to set it like this in ploy.conf:
[global]
download_dir = "../downloads"
So this means that it will be downloaded in the parent directory of the ploy.conf file (basically in ../etc/downloads relative to ploy.conf file).
But this does not work. It still downloads it into ~/.ploy/downloads.
How should I use it then?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.