Git Product home page Git Product logo

ploy_virtualbox's People

Contributors

fschulze avatar tomster avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ploy_virtualbox's Issues

Virtual box created without HostOnlyInterface name.

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?

FreeBSD virtual box created without longmode enabled.

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.

start from saved

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?

starting vbox instance on FreeBSD

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.

KeyError: 'defaultdisk' on OS X Yosemite / 10.10.2

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?

download_dir in [global] does not work

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.